Questions tagged [apache-2.2]

Version 2.2 of the Apache HTTP Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

Filter by
Sorted by
Tagged with
1
vote
1answer
46 views

Why is my .htaccess and .htpasswd not working?

I have .htaccess and .htpasswd files in the directory that has png files that I want to protect. .htaccess AuthType Basic AuthName "Co to za nielegalne grzebanie w plikach, juz dzwonie na ...
0
votes
1answer
93 views

Do you need Nginx / Apache for deploying an API?

To my understanding, Nginx/Apache are used to a) serve static content like HTML pages and b) balance requests between servers. I am programming an API in Go. It doesn't need to serve static content ...
1
vote
1answer
749 views

Create subdomains under a single IP/domain in an Nginx Reverse Proxy?

I'd like to be able to create a subdomain in Nginx Reverse proxy. As it stands right now, I have a properly configured and usable reverse proxy that resolves properly. The problem arises when I try to ...
0
votes
1answer
63 views

How to use LiteSpeed server with Apache?

On my search i've got only info about replacement of Apache with LiteSpeed. My question is rather: how to use them together? I think about a similar setup, where Apache is used together with Nginx, ...
1
vote
1answer
33 views

Strange errors on apache error log

Frequently I am receiving core errors messages like this one below on my apache2 server, I really don't know why it's happenning, is this a bot, maybe? Are there an way to discover this issue? [Mon ...
3
votes
1answer
93 views

Ubuntu Apache Subdomain not Displaying

Using Ubuntu 18.04 I have my main website www.example.com, all the files are hosted in /var/www/html/ and it works as expected. I would now like to make a new website in a subdomain www.blog.example....
0
votes
1answer
87 views

Cloudflare + Apache + CSP Headers: Old CSP headers are returned

We are using apache2 on our server, which is behind cloudflare (free plan). I am currently implementing googles recaptcha, which requires me to make changes to our CSP headers. What I did: Change CSP ...
0
votes
0answers
22 views

Apache reverse proxy with tomcat apps and context path override

I currently have an Apache server acting as reverse proxy for locally running Tomcat instances with applications. However, I need to override a specific context path to go to a remote site. I can't ...
3
votes
1answer
719 views

What controls the cleanup of the /tmp/systemd-private* directories?

It doesn't seem like the systemd-tmpfiles service cleans up these folders because I have files in /tmp/systemd-private-*-httpd.service-*/tmp/ that are 27ish days old (the last time httpd was restarted)...
1
vote
0answers
37 views

Why is load balancing not working in this server?

I'm trying to set up a load balancing using Apache and reverse proxy pattern. But I'm facing some issues. When trying the configuration, an HTTP 403 error is being responded. This is the configuration ...
-1
votes
1answer
75 views

without http and https, domain is not reachable

I have this amazon lightsail instance with static public IP pointed to my godaddy domain, everything is working except if you don't include http or https, domain is not reachable. A godaddy support ...
0
votes
1answer
33 views

Image displaying in a browser but not in a HTML compiler

My image is displaying correctly in a browser, but when i use the image link inside an HTML compiler, its showing a broken image symbol. Image link : http://winterminer.com/glogo.png <img src="...
1
vote
0answers
523 views

Implementing Content-Security-Policy on Apache 2.2

On Apache 2.2 I'm about to set up Content-Security-Policy to allow browsers coming from one particular domain to load data into iframes from a certain virtual host. $ httpd -S VirtualHost ...
0
votes
0answers
100 views

How to prevent simple ddos attack done apache benchmark (ab) command?

What would be the simplest way to prevent flooding with ab command ? ab -n 1000 -c 200 https://www.my-site.com I am totally conscious that this is just a partial prevention and there are thousands of ...
0
votes
0answers
153 views

Apache multiple directories for multiple paths

I need to setup my virtual host to handle multiple paths of the same domain. So any url with /abc goes to one directory example.com/abc goes to <Directory /path/site/abc></Directory> and ...
0
votes
0answers
31 views

ssl certificate on Centos 7

I have installed SSL certificate for many domains in centos 7. All are working fine on https. But if SSL not installed for any new domain which is included in virtual host in httpd.conf file then ...
1
vote
0answers
81 views

After windows server 2019 update- my domain is not reachable any more

well as I do not know where is the problem, I will explain every thing. And as I do not have any experience with server managing, I will show some screenshots and please help and if you have an answer ...
0
votes
0answers
40 views

set apache to let browser open rst file with utf-8

Os version: uname -a Linux mydebian 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux Apache version: apachectl -v Server version: Apache/2.4.38 (Debian) Server built: 2020-08-...
0
votes
1answer
88 views

Apache 2.2.15 possible security risk?

I have an old server that is running a webshop in production. It is running CentOS / Apache 2.2.15 and PHP 5.3 (Build 22 Mar 2017). Are there any security risks associated with this setup? I have ...
0
votes
0answers
32 views

Apache rewrite rule move from 2.2 to 2.4 not working as expected

I'm trying to move from apache 2.2 to 2.4, This is the rule that worked on 2.2, but not on 2.4. RewriteCond /var/www/html/www/new4%{REQUEST_FILENAME} -d RewriteRule ^(.+) /var/www/html/www/...
0
votes
0answers
24 views

Apache LB and huge amount of close_wait connections

I use apache as a loadbalancer for servers with some java apps. On the apache host I saw huge number of close_wait state which was around 2500. Is it a problem with apache itself or with app on the ...
1
vote
0answers
92 views

Redirect Permanent in Virtual Host apache configuration behaving not as expected

I have multiple domains pointing to the same IP. RedirectPermanent works fine for all domains IF and only IF the pages are NOT existing, and I get the 404 default page of my website. If I type in the ...
0
votes
0answers
41 views

Apache server for both static content and reverse proxy for forum server in subdirectory

I am trying to solve 2 problems at once with my website: It is a subdomain of an academic website, and needs to be using apache to use supported institution SS0. For that step I will get help from the ...
1
vote
0answers
75 views

Apache2 : How to remove port from URL?

I have the following apache configuration file for a reverse proxy : <VirtualHost *:80> ServerName example.com RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) ...
0
votes
0answers
48 views

Apache SSL Re-Negotiation

The httpd.conf looks like below. <Location /services> SSLVerifyClient none SSLRequire %{REMOTE_ADDR} in {"x.x.x.x","y.y.y.y","z.z.z.z"} ...
0
votes
1answer
56 views

How to avoid redirect if url match a string in Apache

I have a web server that redirects any HTML 404 error to another domain: ErrorDocument 404 https://error domain My goal if to avoid redirection when Let’s Encrypt tries to renew the certificates. All ...
0
votes
0answers
37 views

Is it possible to use same domain for front and backend with Net core and Angular separate application

Hello there I have 2 application hosted on the server. 1 angular running with node.js on port 4000 and one net core running trough the kestrel on port 5000. The angular application falls back to index....
0
votes
1answer
35 views

.htaccess old site redirect to new with each url separate redirect

I have a website that is migrated to another URL. So I wanted to migrate my all previous URL to a new URL with a different segment. For example Main redirect Old site is: https:// myoldsite.abc New ...
1
vote
1answer
216 views

Django Channels + Apache + Docker performance stuck to 10rq/s

Setup I have configured Django Channels inside a docker container on server Ubuntu 20.04 OVH VPS (8vCore, 16Go RAM). To run django-channels I used daphne. Versions: Django==3.1.4 channels==3.0.2 ...
0
votes
1answer
36 views

Rewrite userdir for users that changed the username

This seems simple, but I wasn't able to do it. I have a user that changed his username from givenname to name, and now I need to rewrite, changing the URL on the clients, to avoid 404 errors on ~...
2
votes
1answer
36 views

How to create redirection from two domains in one VirtualHost directive in Apache?

I want users visiting either of napiwki.kontestacja.com and napiwek.kontestacja.com to be redirected to the same address. I'm using the following fragment in httpd.conf: <VirtualHost *> ...
0
votes
0answers
52 views

Subdomain suddenly stopped working on Apache

We have a server on CentOS 7.4 which runs multiple websites and subdomains. A domain say xyz.example.com is pointing to xyz folder in html root which is working since last 4 years and suddenly stopped ...
0
votes
0answers
47 views

Apache config for conditional authorization

I want to do conditional authorization based on SERVER_URI (test-oidc.com, test-kerberos.com), authorize with openid-connect if test-oidc.com or authorize with kerberos if test-kerberos.com, how can I ...
0
votes
0answers
52 views

How to create custom access logs from Apache/httpd on server

I have a server that runs on apache. To track users' access to specific objects I'm trying to modify the server logs and keep them formatted so that I can have a brief analysis with them. But ...
1
vote
1answer
43 views

Apache - environment variable in workers.properties

I'm trying to run apache in a container and I need to set the tomcat server in a variable since tomcat container runs in a different namespace. I've set the variable like this but it doesn't work. I'...
0
votes
1answer
86 views

How to configure nginx better to reduce redundant system calls when APIs are called?

I have a Laravel application running in production, and there are a few APIs that used a lot. Something was creating a bottleneck and it used to stall our servers (3 with Load Balancer). After ...
2
votes
1answer
291 views

HSTS and Wordpress redirection to www and non-www and https - avoid multiple redirections?

I am trying to implement the HSTS (HTTP Strict Transport Security) on my Wordpress site, but I am not getting any success. First I had managed to redirect my site from non-www to www , and including ...
0
votes
0answers
235 views

apache mod_evasive and cloudlare

Will mod_evasive work if my website uses cloudflare ? I fear that mod_evasive will stop all cloudflare Ips as false positive and them defend Apache against Cloudflare. My question may be: how ...
0
votes
0answers
78 views

how to change the alias name of the local host in tomcat linux server

We have tomcat server installed in Linux and webapps link looks like SXTRP4040:8080 Can we change the above link to www.Insurancehost.com i tried changes in server.xml by adding alias inside host as ...
0
votes
0answers
70 views

Flask apache logs

I created an app with flask and for the deployment and I used an apache webserver on a CentOS8. When I configure the app.conf file in my /etc/httpd/conf.d/ to work on port 80, the prints of my app are ...
0
votes
0answers
46 views

How to prevent access to my website by IP?

I read in other similar questions that I cannot prevent access by IP. I have an apache server that serves several Virtual Hosts, but unfortunately every time I access by IP it redirects me to the ...
0
votes
0answers
11 views

Is a reverse proxys network speed limiting the connected servers?

I am just curious: If I get a server for use as a nginx reverse proxy that has only like a 100mb connection to the internet, will this effect the download speed of my 500mb connection nextcloud server ...
0
votes
0answers
333 views

Apache status "150 requests currently being processed, 0 idle workers"

My Apache Server Scoreboard Status is as shown below when the "150 requests currently being processed, 0 idle workers" condition is hit. --Log-trace--- Apache Server Status for localhost (...
1
vote
2answers
651 views

What is the origin of ZLIB's "Zlib error -2 deflating data"

Some of my sites are getting, seemingly without reason, strange errors like these: [Fri Nov 06 08:29:07.677505 2020] [deflate:error] [pid 23820:tid 140019129566976] [client XXX.XXX.XXX.XXX:XXXXX] ...
0
votes
0answers
109 views

Apache | redirect with Self-Signed SSL Certificate not working

OS: Ubuntu 16.04 I'm trying to enable a self-signed certificate for apache. I already created the certs with the following command: sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /...
0
votes
0answers
90 views

bitbucket apache proxy config

I have installed bitbucket and it is running on port 5170, I want config an apache proxy to forward allr equests on port 80 with /bitbucket in the url to that port. So far I have : bitbucket....
0
votes
0answers
36 views

How to configure my website to be accessed by public IP addres

I have a website hosted on my pc , I can access my website using 127.0.0.1 also 192.168.0.130 but not by using the public IP address . however I can access the rooter interface using http://105.101....
0
votes
1answer
79 views

Server being overloaded by flood attack [duplicate]

I have a strong server, with 64GB Ram and amazing network and SSD for fast connections, but someone, I don't know why, is attacking my website, it seems that it is a script requesting my index.php ...
0
votes
1answer
275 views

Apache SSL error : Unable to read server certificate from file

I am getting an Apache error while server startup. The error reads: [error] Init: Unable to read server certificate from file /etc/pki/tls/certs/ca-bundle.trust.crt [error] SSL Library Error: ...
1
vote
0answers
30 views

Does high cpu load make apache reject incoming requests?

I am deploying a laravel app on a RHEL7.x server with apache as the underlyiing web server. Part of the functionality of the application is to accept http POST requests from other servers and save ...