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.


1650 questions
259
votes
6 answers

command for checking Apache configuration

I'm looking for a command that checks the validity of the config files in Apache server on both Debian and RHEL distros. I need to do this prior to restart, so there will be no downtime.
Sigtran
  • 2,693
  • 2
  • 14
  • 5
62
votes
4 answers

Purpose of Debian "sites-available" and "sites-enabled" directories?

Can anyone tell me—in a nutshell—what the purpose of these two directories are in Debian? /etc/apache2/sites-enabled /etc/apache2/sites-available I notice that diffing sites-available/000-default and sites-enabled/default shows they are…
aaaidan
  • 722
  • 1
  • 5
  • 8
44
votes
2 answers

Does Apache Webserver use log4j (CVE-2021-44228)?

Does the apache webserver (apache2) use log4j? I have Apache2 2.4.38 (debian) installed on Raspberry Pi OS (64bit) and found some strange records in my log regarding CVE-2021-44228 from kryptoslogic-cve-2021-44228.com (honeypot/scanner),…
gilex
  • 523
  • 1
  • 2
  • 6
25
votes
3 answers

Stop Apache gracefully

Is there a way to stop the Apache server without terminating executing requests, basically a way to tell it - don't accept any more connections and shut down when you finish your current ones?
php_nub_qq
  • 379
  • 3
  • 9
16
votes
5 answers

WSGI : Truncated or oversized response headers received from daemon process

System Configuration : Apache2, Django 1.10, Python 3, Ubuntu 16.04 LTS Django debug=True. /var/log/apache2/error.log [52:53.057967] [wsgi:error] [pid 4303] [client 1.1.1.22:24409] Timeout when reading response headers from daemon process…
Suraj
  • 419
  • 1
  • 3
  • 12
12
votes
1 answer

Simple reverse proxy with Traefik

I'm currently using Apache as proxy for my LXD containers, using this kind of settings: ServerName example.com ProxyRequests off ProxyPass / http://10.0.0.142/ retry=0 ProxyPassReverse / http://10.0.0.142/ …
lepe
  • 468
  • 1
  • 6
  • 23
11
votes
2 answers

Apache2: sites-enabled vs conf-enabled?

What is the difference between conf-enabled and sites-enabled (or conf-available and sites-available if you want to think of it that way)? When should a file go in one but not the other? Are they read into apache2 differently or at different times?
stone.212
  • 247
  • 2
  • 11
11
votes
2 answers

Does AWS offer a way to route HTTPS traffic to two different EC2 instances based on directory path?

I was wondering if the following is possible with AWS offerings? https://www.example.com/a/ -> served by Apache on EC2 Instance A https://www.example.com/b/ -> served by Apache on EC2 Instance B To clarify, I do not want files under one directory…
Joseph Shih
  • 213
  • 2
  • 6
11
votes
2 answers

Changing A record and CNAME records

Currently I'm using a LAMP configuration for both my landing page page, for the web app, and for the APIs. Now I'd like to split these things across multiple Virtual Servers (VS). I'm unsure of the network settings and before messing up all my DNS…
don
  • 215
  • 1
  • 4
10
votes
1 answer

What is the difference between HTTP_HOST and HTTPS_HOST in apache .htaccess files?

I'm editing an .htaccess file.. In RewriteCondition for RewriteRules, HTTPS_HOST seems to only match urls that are accessed via https:// protocol (ssl). I saw in docs somewhere that it's a T/F variable that indicates if the url was accessed using…
SherylHohman
  • 365
  • 1
  • 3
  • 15
9
votes
1 answer

apache2: Saves files on /tmp in a 'system-private-[hash]' instead of just saving folders as defined in the code

For some reason, when I try to save a file (generated by PHP under /www/appname/module) - it is saved under /tmp/systemd-private-015eb2e9f67b4eef862c68e99fe0ba30-apache2.service-9h6i08 and when aiming files to get saved under /tmp/somename…
Rick Sanchez
  • 201
  • 2
  • 10
9
votes
1 answer

Trying to get 100% in ssllabs.com key exchange

I wanted to know what steps are needed to get 100% on every category in ssllabs.com. I am aware that this could lead to problems in older systems, but I dont care. My letsencrypt.org certificate uses 4096 bits. This is the best score I could get…
feedc0de
  • 259
  • 2
  • 8
9
votes
1 answer

How can I forward requests from my web server?

This is a Canonical Question about reverse proxies, how they work and how they are configured. How can I serve requests from a service on a different port or from a different server with the same webserver and distinguish it via the URL?
Gerald Schneider
  • 19,757
  • 8
  • 52
  • 79
8
votes
3 answers

"No space left on device: AH00023: Couldn't create the mpm-accept mutex" when restarting httpd

My server sometimes gets filled up with connections in apache stuck in a "Sending Reply" state, requiring me to restart apache. Most of the time this works, but sometimes I will get this error when trying to restart apache instead: Job for…
user548654
  • 81
  • 1
  • 1
  • 3
7
votes
3 answers

Reconfiguring PHP 5.6 to run on MacOS 10.13 High Sierra

I need to get PHP 5.6 running on a Mac that had to be updated to 10.13. So I reinstalled 5.6, verified its location, and added it to httpd.conf: LoadModule php5_module libexec/apache2/libphp5.so ...and made sure the line for PHP 7 is still…
CaymanCarver
  • 171
  • 1
  • 1
  • 3
1
2 3
99 100