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)
38
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
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.
...
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.
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 ...
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 ...
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/...
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/....
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/...