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
278
votes
7 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,883
  • 2
  • 15
  • 5
63
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
  • 732
  • 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
  • 3
  • 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
18
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
  • 449
  • 1
  • 3
  • 12
14
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
  • 277
  • 1
  • 2
  • 12
13
votes
2 answers

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
  • 241
  • 1
  • 2
  • 11
13
votes
1 answer

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 automatically generate a certificate. The problem…
lolc
  • 143
  • 1
  • 7
12
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
  • 405
  • 1
  • 5
  • 15
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
  • 469
  • 2
  • 6
  • 25
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
2 answers

What is the difference between default-ssl.conf and what is 000-default-le-ssl.conf?

default-ssl.conf is quite self-explanatory. I assume it's for default values that would be used when no vhost or other config overrides it. But what exactly is 000-default-le-ssl.conf file? Why is it named the way it is? What's with the triple zeros…
DominicM
  • 251
  • 3
  • 6
  • 12
10
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
  • 269
  • 1
  • 2
  • 9
10
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
  • 23,274
  • 8
  • 57
  • 89
1
2 3
99 100