Questions tagged as ['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)
Score: 0
Glorfindel avatar
Apache's mod_speling works for GET requests, not for POST
cn flag

My setup:

  • Raspberry Pi 4 Model B Rev 1.4, 8 GB version

  • Raspbian 10 / buster, kernel version 5.10.17-v7l+

  • Apache 2.4.38

  • mod_speling enabled with a2enmod

  • the following lines in the configuration file of my site:

    CheckSpelling On
    CheckCaseOnly On
  • a simple index.php file in the root of my website.

GET calls (via a browser or curl) to both and https://www.exampl ...

Score: 0
Apache2 mod_userdir+mod_authnz_external, how to limit access to own home
de flag

I have an Apache2 setup with mod_userdir and mod_authnz_external+pwauth so that each user can access his home and can be authenticated by his local UNIX credentials.

Now I need some kind of authorization so that each user can, after being authenticated, only access his own home directory, but not those of other users.

The caveat: in my setup, a user is not necessarily the owner of his home directory, so ...

Score: 0
VagrantPaladin avatar
Apache Config file blank
in flag

I have a server hosting many sites, many of which have SSL set up.

For these the SSL config are held in a separate config file, being /etc/httpd/conf/httpd-le-ssl.conf

This has been in use and working for a long time - SSL certs are updated using the Lets Encrypt certbot utility

Yesterday I found that the SSL config file was suddenly blank (It should have in the region of 3000 lines)

While finding a ba ...

Score: 1
carlitobrigante avatar
Permission denied for gitweb.cgi on CentOS
cn flag

I've set up gitweb on my web server. I have created projects on the server. I can add commits to them and also clone them remotely.

The gitweb "homepage" does display and the static files like css, logo, favicon are loaded when I visit my

Issue is I only see the message: No such projects found found.. Every time I refresh the webpage I see the following in my /var/log/httpd/error_log

Score: 1
something is "blocking" my images from loading faster tried apache configs, nginx, cache header stuff, nothing changes
bq flag

THE ISSUE : the images in my site takes a bit to start loading... like if something is blocking, but unable to pinpoint what could be the cause.

PHP 8 / latest WHM


WHAT I TRYED [.0A.] : changing web hosting company => no change, there is something in my web code...

WHAT I TRYED [.0B.] : I was with centos 7 and changed to centos 8 => still the same

Score: 0
ondelettes avatar
Request header read timeout, DOS attack?
in flag

I have a –draft– server with Debian 10, Apache 2.4.38 and a few –rather empty– VHosts with GnuTLS. No proxy nor Nginx.

Every now and then, I get zillions of “AH01382: Request header read timeout” all coming from one IP, in the logs.

Usually, only one IP at a time. Normal navigation on those sites don't produce this, including webcrawlers'.

It can produce gigas of log lines in minutes, wi ...

Score: 0
broadcastre avatar
Apache2 Vhost issues - when my virtualhost is enabled it makes the root domain show that virtualhost
ca flag

I am running apache2 on a Debian 10 server.

I have a virtualhost for one of the subdomains I have. I'm having an issue where if the subdomain's virtualhost is enabled, going to will show the contents of (the virtualhost).

This is not intentional and any help with this issue would be appreciated.

My virtualhost confg

root@server1:~# cat /etc/apache2/sites-available/smf ...
Score: 1
Error trying to ban ip addresses from apache with fail2ban: Sorry but the jail 'apache' does not exist
us flag

I want to use fail2ban to block specific ip addresses with:

sudo fail2ban-client set apache banip

I get:

 NOK: ('apache',)
Sorry but the jail 'apache' does not exist

I'm also confused because the jail.conf file does not contain an entry for [apache]. I tried adding it manually and restarting fail2ban. That didn't help.

All the tutorials I've found talk about the [apache] jail but it ...

Score: 0
Tần Quảng avatar
How to install PHP on CentOS has preinstalled Apache HTTPD?
pk flag

I'm using CentOS 7. I wanted to install PHP 7 so I used remi-php (latest PHP version of yum is 5.4). Since the HTTPD version of yum is too old, I compiled the latest HTTPD version from the source code.

HTTPD compilation goes perfectly, however, when I try to install remi-php using the following command:

yum --enablerepo=remi-php71 install php php-cli php-intl php-mbstring php-mcrypt php-mysqlnd
Score: 0
Nginx run as apache user: how to fix owner of tmp folder
us flag

I used to set up Nginx as frontend and Apache as backend, and for the sake of simplicity used to set Nginx to run as apache user (by specifing user apache; in nginx.conf).

After that, default Nginx's tmp dir (e.g. /var/lib/nginx/tmp) become unusable by nginx as it belongs to nginx not apache. Ok, I do chown -R apache ... and fix it - but after a while (looks like until next Nginx update) the ownder of the ...

Score: 0
How to configure apache 2.4 using another user for fastCGI
ng flag

I am using IIIF Server under apache 2.4 and fastcgi with ubuntu 16.04.

I have to run apache 2.4 with another user as the constrain of file permission in NFS.

I have changed

  • the user and group in /etc/apache2/envvars to new-user
  • the owner of /var/lib/apache2/fastcgi to new-user:new-user

Apache service is restarted and working for other server.

However, I still get 503 error to access fastcgi address.  ...

Score: 0
flashbang avatar
Apache - FastCGI and CGI side-by-side under same directory?
cn flag

I am running an Apache 2.4.48 server with mod_cgid and mod_fcgid. I have a number of CGI scripts under /cgi-bin/ and have been refactoring some of them to use FastCGI. During this refactoring I need to figure out a way to support running both types of scripts out of the same directory while retaining their existing names, so the usual methods of creating a new path (e.g. /fcgi-bin/) or renaming them ( ...

Score: 2
Adrian avatar
Initial connection (TCP handshake) takes 150 seconds first time with https only, but normal from then onwards - Apache - AWS EC2 - Route 53
in flag

I'm new to web deployment. I have this at this stack at the moment:

  1. Django
  2. Apache
  3. EC2
  4. Route 53
  5. Namecheap

When I access the website through the public IPv4, it is instantaneous.

However, when I access the web page through the domain, it takes 2 minutes and 30 seconds exactly.

This picture shows the waterfall graph

In more detail

I see that there's no problem with the DNS lookup, nor the SSL, so the  ...

Score: 0
Chris Ostmo avatar
Large tmp file transfer hangs in nginx php-fpm proxy
cn flag

We have a server that's running a WordPress site with a serverpilot-installed nginx stack on Ubuntu 20 LTS.

Very large uploads appear to get stuck in the handoff between the nginx proxy and PHP, and I have come to the end of what I know how to troubleshoot without just poking at it to see what happens (which is rarely a good use of time or way to move forward). So far as I can tell, I have increa ...

Score: 0
Suddenly start getting err_connection_reset
tj flag

Suddenly I started to get the net::err_connection_reset 200. It only happens in one page of my site, all the other pages load fine. I removed everything from the controller and model and only left the essential functions to the page load. After that I removed all the content from the page and still get the same error. All the scripts loads, but the page fails to load. fail

enter image description here these are the logs from the a ...

Score: 0
ruby.lee avatar
Website TLS Protocol version
za flag

I host a https web site on a Windows Server 2016 installed with Apache 2.4.37

When I browse with Google Chrome 92.0.4515.107, it shows that it's Protocol TLS 1.3

When I check with Wireshark Version 2.4.1, it shows that it's Protocol TLS 1.2

My question is the website Protocol is actually TLS 1.2 or TLS 1.3?


Score: 1
alvan avatar
CENTOS apache ALL=(root) NOPASSWD: /path/to/ is not working
jp flag

Trying to do a web interface IPtables management.

Created a file test.php

$output = shell_exec('sudo bash /usr/bin/ 2>&1');
echo $output;

Gave /usr/bin/ NOPASSWD so I can execute the file with sudo through apache without using a password

sudo iptables -L

sudoers file :

apache ALL=(root) NOPASSWD: /usr/bin/

But I am still getting error

We trust you have r ...

Score: 1
yossi avatar
Laravel route (voyager and others) shows 404
co flag

I Use Apache 2.4.41, on WSL2/Ubuntu.
There I have a laravel project, with Voyager installed.
I also use a virtualhost(vh) for it.

Accessing the App url http://myapp works. However - The Voyager app at http://myapp/admin fails with 404 error.

My VirtualHost file is:

<VirtualHost *:80>
    ServerName myapp

    DocumentRoot /var/www/myapp/public

    <Directory "/var/www/myapp/public">
Score: 0
ruby.lee avatar
Disable SNI on Apache
za flag

I've a Windows Server 2016 installed with Apache 2.4.37

In the Apache server, I've setup multiple virtual host like:


All this virtual host share the same IP address and certificate in wildcard *

We're enchance the website to link to a 3rd party service for online transaction now. But we face an error when handshake with the 3rd party service. We sus ...

Score: 0
Shardj avatar
Concurrent apache requests cause net::ERR_CONTENT_LENGTH_MISMATCH
ve flag

The issue is easily reproduced with the following command: $ ab -n100 -c100 http://localhost/js/app.js

I typically see 1 successful request and 99 failures due to net::ERR_CONTENT_LENGTH_MISMATCH.

The js file in question isn't the only one effected, the error is also seen on our main .css file. The files in question are 1.29MB for the js file and 696KB for the css and we see the error the most ag ...

Score: 0
wpcpremium80 avatar
“No input file specified” - Laravel project on CentOS
pk flag

I've have VM with CentOS installed where I want to host Laravel project. I've put it on /var/www/html/project

But when I access via URL of this project like I get tree of document. When I enter public directory it shows me a message: "No input file specified.".

What I need to do to solve this problem? I've edited httpd.conf file(added V-host). Welcome page of Apache works good.

This ...

Score: 0
Mike Hermary avatar
How to correctly enable Imagick in PHP-FPM on Ubuntu 20.04 and Apache
in flag

I have PHP-FPM setup on my Ubuntu 20.04 server and have installed Imagick, but I cannot get it to be recognized by PHP 7.4. I tried following these steps, but step one returns the following error in Terminal.

-bash: /etc/php/7.4/mods-available/imagick.ini: Permission denied
  1. sudo echo > /etc/php/7.4/mods-available/imagick.ini
  2. sudo ln -s /etc/php/7.4/mods-available/imagick.i ...
Score: 1
reghorn avatar
Apache 2.4 and LDAP. Basic authentication issues
es flag

I'm using CentOS 8 Stream + Apache 2.4 + Subversion.

I want to allow access to SVN only for users who belong to a specific LDAP group (svn-users).

I have the following problems.

case 1. Enter the correct ID / PW as an LDAP user belonging to svn-users

This works as expected.

This user can access SVN.

case 2. Enter the correct ID / PW as an LDAP user that does not belong to svn-users

This does not work ...

Score: 0
erotavlas avatar
Web server, firewall and active directory: internal network connection error "DNS rebinding attack"
fr flag

I have a problem with a web server (WS) (apache on ubuntu 20.04 server), Fortinet Firewall (FF) and windows Active Directory (AD). My ISP recently upgraded my Internet connection and changed some configuration (static IP addresses and subnet). Before the upgrade, there was no problem. In particular, the AD was behind FF while the WS was external to it (machines from local networks and from external netw ...

Score: 0
Aleksa Ristic avatar
Apache SSL Installation [Not Duplicate]
ch flag

I am trying to install ssl certificate on my ubuntu server 20.04

I have downloaded ssl files and put them in /home/ubuntu (will change once it works):

  • api_limitlesssoft_com_key.txt

Now what I have done is edit Virtual host file to look like this:

LoadModule ssl_module modules/
LoadModule proxy_module modu ...
Score: 0
Franck Sartori avatar
Apache 2.4 ignoring basic authentication
es flag

I'm currently searching a solution to re-enable basic authentication with .htpasswd file in Apache 2.4. Everything was ok using Apache 2.2 and then I upgraded to MAMP Pro 6.4 that implements Apache 2.4. The authentication is now just ignored.

I understood that the key thing is the Directory content of the httpd.conf file.

Currently, it is configured like that :

<Directory "/Users/Shared/Shared_I ...
Score: 0
Intermittent "Address already in use: AH00072: make_sock: could not bind to address" on port 80
ng flag

We are experiencing intermittent "Address already in use: AH00072: make_sock: could not bind to address" on port 80 failures on our servers. I have looked at other answers and they are mostly based around it being a consistent failure and a LISTEN being defined twice, which is not our issue.

Our issue only happens shortly after boot of the instance where we "sudo service httpd restart" the servic ...

Score: 0
Use Nginx proxy pass (reverse proxy) to serve an Apache hosted site with SSL
us flag

I've searched the forums (and elsewhere on the web) and have found related but seemingly not identical information. Hopefully I'm not duplicating here.

I have a site running on an Apache server. It already has an SSL certificate (via LetsEncrypt) and runs without issue.

I've recently setup a machine 'in front' of it that is running Nginx. That machine serves three domains (with one certificate from  ...

Score: 0
Prashobh K V avatar
How to configure Apache2.4 to get URL path from distribution (dist) directory?
in flag

I am trying to get URL resource loaded using Alias but it is not working for dynamic URLs

DocumentRoot /var/www/dist/ Alias / /var/www/dist/

But when we refresh the page The requested URL was not found on this server. shows up, so can anybody suggest me how to work it out so that if even the page is reload the the content of the URL stays there itself


(Currently) URL ( ...

Score: 0
CoinAnalyzer avatar
Can't Get ProxyPass User IP Address
cn flag


websocket = new WebSocket("wss://");


$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
echo "Received [$input] ($size bytes) from IP $ipaddress Port $port\n";


ProxyPass /game_play/ ws://
ProxyPassReverse /game_play/ ws://