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)

Filter by
Sorted by
Tagged with
1 vote
1 answer
60 views

How Do I Use The <VirtualHost> Directive To Host Multiple Sites Using An EC2 Instance, ELB, And CloudFront?

I've been really struggling with this for the past few days, and I'm at a lost. Here's what's going on. I have an EC2 instance (Amazon Linux 2023) behind an ELB and a CloudFront distribution that I ...
wholelottabob's user avatar
3 votes
6 answers
13k views

HTTPS compatibility issue with Chrome 116/117 ERR_SSL_PROTOCOL_ERROR

I'm having error ERR_SSL_PROTOCOL_ERROR since 2 day on my website for some reason. Browsers tested Windows Chrome 117.0.5938.132 : ERR_SSL_PROTOCOL_ERROR Android Chrome 117.0.5938.61 : ...
Alexandre Lavoie's user avatar
0 votes
0 answers
114 views

Docker phpMyAdmin reverse proxy using Apache - assets not loading

I am running a phpMyAdmin container that I'd like to access via Apache reverse proxy. When I try to access it, it seems like the site itself is loading, i.e. the title of the page shows "...
antikbd's user avatar
  • 101
0 votes
1 answer
92 views

FastAPI is masking Apache2 inside Docker

I setup a webserver and a FastAPI in a single docker container. Here are the relevant parts of the Dockerfile: FROM ubuntu/apache2:2.4-22.04_beta [...] # Apache conf RUN echo '<VirtualHost *:80>\...
Gabriel Cretin's user avatar
0 votes
0 answers
112 views

200 success code in Apache log but 504 error in the browser for the same request

Apache logs 200 (success) code but browser shows 504 Gateway timeout error for the same request. Also, it times out just after aws load balancer idle time out value which is 1200 (20mins). I do not ...
PoojaA's user avatar
  • 1
1 vote
1 answer
91 views

Apache mpm event not working as expected with SSL/HTTPS

I have a server with Apache/2.4.6 (CentOS) + OpenSSL/1.0.2k-fips (I know this is an old version of Apache but it cannot be upgraded right now). mpm event is used for multi processing. When serving ...
tigrou's user avatar
  • 111
0 votes
0 answers
39 views

Apache status - [1/1] The timeout specified has expired

When I check Apache status in WHM, it is full of " [1/1] The timeout specified has expired" lines. Does this mean there is something wrong with the server? My website is configured with ...
Preetinder Singh's user avatar
0 votes
0 answers
36 views

Why Apache SPA mod_rewrite config uses dot in regex and caret crashes Apache?

Typical Apache SPA config based on mod_rewrite: DocumentRoot "${webDir}" <Directory "${webDir}"> LogLevel rewrite:trace8 RewriteEngine On RewriteCond %{...
gavenkoa's user avatar
  • 832
0 votes
1 answer
59 views

What causes an apache 400?

is anyone aware of any official or unofficial docs on why apache returns a 400 status code? I am aware that this is due to a bad client request, but what constitutes a bad client request? I know ...
Damo's user avatar
  • 103
2 votes
1 answer
737 views

TLS 1.0 broken with newer Debian/OpenSSL

I'm migrating a server running Debian 10 to a server running Debian 12 (and a 6.x kernel), and the last thing that doesn't seem to be working is TLS 1.0, which I've been trying to figure out. I'm ...
InterLinked's user avatar
0 votes
0 answers
28 views

Is it possible to spawn one process per connection in Apache with mpm_winnt?

I would like to fine tune the settings of mpm_winnt Apache module: for each connection, it should spawn one new Apache (httpd) process. AFAIK this is similar to what mpm_prefork does (which is Linux ...
tigrou's user avatar
  • 111
0 votes
0 answers
45 views

Apache: Cannot make exception for SSLVerifyClient whith server-level restriction

I cannot make an exception for SSLVerifyCLient when it is at server level: SSLVerifyClient require SSLVerifyDepth 2 RequestHeader set SSL_CLIENT_VERIFY "" <Location /> <If "-R '...
sebelk's user avatar
  • 692
0 votes
0 answers
58 views

DirectAdmin Apache/Nginx Reverse Proxy Custom Subdomain Config

I have a particular application on a subdomain that needs a custom Nginx configuration to work. I am using DirectAdmin control panel to make per-domain customisations. However, I am getting confused ...
Mark's user avatar
  • 1
0 votes
0 answers
25 views

How to restrict user to view directory If subDomain Url format is wrong

Currently, I am redirecting all my subdomains to a particular folder using the .htaccess file. Below I have mentioned my .htaccess file code <IfModule mod_rewrite.c> RewriteEngine On # ...
Ajay Thakur's user avatar
0 votes
1 answer
86 views

Apache geoip not work: PHP Fatal error: Uncaught Error: Undefined constant "HTTP_X_FORWARDED_FOR"

testgeoip.php <html> <head> <title>What is my IP address - determine or retrieve my IP address</title> </head> <body> <?php if (getenv('HTTP_X_FORWARDED_FOR')) { ...
dr.ipkins's user avatar
0 votes
0 answers
26 views

Installing PHP 7.3 on RHEL 7 - Angular/PHP files don't process

I've been tasked with setting up an old application on a RHEL 7 server. It has an Angular front-end (I'm unsure of the version, but it's old) with a PHP backend. However, in the browser console I can ...
DysonC's user avatar
  • 1
1 vote
1 answer
50 views

Apache AliasMatch with Multiple Subdomains

I have the following virtual hosts: <VirtualHost *:443> ServerName article.example.com AliasMatch "^/(.*)" "/var/www/html/article.php" </VirtualHost> <...
Maciek's user avatar
  • 139
0 votes
1 answer
114 views

Apache - Is it possible to rewrite urls based on fragments (hashtag)?

Using Apache/2.4.54 (Win64) I have been requested to rewrite from old domain to new like this From https://oldtest.mydomain.com/company/customerpage/#/customer/<getThisNumber>/something To ...
rhellem's user avatar
  • 305
1 vote
0 answers
141 views

Is Apache mod_evasive really worthful

I read an article saying that apache mod_evasive is an old outdated module and does not real protection against Dos attack. After testing a scenario of load requests to a apache webpage it seems like ...
Cris_Al's user avatar
  • 11
0 votes
1 answer
23 views

How to diagnose and resolve nextcloud slowness that occurs only on an admin account?

I have Nextcloud v27.0.2 running in Docker (specifically the image 27.0.2-apache) and notice that when I login as an admin user it takes minutes before each page loads. I had to increase the timeout ...
Saaru Lindestøkke's user avatar
0 votes
1 answer
189 views

Fail2ban apache2 access log regex

Can anyone help me with fail2ban regex My goal is to ban any accessing .env or .php files or any request that starts with "wp-", it is a little bit confusing and another to detect invalid ...
Joukhar's user avatar
  • 103
0 votes
1 answer
1k views

FireFox gets ns_error_net_interrupt when clicking on loaded page

FireFox is connecting to my website, but accessing already visited pages would randomly not connect resulting in a Secure Connection Failed Chrome and Microsoft Edge are not having that problem. ...
MeSo2's user avatar
  • 274
0 votes
0 answers
35 views

Gitlab Access Tokens, protected by authenticating Apache Reverse Proxy?

We hide a Gitlab instance (among several other applications) behind a single Apache Reverse Proxy, that is doing user authentication (OpenID) before granting further access to the lower services. This ...
Michael Schaefers's user avatar
0 votes
2 answers
145 views

Apache Log files Fail2ban and WordPress

I am trying to get Fail2ban to block brute force and persistent xmlrpc and wp-login attacks on a WordPress site. I have an issue with the apache logging filenames. Getting past selinux issues was ...
jon_the_eye's user avatar
0 votes
2 answers
97 views

LDAPS Auth very slow in Moodle

I have a moodle-installation that uses LDAPS auth which is very slow or does not work at all. It is debian 12, apache2.4, moodle4.1 and php7.4. I had a test installation where things were just fine, I ...
tux's user avatar
  • 1
0 votes
1 answer
145 views

503 Service Unavailable or Empty Response on specific pages over PHP (PHP-FPM) on MacOS

I've got a strange problem here involving some versions of PHP installed in my local machine (MacOS Ventura 13.5). Certain pages (two at this moment) doesn't load in some versions of PHP. It's loads ...
Luiz Otávio's user avatar
0 votes
0 answers
110 views

Laravel: Logging messages generated by "error_log(...)" to terminal, while running app in Apache server

The issue is this one: When I run a Laravel app from PHP server, that's it, with php artisan serve, I could see every message generated by "error_log(...)" printed in the terminal, like this:...
Leandro Caplan's user avatar
0 votes
0 answers
76 views

Apache 2.4 unixgroup authentication not working

Require unix-group is not working for me when configuring the VirtualHost for my Apache server. Whenever I log in using pwauth, the server still authenticates users who are not members of the group ...
Anish G.'s user avatar
0 votes
0 answers
34 views

Azure RHEL 8 VM - Apache 2.4 Package Availabilty

I've got a RHEL 8.8 instance in Azure. This instance will replace our current RHEL 7.9 instance running Apache 2.4.34. The RHEL 7.9 instance has the following httpd package installed: httpd24-httpd. ...
jrd1989's user avatar
  • 688
0 votes
0 answers
21 views

Apache2.4 mod_sed, how to use a variable in OutputSed

Apache2.4, mod_sed I am trying to use a variable instead of static text to make a sed command. SetEnv MY_VAR TESTING OutputSed "s|TEXT_TO_SEARCH|%{ENV:MY_VAR}|g" But the TEXT_TO_SEARCH is ...
Kaspacainoombro's user avatar
0 votes
1 answer
98 views

Estimate requests per second on an Apache server

How can I get the average requests per second on an Apache 2.4 server based on the logs? I'm trying to use k6 to load test a new server, a new cloud provider, with new hardware, but I don't know how ...
Tom's user avatar
  • 289
0 votes
2 answers
78 views

Apache Httpd: Logging Access for Non-privileged Users

I’m wondering if it is common for Apache HTTPD admins to allow read access or read access to copies of /var/log/httpd/${vhost}_error_log? I administer an Apache web server for a University CS ...
deconstruct's user avatar
0 votes
0 answers
48 views

Apache2 - serves a subdirectory as root but now other sites in subdirectories are broken

So I have a new tool installed on my webserver and it has a somewhat complicated folder structure, in order to get it to run, I put everything in a subdirectory and serve that as root of my domain. ...
tulekparson's user avatar
0 votes
1 answer
104 views

mod_proxy_hcheck causes apache-2.4 startup-crash

I would like to create a load-balanced environment using Apache 2.4.43 (windows) and two Tomcats servers. Using the "mod_proxy_hcheck" module some basic healthcheck operations should be ...
schlomm's user avatar
  • 111
0 votes
1 answer
139 views

VPS server all domains showing This site can’t be reached error

Hello all hoping someone may be able to help. I have a VPS server running apache with linux centos 8. I have a few domains running on PHP 8 and one wordpress and node API application. Everything was ...
Yeak's user avatar
  • 103
1 vote
1 answer
93 views

How to make multiple changes to REQUEST_URI at once?

I'm dealing with requests from a proprietary client, that sometimes uses back- rather than forward-slashes: GET /path\to\the\file.txt, and I'd like to straighten them all out. mod_rewrite can replace ...
Mikhail T.'s user avatar
  • 2,347
0 votes
0 answers
33 views

Site says forbidden even though user IP address is whitelisted when using the site's IP address in the URL

The site uses a load balancer and I have the following settings in my Apache conf.d: <VirtualHost *:80> ServerName mysite.com ServerAlias www.testsite.org DocumentRoot /var/www/html/...
r.cam's user avatar
  • 1
2 votes
0 answers
70 views

Unable to connect to AWS EC2 instance public IPv4 using http tcp/80

Referring to an instructional book, I am setting up an EC2 instance on AWS using an IAM role. However, when I try to access the URL using the EC2 instance's public IP address, I am unable to establish ...
Scatt's user avatar
  • 21
2 votes
1 answer
100 views

How to change HTTP-status based on origin's header?

I'm dealing with a proprietary HTTP-server, which always responds with code 200 -- even when an error occurred. The indication of an error, if any, can only be found in the custom header, for example: ...
Mikhail T.'s user avatar
  • 2,347
0 votes
2 answers
221 views

Apache 2.4 Redirect all to index.php

OK, first let me apologize if this question has been asked before. I did a search but didn't immediately find something suitable. I've been looking at the Apache docs but just cannot get this rewrite ...
Paul Allsopp's user avatar
0 votes
0 answers
132 views

Configure Keep Alive for connections coming from Cloudflare

I have two servers, an NGINX load balancer that receives connections from Cloudflare and two Apache applications that receive requests forwarded by NGINX. [Cloudflare] → [NGINX] → [Apache 01/Apache 02]...
Tom's user avatar
  • 289
2 votes
1 answer
571 views

Apache 2.4 on Windows slow to respond to initial first request

I started serving pre-compressed Brotli files on my website https://www.filmfix.com/en/home/. They work; but ever since then, Apache is having response issues along all VirtualHost setups (not just ...
MeSo2's user avatar
  • 274
0 votes
2 answers
61 views

Apache/httpd 'Header set Server' is ignored/overridden

I am using this in a VirtualHost <IfModule headers_module> Header set ProcessingTime "%D" Header set Server "Apache 2.4" </IfModule> I can see that the ...
BairDev's user avatar
  • 125
1 vote
1 answer
293 views

Troubleshooting Apache with GSS Proxy Authentication and LDAP Authorization

I'm setting up an internal web server on a domain-joined RHEL server with Kerberos authentication via GSS proxy and tiered authorization with LDAP, where Active Directory is the source of truth. ...
Vaito's user avatar
  • 21
0 votes
1 answer
57 views

Apache reverse proxy HTTPS to HTTPS

Can Apache reverse proxy with HTTPS pages? client | Apache reverse proxy https://example.com ...
angel's user avatar
  • 1
0 votes
2 answers
42 views

Path not excluded by mod_rewrite config

I am trying to roll my own vhost config to handle certbot/letsencrypt. I want to redirect anything other than requests to /.well-known to HTTPS. But the exception for .well-known is not working; ...
symcbean's user avatar
  • 21.9k
2 votes
1 answer
211 views

Rewrite Apache Condition not preventing rewrite from getting applied

I'm trying to only allow incoming requests to /multi if the Content-Type request header starts with multipart/form-data, while requests to other POST, PUT, or DELETE endpoints must always have the ...
DevelJoe's user avatar
  • 187
0 votes
1 answer
238 views

Wordpress permissions issue - How to set ownership and permissions for WordPress files properly and securely?

I am facing some problems with setting up WordPress on my local server. After a successful connection to the local database, Wordpress dropped me Unable to write to the wp-config.php file.. I created ...
ghostone's user avatar
0 votes
1 answer
315 views

getting error Content Encoding Error (ERR_CONTENT_DECODING_FAILED) with Apache served pre-compressed .br (Brotli) files

How can I get Apache to serve pre-compresses Brotli files? With Chrome I am getting net::ERR_CONTENT_DECODING_FAILED 200 I made my pre-compressed .br (Brotli) files from minimized .html files (.min....
MeSo2's user avatar
  • 274
0 votes
1 answer
315 views

Is there any working Apache module to implement NTLM on Ubuntu Server

I am trying to configure NTLM authentication for an internal site running on Apache/Ubuntu Jammy. I was able to implement LDAP authentication. Still, I want to make the login/auth process smooth as ...
NaniK's user avatar
  • 11