As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [apache2]

The Apache HTTPd 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
0 votes
0 answers
11 views

apache2 prefork "server seems busy" warning, doesn't respond to changes in StartServers, MaxSpare, etc

Preface: This is not a "how do I set StartServers" question. I have a web server that has been running fine for years and last week we started using CloudFlare to help reduce probe and DDOS ...
Glenn's user avatar
  • 3
0 votes
1 answer
51 views

Moving from Apache2 to NGINX configuration

I have been trying to get my website up after moving from apache2 to nginx on my AWS Ubuntu 20.04 server. I have translated the relevant files from apache2 over to my nginx configuration, however I ...
jabroni's user avatar
0 votes
0 answers
19 views

apache mod_wsgi error, randomly: Unable to connect to WSGI daemon process

Recently, our server shut down out of nowhere, this what Apache logs show up: [wsgi:error] [pid 8837:tid 140646648096512] (2)No such file or directory: [client] mod_wsgi (pid=8837): Unable to connect ...
Jose Luis Arrioja's user avatar
0 votes
0 answers
34 views

Allow CORS Headers pass through in apache2 reverse proxy setup

I came down to ask here since I am troubleshooting this for days without any success. What I try to accomplish is to set up a reverse proxy to the nodejs/Express backend using apache2. Proxying the ...
randmin's user avatar
  • 59
0 votes
1 answer
44 views

Require ip in apache2 works for index.html but not

I am using apache 2.4.56 and my site is hosted on Google Cloud Compute. "Require ip ip-number" works for /var/www/html/index.html like mysite.com but it doesn't work for mysite.com/cgi-bin/...
Marcos Camargo's user avatar
0 votes
1 answer
17 views

Change the script path in an Apache proxy handler

I'm developing my application with 2 containers: apache and php-fpm. Apache serves requests, and delegates PHP execution to the php-fpm container in its vhost: <FilesMatch .php$> ...
amacrobert's user avatar
1 vote
0 answers
27 views

Apache Rewrite Based on Query String

I'm trying to detect the presence of a particular name/value pair in the query string and, if it exists, do a thing. I'm trying to do this in a conf file that's stored in conf-available/ and after ...
Rob Wilkerson's user avatar
1 vote
1 answer
41 views

Find what paths are required for open_basedir?

We have a server (running PHP-FPM 7.4 on Apache) that hosts various scripts, frameworks and applications like DokuWiki. It's grown to a pretty complex beast. We would like to apply an open_basedir ...
xebeche's user avatar
  • 361
0 votes
0 answers
73 views

Reverse Proxy on different Server

Hi i’m searching for a way to reverse proxy a Website with Websocket with apache2 but the Website and the Reverse Proxy are running on different Isolated servers. I’ve tried the normal way to ...
T0b1a5's user avatar
  • 1
2 votes
2 answers
253 views

Apache on debian don't redirect http to https correctly

Debian 11 config file: /etc/apache2/sites-enabled/000-default.conf <VirtualHost *:80> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} ...
Ishayahu's user avatar
  • 187
0 votes
1 answer
46 views

Is there a way of rewriting wss to https Apache 2

Hi im currently trying to find a way to switch out the protocol of a url. Im having a server wich is running fine on its own but behind a apache reverse proxy its throwing the error connection to ...
T0b1a5's user avatar
  • 1
0 votes
1 answer
40 views

Debian 11, Nagios4, and 403 forbidden

Having installed Debian's Nagios4 package I can't access it. Apache gives me this: AH01797: client denied by server configuration: /usr/share/nagios4/htdocs I've tried various things, such as ...
knirirr's user avatar
  • 109
0 votes
1 answer
70 views

Ubuntu - Issue hosting (HTTPS only) a Net core app: "AH01276 - Cannot serve directory"

I'm trying to setup my application using HTTPs, I followed a guide HERE to do it properly but it's not working. My app runs perfectly in port 80 (http) and when I turn on auto redirect for 443 (https) ...
mfvjunior's user avatar
  • 109
0 votes
0 answers
42 views

Modsecurity block access from all countries except from a specific IP or specific remote host

I have the below 3 rules in modsecurity. Rule 1: Block all countries defined as high risk except US: SecAction \ "id:900600,\ phase:1,\ nolog,\ pass,\ t:none,\ setvar:'tx....
BradG's user avatar
  • 101
0 votes
0 answers
7 views

Reordering Apache Output Filters

Is there a way to reorder the output filters for Apache 2.4? I am forced to use something like this because DEFLATE runs before SUBSTITUTE: AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE text/html (...
user193130's user avatar
0 votes
1 answer
34 views

ModSecurity : How prevent the body to be displayed in the JSON output?

Using Modsecurity, I write the catched requests in a log, in a JSON format. The body field is too verbose for my ELK index, and generates a lot of parsing errors. Can I disable the presence of the ...
Jean's user avatar
  • 123
1 vote
0 answers
38 views

CentOS getting unusable slow over time running at Hyper-V

I run TWiki 6.1 on a CentOS Stream 9-virtual machine hosted in Hyper-V at Windows10. VMs hostanme is "twiki" System ran for over a year now without any problems but since some weeks its not ...
Micha W's user avatar
  • 11
0 votes
1 answer
39 views

Permissions for static website files

The question is about best practices, not an exact problem. What is correct ownership and permissions for static website files and directories? I’m going to use root:<server-group> with ...
Anton's user avatar
  • 1
0 votes
1 answer
73 views

access a website behind openvpn client

I have an openvpn server (10.x.x.1) and a client (10.x.x.2) with a php webapp on apache. I can access this webapp with my PC (with openvpn client installed, 10.x.x.3) over the vpn network with his ip ...
samdevbd's user avatar
0 votes
0 answers
7 views

Restrict location to just one IP in vhosts not working

I am trying to restrict the access to a specific location for just one IP address in the vhosts file but for some reason it is not working. This for apache 2.4.29. Here is my vhosts file: <IfModule ...
BradG's user avatar
  • 101
0 votes
1 answer
29 views

ModSecurity : PCRE limit settings do not have any effects

I'm facing Rule execution error - PCRE limits exceeded (-8): (null). errors when I ask ModSecurity to analyse body data (using the SecRequestBodyAccess On directive). I've read about the problem, and ...
Jean's user avatar
  • 123
0 votes
0 answers
15 views

Apache Custom Error Log Entry

I have a rule in my Apache config like this: <FilesMatch "xyz"> Order deny,allow Deny from all ErrorDocument 403 "Custom Response" </FilesMatch> In the error log it ...
But those new buttons though..'s user avatar
0 votes
0 answers
40 views

Set up a reverse proxy for local domains

My web server (apache2) is accessible on my LAN with its host name, let's say, jarvis (url: http://jarvis/). I have a Gitea instance running in my local network which is accessible via http://jarvis:...
tai's user avatar
  • 111
0 votes
0 answers
28 views

Django on Apache2, mod_wsgi refusing to exit in SIGTERM

I'm sure I'm misconfiguring this somewhere or have a version mis-match, but when I attempt to restart Apache2, Django ignores my SIGTERM requests. It does respect a SIGKILL, but I want it to behave ...
Robert Rapplean's user avatar
0 votes
0 answers
15 views

Apache proxy "404 page not found"

I am trying to create a proxy on my Apache2 server, but it returns a 404 page not found Basically I am using it as an intermediary for the creation of an API, within my Linux server I make requests ...
Freddy Birrueta's user avatar
0 votes
1 answer
43 views

Postfix to gmail relay - preserving the sender's address

Relayed emails come 'from' me@gmail.com, not sender@theirdomain.com, so I cannot reply. I have several domains and am using Postfix to relay emails sent to me@mydomains.com on to me@gmail.com as ...
Megalomatt's user avatar
2 votes
1 answer
58 views

apache2.4 (debian11): access of /.htm or /.html sites lead to 403 (and not 404)

If I install apache2 on debian 11 and access one of the following urls: http://localhost/.htm http://localhost/.html I don't get the expected HTTP status-code 404, I get a HTTP-status code 403 instead!...
byteunit's user avatar
  • 123
0 votes
0 answers
53 views

reverse proxy between apache

I need to set up a reverse proxy between two Apaches. My setup looks like the following, but it's not working. <Location "/example/"> ProxyPass http://example.com/ ProxyPassReverse ...
Félix's user avatar
  • 1
0 votes
0 answers
42 views

Php and shell_exec are a good way to process many detached process on a CentOs server?

During execution of a php webservice, i need to detach a "time consuming function" to maintain a quick response to the user. That's an example of the flow : I know that php does not manage ...
user31929's user avatar
  • 101
0 votes
0 answers
15 views

Azure VM and Multiple Apache Instances

I am doing some experiments and trying to setup multiple websites on 1 host without it being obvious that the websites are related. I want them to have their own IP address and names. I have added an ...
Loki's user avatar
  • 1
0 votes
1 answer
37 views

Apache2 subdomain not found after addition

Here is a situation I have example.com domain pointed to my server where Apache2 runs. Currently I have two confs (one for HTTP and one for HTTPS) that accepts example.com requests and shows page ...
Johnczek's user avatar
  • 101
1 vote
0 answers
160 views

Why are tmp files in /var/tmp/systemd-private-* excluded from automatic deletion?

I'm running a CGI application on an Apache instance, and lately I've been noticing errors like the following, which appear to be causing some issues: ERR012: Unable to create temporary file "/var/...
DMJ's user avatar
  • 141
0 votes
1 answer
60 views

Apache2 mod_substitute not modifying URLs

I'm trying to use Apache2 as a reverse proxy to access an application (calibre web) running inside a Docker container. Since the application is using redirects (more details here), I'm trying to use ...
GTP95's user avatar
  • 11
0 votes
0 answers
8 views

Apache2 rewrite HTTP redirects [duplicate]

I'm trying to use calibre web as a Docker container and have it exposed via Apache2 acting as a reverse proxy. I already have a Nextcloud installation under example.com/nextcloud, and I would like to ...
GTP95's user avatar
  • 11
0 votes
0 answers
47 views

Apache2 ProxyPass/ProxyPassReverse Not Working

I am trying to redirect a online website such as amazon.com for example to a website using cloudflare such as chat.openai.com. The problem is that you can not obtain the IP address from a website ...
Abeloser's user avatar
0 votes
1 answer
58 views

Apache vHosts - Two domains, multiple subdomains and defaults possible?

after searching and try-and-erroring for a while I came to the conclusion that my problem is a bit too special for google :-) I have 2 domains and multiple subs example.org cloud.example.org wiki....
edwarddeath's user avatar
0 votes
0 answers
44 views

Apache2 http https redirect not working (ErrorDocument or 400 Bad Request)

I'm trying to redirect http to https I have sevral sub domains and use sevral port. I wnat to redirect 80 port to 443 port automatically. I have httpd.conf / vhosts.conf / ssl.conf so when i type ...
allison000's user avatar
13 votes
1 answer
3k views

Why does my Let's Encrypt certificate contain references to Cloudflare?

I own a website that uses a Let's Encrypt certificate. It's not behind Cloudflare, it's hosted at OVH and I'm accepting direct traffic from it. Now, I set up an apache2 webserver and used certbot to ...
lolc's user avatar
  • 143
0 votes
0 answers
47 views

502 Server Error on GCP

My server is having Error 502 issue after every 10 to 15 mins and it is working fine again after few seconds. Can anyone tell me what is the exact issue is it because of load balancer or due to the ...
Robin's user avatar
  • 1
0 votes
1 answer
73 views

Prevent Apache from showing first virtual host if domain does not exist?

Not sure when but WHM/cPanel and/or Apache have changed how they handle requests for domains that do not exist. Previously it would redirect to http://requested-domain.tld/cgi-sys/defaultwebpage.cgi ...
Gavin's user avatar
  • 101
0 votes
0 answers
271 views

Apache Getting Killed By OOM

I Have apache2 running on Ubuntu 22. My Apache2 often getting killed by OOM. I have tried to get log and its showing something like this > root@localhost:~# dmesg -e | grep -i kill [Mar15 03:00] ...
user avatar
0 votes
0 answers
23 views

Apache rewrite url in wsgi site

This is my apache site with wsgi application. What I need is add string "Auth_Basic" between last slashes in the request. Request can be different anytime. Example: http://127.0.0.1/asd/lala/...
Dominik Štumper's user avatar
0 votes
0 answers
54 views

"rewrite or internal redirection cycle while internally redirecting to" Nginx

rewrite or internal redirection cycle while internally redirecting to "/opt/soa/adminControl/v1/ro42/", client: 127.0.0.1, server: _, request: "GET /opt/soa/adminControl/v1/ro42/ HTTP/1....
eberteo's user avatar
0 votes
0 answers
35 views

Debugging random 502 Proxy errors

I am facing random occurrences of 502 Proxy Error. We have a 3rd party application running in our server. It uses a reverse proxy to serve the request. The Proxy server is returning 502 Proxy Errors ...
sam kirubaharan's user avatar
0 votes
0 answers
208 views

Apache 2.4.52 HTTPS Rewrite no longer works on Ubuntu 22.04

I have been forcing HTTPS upgrade through mod_rewrite for years on Ubuntu 18.04 LTS servers. I recently upgraded a few of these servers to Ubuntu 22.04.1 LTS to ensure the latest security and Apache ...
Nick Bedford's user avatar
0 votes
0 answers
76 views

How to forward https traffic from Port 80 to Port 8501 on Ubuntu Apache2?

So I used iptables to redirect traffic from 80 to 8501 as follows: sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8501 However this doesn't work with https. I was ...
Mansidak's user avatar
0 votes
1 answer
81 views

Syntax Error I can't figure out on Apache2

I was attempting to change the conf of my files in order to achieve port forwarding, however all of a sudden I get the following error when attempting to restart: AH00526: Syntax error on line 30 of /...
Mansidak's user avatar
0 votes
0 answers
100 views

AmazonLinux 2022 Fails to Run PHP Scripts - Error AH02454

I am attempting to run basic PHP scripts on an Amazon Linux 2022 or Amazon Linux 2023 server instance. I followed the directions here and when I request index.html it serves a static page fine. ...
Steve's user avatar
  • 125
0 votes
0 answers
55 views

AWS poor performance compared to DigitalOcean's

Why is my Apache2 server with PHP-FPM experiencing significantly lower performance on AWS EC2 instances compared to DigitalOcean Droplets? Despite similar hardware specifications and configurations, ...
robertpartfy's user avatar
0 votes
0 answers
15 views

How can i make apache limit requests to a certain url within a certain time frame?

I'm trying to use mod_evasive and mod_rewrite to accomplish this. With the configurations below apache just blocks all access to those URI's regardless of how many times a visitor accesses them within ...
Skilo83's user avatar

1
2 3 4 5
35