Questions tagged [apache-2.4]

Version 2.4 of 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 questions specific to version 2.4 of Apache HTTPD. For more general Apache HTTP Server related questions, you should use the Apache2 tag instead.

Apache is very well documented and most functionality is described in detail within this documentation. Specific documentation is available for Version 2.4

If you are asking a question on Server Fault about Virtual Hosts, can you please include the output of either:

# Debian Linux and its derivatives
apache2ctl -S
# Most other UNIX/Linux distributions
apachectl -S
# Non UNIX/Linux distributions or if you are unable to find apachectl
httpd -S 

Including this will involve in a much faster answer to your question, as no doubt the first thing people will ask for is that output.


For questions about Apache 2.2 please use

6023 questions
44
votes
1 answer

Apache is OK, but what is this in error.log - [mpm_prefork:notice]?

My apache server is running OK without any problems. It also doesn't issue any warning during restart. However, if I examine error.log I can see the following lines repeating from time to time: [Wed Jun 25 18:15:56.295408 2014] [mpm_prefork:notice]…
32
votes
5 answers

How do I require an IP range instead of 1 IP?

My IP changes do a different D class, so I want to set a range: 123.123.123.xxx where the last segment can be 0-255. Right now, Apache says: Require ip 127.0.0.1 Require ip ::1
user281497
  • 331
  • 1
  • 3
  • 3
13
votes
3 answers

Why do I grant access to /usr/share in apache2.conf

I have noticed that I have the following lines in apache2.conf (on ubuntu 14.04): AllowOverride None Require all granted And the reason for this is written as: not allow access to the root…
12
votes
3 answers

Why is Apache spawning so many processes?

I have a Wordpress blog with one post. I wanted to self-host for the experience and "fun" of it. I rarely get any viewers at all because I am just setting up. I am on an Amazon EC2-micro Arch-Linux instance using Apache 2.4.23 and MySQL 5.5.52 to…
12
votes
3 answers

Allow access to Apache server from only one IP address

I have an Apache server that, for the time being, I need to block access to for all but a select group of people. The easiest way to do this, I thought, would be to deny access from all traffic and then allow only the select few IP addresses. From…
BSnapZ
  • 223
12
votes
5 answers

Apache2 "Require all granted" doesn't work

I have a fresh install of Apache2 on Debian testing and configured a virtual host in a directory like this: Options Indexes FollowSymLinks MultiViews AllowOverride All Require all…
11
votes
3 answers

Allow multiple IPs with the Require directive in Apache 2.4

I am migrating from Apache 2.2 to 2.4, and would like to prefer the use of "Require" than the now discouraged use of Allow, Deny. My question: How can I allow access from a set of IP addresses or ranges, by having one address/range per line in the…
mimo
  • 283
9
votes
2 answers

Why the warning for 'a2dismod autoindex'?

I have Ubuntu 16.04 x64 with LAMP. (Apache2.4) I consider directory browsing very bad. I just discovered this wonderful solution: a2dismod autoindex But it gives this vague but very scary warning: root@www:~# a2dismod autoindex WARNING: The…
Josh
  • 93
9
votes
3 answers

Rewrite Rule before Proxypass

Having an application running on port 10001 I would like to have a reverse proxy to serve it on hostname/ds . The only problem is that there are hard linked scripts to /scripts/... That means hostname/ds/ shall get me to localhost:10001/ and…
8
votes
1 answer

Apache 2.4 - how to use multiple files in files directive?

I can't find any info about it in the official documentation. I try to allow access to two php files, A.php and B.php. Require all granted Require all granted Does it work like this or is…
Black
  • 491
8
votes
2 answers

Install apache 2.4 on debian wheezy

I have a debian and when i try to install apache2.4 with apt-get update apt-get install apache2 I have the version 2.2, anyone know how to install the 2.4 ?
mpgn
  • 217
7
votes
1 answer

Why does a2ensite give me the error "site does not exist"

I initially thought I had this problem: https://stackoverflow.com/questions/28572629/a2ensite-site-does-not-exist-error-even-with-conf-file But that did not help me. I cd here: /etc/apache2/sites-enabled I know the path to a2ensite: which…
lorm
  • 173
7
votes
3 answers

DefaultType directive in apache 2.4

We have just migrated from Apache 2.0.53 to Apache 2.4 Everything works perfectly for html/js/css files etc. But we have a number of endpoints on our servers which return plain text. For example - an endpoint would return - RIL~Reliance…
6
votes
1 answer

Require ip x.x.x.x not working in Apache 2.4

I edited my apache2.conf (on Ubuntu) to restrict access to all except from one IP, but I still can access from other IPs. Below is my configuration: Options FollowSymLinks AllowOverride None Require all…
Albert
  • 93
6
votes
1 answer

Memory leak on Apache

I have a light memory leak apparently due to semaphores which are not released by Apache (configured as a reverse proxy). When the platform gets more loaded with additional traffic this leak gets more important over time. Memory can be released when…
Flo
  • 161
1
2 3
26 27