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)

The Apache HTTP Server is a popular Open Source Web server. This tag should be used for general questions about Apache HTTPd.

Although there is large degree of commonality between the different versions in the 2.x branches, please consider using the Apache-2.2 or Apache-2.4 tags instead for more specific Apache HTTP Server related questions.

Documentation for all major versions is both comprehensive and has a high degree of accuracy.


1741 questions
0
votes
1 answer

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 apache's mod_substitute to modify the URLs in the…
GTP95
  • 11
  • 2
0
votes
0 answers

Apache2 rewrite HTTP redirects

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 be able to access the Docker container with…
GTP95
  • 11
  • 2
0
votes
0 answers

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 using cloudflare which means we can not use a DNS…
0
votes
1 answer

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.example.org *.example.org (all other to this domain)…
0
votes
0 answers

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 https://example.com, it's working well but when i…
0
votes
1 answer

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 however it will now simply show the content of the…
Gavin
  • 101
  • 2
0
votes
0 answers

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] shopping_cart > invoked oom-killer: >…
user1010500
0
votes
0 answers

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…
0
votes
0 answers

"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.1", host: "localhost:81" I have the above error after I…
eberteo
  • 1
  • 1
0
votes
0 answers

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 in a random manner. A similar request that failed…
0
votes
0 answers

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 versions could be used. Everything seemed fine…
Nick Bedford
  • 101
  • 3
0
votes
0 answers

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 able to do the certbot stuff successfully however…
Mansidak
  • 11
  • 2
0
votes
1 answer

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
  • 11
  • 2
0
votes
0 answers

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. However, when I created the simple index.php page…
Steve
  • 125
  • 6
0
votes
0 answers

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, the server on AWS is showing higher latency and…