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
2
votes
0 answers

Enabling HTTP/2 in Ubuntu 18.04

I've just upgraded to 18.04 from 16.04 and am having a problem enabling HTTP/2 on my websites. First of all, my websites all use HTTPS. I have done the following: sudo a2enmod http2 added the following text to /etc/apache2/apache2.conf Protocols h2…
Cromulent
  • 316
  • 1
  • 2
  • 18
2
votes
2 answers

Redirect https://www to https://

I use this RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ https://kanzan.se%{REQUEST_URI} [L,NE,R=301] to redirect ALL www to non-www, but it doesn't work when I type https://www.kanzan.se.…
user2908112
  • 167
  • 1
  • 13
2
votes
1 answer

Apache: too many redirects

My Scenario: i have running apache severing my UI and i have my node api running on port 2000 and i have a reserves proxy on apache to proxy request to api and i have configure ssl as well and i want to redirect http to https. this is my following…
Frodo
  • 123
  • 1
  • 1
  • 4
2
votes
1 answer

Wsgi not finding python modules

Trying to get Django server running with Apache and WSGI This is my wsgi.py import os from django.core.wsgi import get_wsgi_application sys.path.append('/home/rohan/Desktop/narsil/narsil') # adjust the Python version in the line below as needed…
Bayko
  • 121
  • 1
  • 1
  • 4
2
votes
1 answer

Servers crash with 3000 concurrent clients - how to config it right? PHP & Apache

I've 4 web servers, 2 database servers (read & write), Redis and a load balancer. I'm using PHP 7.0 & Apache2 & MySQL 5.7, however when I do load tests with 3000 users which surf at the same time, the servers crash one by one. The Apache servers are…
MyLibary
  • 121
  • 2
2
votes
0 answers

In CENTOS 7 how to solve "Config variable ${APACHE_LOG_DIR} is not defined" Apache error?

I have the same error as described on Ubuntu but none of the solutions are directly use-able on the file/directories in httpd of CentOS. The two solutions were to source the /etc/apache2/envvars file which I don't casually see in etc/httpd, and…
2
votes
2 answers

AH01071: Got error 'Primary script unknown

Debian Linux 8.10, Apache version 2.4.10, FPM/FastCGI. I have created a 1st virtual host. After hours, I could get it working. Then I have created another virtual host, with almost the same config => I get a "File not found." in the browser and a…
Bruno de Goyrans
  • 101
  • 1
  • 3
  • 10
2
votes
1 answer

Apache reverse proxy based on header

So I have a configuration for apache that is working in 99% of the cases. It is checking a header value in the request and based on that it is redirecting to the correct API version url with a 307 status. This works for all clients that properly…
munHunger
  • 363
  • 1
  • 3
  • 9
2
votes
0 answers

How can I explore and/or modify Apache httpd's DAVLock file?

I have an Apache httpd server running mod_dav (and mod_dav_fs) and I have what appear to be stale locks on files that I'd like to manually expire. I can see the DAVLock file on the disk, and the documentation says that the file is an SDBM file, but…
Christopher Schultz
  • 1,105
  • 2
  • 12
  • 22
2
votes
1 answer

Forward Proxy convert http to https

We have access to a remote web API that requires a client cert to access (it's a PKI). I want to allow access to this API for specific servers / IPs in our network without them having to import the client cert into the keystore and also enable them…
dashambles
  • 121
  • 1
  • 1
  • 3
2
votes
1 answer

Why is my site so slow after installing SSL?

I have a Wordpress site that performs fairly well locally. Most pages load in at around 1s. Some are even less at around 800-900ms. When I upload my site to my production server, a 2G RAM VPS on Digital Ocean, the load time goes up to about 1.6s,…
Michael Lynch
  • 121
  • 1
  • 1
  • 3
2
votes
1 answer

apache2 mod_rewrite redirect without http body

I am currently using Apache mod_rewrite to redirect to HTTPS, but I would like to remove the body from the response. How it is currently: Example: How I would like it to be My redirect configuration: RewriteEngine on …
reddot2k
  • 31
  • 3
2
votes
1 answer

Apache reverse proxy double trailing slash

I have a reverse proxy setup in my virtual host. However, when I visit the site: https://example.com instead of https://example.com/ in the browser address bar, I get https://example.com//. Why do I have two trailing slashes? Is there something…
Gitnik
  • 147
  • 2
  • 9
2
votes
1 answer

Apache reverse proxy not keeping domain name

I have a site e.g. example.wordpress.com (a subsite wordpress multisite) but I want users to see the content of that site under a different domain e.g. cooking.com. I have A record setup for both domains to forward to same IP, and I have read that…
Gitnik
  • 147
  • 2
  • 9
2
votes
1 answer

Do httpd/conf.d/* files override httpd.conf

If there is different configuration for the same parameter in both conf/httpd.conf and a /conf.d/* file, which will take precedence? I can’t find this explicitly stated in any official documentation.
dlinx90
  • 123
  • 1
  • 4