Skip to main content

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)

10 votes
1 answer
7k views

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 ...
Gerald Schneider's user avatar
63 votes
4 answers
56k views

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 ...
aaaidan's user avatar
  • 732
19 votes
6 answers
29k views

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 ...
Suraj's user avatar
  • 469
7 votes
2 answers
3k views

Apache's htcacheclean doesn't scale: How to tame a huge Apache disk_cache?

We have an Apache setup with a huge disk_cache (>500.000 entries, >50 GB disk space used). The cache grows by 16 GB every day. My problem is that the cache seems to be growing nearly as fast as it's ...
flight's user avatar
  • 394
5 votes
3 answers
1k views

apache2 sends corrupt responses when using a cifs-share

I have a problem with a ubuntu-instance (Ubuntu 20.04.1 LTS) and apache2 (Apache/2.4.41 (Ubuntu)). One virtual-host is serving some html-files and documents from a mounted cifs-share. The cifs-share ...
cklm's user avatar
  • 193
4 votes
1 answer
14k views

How to debug curl? gnutls_handshake failed -unexpected TLS packet (OpenSSL)

How can I debug curl error further when Apache error.log is not showing any? (35) gnutls_handshake() failed: An unexpected TLS packet was received. curl -v https://example.com * Rebuilt URL to: ...
Markus's user avatar
  • 171
3 votes
2 answers
5k views

apache2 https redirect to http without ssl cert

We have an apache server which hosts multiple domains from, which some have https enabled and some do not. Now the problem is that if I access https://exampleWithoutHttps I will come to the content ...
sherif's user avatar
  • 151
2 votes
2 answers
20k views

PHP files displayed as text

When I want to execute a php file it's displayed as text in my browser. I have a VPS at Hostinger I installed Ubuntu 18.04 with Webmin and LAMP(installed automatically). I checked the installation ...
adamanyn's user avatar
0 votes
2 answers
873 views

Virtual Host Setup Redirecting Request to Local IP address

I want to make an application running on apache2 (ubuntu) available over the internet. So i decided to setup virtual host after purchasing a SSL certificate. Everything works fine on my Local network. ...
Jafar Kams's user avatar
287 votes
7 answers
742k views

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's user avatar
  • 2,973
13 votes
2 answers
13k views

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 ...
Rick Sanchez's user avatar
10 votes
1 answer
11k views

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 ...
feedc0de's user avatar
  • 269
9 votes
2 answers
10k views

Apache Virtual Hosts - Map different paths of the same domain (or IP) to different sites

I'm running Apache/2.4.29 (Ubuntu). I have only one domain name. I would like to map different sites to different paths after the domain name. For example: mydomain.com/test001 maps to /var/www/...
Roger 71's user avatar
  • 151
5 votes
2 answers
10k views

Apache - Allow access to globally aliased directory without auth

I got a virtualhost, which has some access restrictions configured like this: <Location "/"> AuthType Basic AuthName "Restricted Content" AuthUserFile /var/www/domain/htdocs/....
Zulakis's user avatar
  • 4,335
4 votes
3 answers
5k views

Apache RewriteMap with URLs containing space doesn't work

I am actually using a RewriteMap directive inside my vhost to redirect a list of 800 URLs. It works quiet well: RewriteEngine On RewriteMap redirects dbm=db:/data/apps/project/current/configuration/...
COil's user avatar
  • 229

15 30 50 per page