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)
6,151 questions
Score of 1
1 answer
114 views
Apache web server: Is it possible to pass arguments to ScriptAlias scripts?
Due to various environmental complexities which are not relevant to the question, I need to launch PHP via a batch file (Windows) and so have set up a ScriptAlias, which looks something like this:
...
Score of 0
2 answers
112 views
PHP code cannot connect to NetworkManager
I need to access Network Manager functionality from PHP code by exec()-ing the "nmcli" command. However, when run from PHP code, "nmcli" command returns the error message "...
Score of 1
1 answer
83 views
With PHP-FPM and Apache, messages sent to stderr are not present in PHP-FPM error log
I'm setting up a new server to replace a quite old one. The old server was running PHP as Apache module, while on the new server PHP runs as FPM by default (the OS is RHEL10, standard Apache and PHP ...
Score of 0
1 answer
179 views
Apache2.4 legacy MD5 password hash for authentication
So I have this legacy system that is being migrated to a new architecture. The database stores passwords as plain MD5 hashes, as in
passwordhash = md5('plaintext')
Yes, I know this is insecure, I ...
Score of 0
0 answers
61 views
Nginx 1.18 Proxy: Backend response alignment issues with Apache 2.4 (Leaking adjacent response headers)
I am troubleshooting a production issue where my Nginx 1.18 reverse proxy appears to be desynchronizing from an Apache 2.4.41 backend.
The Problem:
During high-concurrency testing or when using ...
Score of 5
1 answer
237 views
Confusion about php-fpm permissions with SELinux
I recently set up a fedora 44 server in a home lab. I started Apache on it and installed php and php-fpm. I put in /var/www/html a PHP website (SPIP).
All the files and folders of the website are ...
Score of 0
1 answer
114 views
Rewrite rules to remove www for secure and non secure but it's not working
I spent a lot of time defining these rules but they are not working. Something is wonky.
I have 2 a records on my first host (which is not hostinger) that point www.automation.MYDOMAIN.com as well as ...
Score of 0
1 answer
199 views
Apache redirect all ports from subdomain to back end server
I have multiple servers with different services. I have Apache on a publicly accessible server, pointing different subdomains to different servers (*.example.com, *.serv1.example.com, *.serv2.example....
Score of 0
0 answers
62 views
Apache prefork overload when Googlebot crawls thousands of subdomains via vhost rewrite
Environment
VPS: 2 CPU / 4 GB RAM / 1 IP
OS: CentOS 7.4
Web server: Apache (Sentora) + PHP 5.4 prefork
DNS/CDN: Cloudflare Free + Flexible SSL
~10 main domains, ~24k mini-sites (...
Score of 1
1 answer
210 views
https redirect with apache behind nginx
Let suppose we have static website with Apache 2.4 behind nginx reverse proxy.
Nginx provides HTTPS and connects to Apache on HTTP port.
Then you request https://example.com/dir . Because it is a ...
Score of 0
0 answers
117 views
ubuntu 24.04 running redmine, apache2.4 asks for multiple logins
Running redmine under apache 2.4 on ubuntu 24.04.
The apache server is set up to require logins.
Under normal circumstances, one logs in to the apache server once, then when one requests a redmine ...
Score of 1
0 answers
105 views
Apache ProxyPass or fallback to local files
I am looking to run Iocaine on a server hosting a few websites using Apache httpd. It's documentation lists examples for several reverse proxy setups and they basically all come down to handling a ...
Score of 1
0 answers
98 views
Apache mod_authnz_ldap allows access to SVN repo even Require ldap-user is set
I have an Apache serving a SVN.
I want to limit access to SVN using LDAP (indeed I want to limit it to a LDAP group, but it is the same issue with LDAP user. For simplification I used ldap-user here).
...
Score of 3
2 answers
451 views
Redirect no HTTPS Site A to HTTPS Site B
I have this rule set in Apache:
RewriteEngine ON
RewriteCond %{HTTP_HOST} http://www.siteA.co.uk$ [NC]
RewriteCond %{HTTP_HOST} http://SiteA.co.uk$ [NC]
RewriteCond %{HTTP_HOST} ^SiteA.co.uk$ [NC]
...
Score of 1
1 answer
159 views
Apache2 as reverse proxy not forwarding subdomain requests
So I'm trying to set up my fresh apache installation on a Raspberry Pi running up-to-date Trixie so that I can access my blog as the main subdomain (www), and serve other apps that I have subdomains ...