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

What is OPTIONS * in apache logs?

Getting thousands per hour: 1017 "OPTIONS * I've tried to find more about this in Apache docs but could not.
Alex L
  • 1
0
votes
1 answer

How to load new Apache site without effecting existing sites?

If I add a new Apache site at /etc/apache2/sites-enabled/newsite.conf, how to I load that new configuration without bringing down any other sites currently being hosted by Apache? As far as I know, sudo apachectl graceful and sudo service apache2…
Cerin
  • 3,600
  • 19
  • 61
  • 79
0
votes
2 answers

Unable to serve images from wordpress site - response is malformed

I'm trying to deploy Wordpress behind Traefik on Azure, using a PersistentVolume backed by Azure Files. For the most part, it works. I could set up wordpress, configure it, access it externally, make content edits, etc. The docker image is the…
IanJ
  • 1
  • 1
0
votes
0 answers

Server CPU Usage Above 100% for the Past Week

My server running ubuntu and flask for a webapp as well as scrapy, selenium, and postfix has been experiencing very abnormal cpu usage. This server has not used as much cpu load in the past, but has recently increased by a very large amount. Any…
Python 123
  • 13
  • 1
  • 5
0
votes
0 answers

Migrating reverse proxy settings from Nginx to Apache2

until now I have been using Nginx but due to some reasons I have to switch to Apache2. I am not a sys admin so if more info is needed, just ask I am unable to migrate 1 simple proxy settings to Apache2: location /auth { proxy_pass…
0
votes
0 answers

Apache ErrorLog skip logging specific message

For one of my Apache vhosts, the error log is bloated with messages about "favicon.ico". I don't need these logged. I'm aware of the SetEnvIf directive that can be applied to CustomLog. Here's my config for the SetEnvIf option and CustomLog…
user38537
  • 293
  • 3
  • 15
0
votes
1 answer

Macos changing user in Apache breaks PHP SESSION persistence

I am using Macos built-in Apache server locally for development. I have developed a site which uses PHP and relies on session cookies to persist sessions. With the default Apache setup, everything was working fine, and session data was persisted…
KevinHJ
  • 101
  • 3
0
votes
1 answer

Certbot cannot check challenge because of Apache "Redirect / domain.com"

So there is this server that is all messed up but that is besides the point. I ran certbot and it failed. Checked the vhost for port 80. It has the blanket redirect. It dose not seem like it would cause a problem right? Well it is, I commented it…
0
votes
1 answer

Apache Reverse Proxy for SSH Tunnel

I want to set up an Apache reverse proxy for my Home-Assistant(hass) instance running in my local network. I tunnelled the traffic of the local hass instance to a remote server with ssh -N proxy@example.com -R 8123:localhost:8123. Now I tried to set…
Toorero
  • 1
  • 3
0
votes
0 answers

Redirected Too Many Times on Apache2

I'm using apache2 to host a website on Ubuntu Server. When I try to load the page from a browser, I get the "this page redirected you too many times" error. I don't have any duplicate files or anything that's redirecting the page. I don't have a…
Wilson T.
  • 1
  • 1
0
votes
1 answer

Using Apache ProxyPass to point to express server?

I'm trying to use proxypass for a specific directory so I can point it to my express.js server https://othersite.life:1447/ Been stuck on this one for hours now. Would really appreciate some insight. I have enabled these mods and I'm editing…
0
votes
1 answer

Prevent Apache2 from executing CGI in Static Directory

I am running an Apache 2 web server running on Ubuntu 20.04 LTS. I have a Python CGI handler enabled for the /var/www/html directory, which is the DocumentRoot. I am wondering how to exclude a certain directory from running CGI for Python…
Noah Broyles
  • 179
  • 6
0
votes
1 answer

Apache, redirect for a moved directory

On our webserver a directory has been "copied" from one location to another. Now the original location is gone however I am receiving requests to provide a redirect to the new location. I figure mod_rewrite would be the best way to do this, though…
Chris Woelkers
  • 298
  • 2
  • 11
0
votes
1 answer

apache2 is directing to wrong path when using https for sub domains

I have an ssl wildcard cert (letsencrypt) for example.de & *.example.com. My 000-default.conf looks like: # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself.…
0
votes
0 answers

nginx proxypass not working for embedded links

I've an EC2 machine which is behind a ALB. Listener rules in the ALB are like IF Path is/blog* Host is abc.example.com THEN Forward to target-group-1 My nginx config looks like this: ## # Default server configuration server { listen 80…
Axel
  • 421
  • 2
  • 8
  • 18