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,012
questions
0
votes
1
answer
26
views
Multiple entries in apache access log
In the apache access log for bitnami moodle on GCP, there are multiple entries (added every second!!) as given below. This is leading to a very high egress traffic. I would appreciate any pointers to ...
1
vote
0
answers
27
views
NGINX Rate Limiting Configuration Leading to 404 Error for Specific Route in Plesk-Managed CakePHP App
I'm using Plesk 18 with NGINX as a proxy in front of Apache2 for a CakePHP application. I have set up rate limiting in my NGINX configuration (/etc/nginx/nginx.conf) with limit_req_zone $...
0
votes
1
answer
32
views
Fedora 29 can't connect to httpd
I'm trying to spin up a dev instance on RackNerd and can't connect via http by IP or domain name. I'm getting ERR_CONNECTION_TIMED_OUT via browser rather than any specific errors. I've configured ...
0
votes
0
answers
13
views
OHS and ProxyPass and RewriteRule / RedirectMatch
i've setted up this virtualhost,
<VirtualHost *:443>
ServerName test.domain.org
DocumentRoot "/u02/config/www/tst-12c"
RewriteEngine on
RewriteCond %{...
0
votes
0
answers
35
views
Apache & PHP-FPM: AH01144: No protocol handler was valid for the URL /index.php (scheme 'unix')
This error occurs despite all the fixes that I Googled.
Apache was loaded next modules:
# /usr/local/apache/bin/apachectl -M | grep proxy
[Thu Mar 14 22:37:35.825542 2024] [core:trace3] [pid 9087:tid ...
0
votes
0
answers
51
views
Optimize load balancer SSL termination on a Windows machine
I have an application on a 32-bit Apache server on a Windows machine from a 3rd party vendor. (Can't change that).
The setup:
Traffic is HTTPS, port 443.
Apache web app service
Activemq service
...
0
votes
0
answers
8
views
Apache basic authentication realm not working with fastcgi
I've 2 applications running on same Apache.
using fastcgi
using Apache basic authentication.
I hope to make app 2 skip user login if user is authenticated to app1.
Can see REMOTE_USER defined after ...
1
vote
0
answers
20
views
What causes "Partial results are valid but processing is incomplete" for mod_fcgi in Apache WITHOUT mod_reqtimeout
I am running Apache 2.4 to serve Nextcloud and I occasionally get the error
[proxy_fcgi:error] cloud.my-domain.tld: (70008)Partial results are valid but processing is incomplete: AH01075: Error ...
0
votes
0
answers
65
views
How to block some bots in .htaccess but except access robots.txt?
I've blocked some bad bots using .htaccess.
For example:
SetEnvIfNoCase User-Agent "^bot1" bots
SetEnvIfNoCase User-Agent "^bot2" bots
SetEnvIfNoCase User-Agent "^bot3" ...
0
votes
1
answer
25
views
.htaccess to get the list of ip from a file or directories of file
I'm blocking certain spammers/bots from accessing my website via IP addresses, but I have around 3 directories (/var/www/directory1, /var/www/directory2, /var/www/directory3).
Every time I want to ...
1
vote
1
answer
23
views
Apache: Meaning, purpose and semantics of the URI after the pipe symbol within the SetHandler directive?
What is the meaning, purpose and semantics of the fcgi:// URI after the pipe symbol
within the SetHandler directive?
From my understanding of the docs, everything after the scheme part fcgi://
of the ...
1
vote
0
answers
21
views
Server forbids access to any URL ending in .php (even nonexistent ones) with "client denied by server configuration", but identical html files are OK
I'm trying to enable some php files on an Apache 2.4 machine that has no other php content. I'm finding that any php URL (even made-up URLs for nonexistent things) results in the error "client ...
0
votes
0
answers
16
views
Single Sign-on via Apache2 on Ubuntu
I have installed and already set Single Sign-on on Ubuntu server... on Apache2
But now have change domain from PREVIOUS.COM to NEW.COM
I have already created on on domain krb5.keytab and placed to ...
0
votes
1
answer
53
views
why does apache2.conf grants access to /usr/share and /serv by default?
I am aware of this question, which is very similar to mine, however I am interested in why this is the default behaviour.
Since by default the document root is /var/www/html, there is, to my knowledge,...
0
votes
0
answers
32
views
getting 403 forbidden error using httpd (apache) connecting to tomcat via AJP
i am staring to be little bit hopeless since i tried many solutions and nothing worked.
I am getting 403 Forbidden error when i try to reach my apache Tomcat server via httpd server (used as ...
0
votes
0
answers
32
views
Apache ( 2.4.58) compiling fails after Openssl upgrade to 3.2.1. on Amazon Linux 2
Apache ( 2.4.58) compiling fails after Openssl upgrade to 3.2.1. on Amazon Linux 2, Could you please help me on this.
Error:
/var/tmp/httpd-2.4.58/support/ab.c:2319: undefined reference to `...
0
votes
0
answers
31
views
Apache VirtualHost on a VM [migrated]
I'm learning about Apache Virtual Host. I'm using a VM running Ubuntu Server 18.04 with Apache2.4, my objective is configure two Virtual Host in the Apache2 and access it from my PC (not the VM).
I ...
0
votes
0
answers
17
views
Using gdb/lldb to debug apache segfault
I am currently running an apache webserver on a macOS with an M1 chip. Recently I have been receiving some segmentation fault which is accompanied by empty response errors in the website. After ...
0
votes
0
answers
25
views
Ubuntu 22.04.1 php8.1 performance issues
I upgraded php from 5.4 (Centos) to 8.1 (Ubuntu22.04) and I noticed a big performance downgrade in php native calls such as php::date, php::sin etc.
for example, php::strtotime that before took 2msec ...
0
votes
1
answer
81
views
How to run Supabase and t-rex with TLS reverse proxies
I have a VPS with 2 services at different ports and self signed SSL for an IP. It is Supabase at port 8000 and t-rex service at port 6767. I need them both on HTTPs like https://192.0.2.1:8000 for ...
0
votes
0
answers
61
views
Apache 2.4 multiple instances on Debian
Apache ships with a script for creating multiple instances on the same server, which is exactly what I want to do. The first instance is happily up & running on ports 80 (http) and 443 (ssl).
File ...
0
votes
1
answer
31
views
User-Agent Filter Not Working For Any Pages Inside Site
I created a Rewrite rule in the .htaccess of a website to block traffic with blank user-agents and user-agents with only "-", except when the request comes from the webserver itself. The ...
0
votes
0
answers
54
views
PHP post data lost with Transfer-Encoding: chunked; Apache regression?
I am moving a PHP application from an older CentOS 7 server with Apache 2.4.6 and PHP 7.3.33 (mod_php) to a newer Alma Linux 9 server with Apache 2.4.57 and PHP 8.0.30 (PHP-FPM). This is a back-end ...
0
votes
1
answer
37
views
Apache referrer based reverse proxy path rewrite
I have a virtualhost that is a reverse proxy based on a path param "xmg"
<VirtualHost *:443>
ServerAlias some.example
SSL...
ProxyPass /xmg http://localhost:5553/
...
1
vote
1
answer
91
views
Apache: 500 error, PHP fails on just one specific path
I need another pair of eyes to help debug an issue. This will be a long message. I'm going to provide a lot of context because I'm not sure which details might be important.
We have two servers: dev, ...
0
votes
0
answers
22
views
Unable to run cgi program on apache2 server (with some mod_jk configuration)
In a apache2 server which have enabled mod_jk to access tomcat10 contexts, it was also enabled and configured the mod_cgid to run programs from the folder /var/www/apps/cgi-bin.
But when I try access ...
0
votes
0
answers
19
views
mod_ruid RuidGid equivalent
Since mod_ruid is no more supported by custombuild(directadmin) I had to install php-fpm. I would like to know where I can set the user that is running the website what was primarily the RuidGid in ...
0
votes
0
answers
75
views
Apache 2.4 random chrome ERR_EMPTY_RESPONSE
Firstly, I would like to say I am somewhat a rookie to apache configs. I have worked with it a little bit but definitely not enough to the level of many apache professionals. Due to this, some ...
0
votes
2
answers
75
views
Is it safe to use logrotate utility while logs are still being written by Apache?
I have a server where Apache mod_log_config mod is enabled. Using rotatelogs, it will produce a new log file once it reach 1GB :
CustomLog "|/usr/sbin/rotatelogs /var/log/logs 1G"
On the ...
0
votes
1
answer
79
views
Internal Server Error on Nextcloud instance migration from Debian 12 to Rocky Linux 9 server
I've done everything by the book, according to the official guide, available here https://docs.nextcloud.com/server/latest/admin_manual/maintenance/migrating.html
It is not a SELinux issue. I've tried ...
1
vote
0
answers
52
views
Is it possible in Apache MPM-Event to force it to stop connections after a timeout when a process is shutting down and the scoreboard is full?
We are using WebSockets that hold connections for a long time, possibly weeks.
Apache 2.4.41 w/MPMEvent sometimes decides to stop a process (such as 1: when load drops, 2: when user reloads ...
0
votes
0
answers
40
views
Apache producing 301 for apparently valid URL (Pen test)
I'm using Burp Suite pen-tester on a site and it is showing up a minor issues that I can probably ignore, but I would like to get to the bottom of what is going on anyway.
A GET request is being made ...
1
vote
1
answer
111
views
.htaccess to normalize requests to files with or without extension to URL without extension: $1(\.html?) --> $1
This is a followup question
My intended .htaccess ruleset has overall been achieved.
See that file in its current form quoted below.
Remaining problem: One ruleset yet not working
Goal: Normalize ...
0
votes
0
answers
16
views
Apache2 send response while waiting for HDD to spin up
I have an Apache 2.4 Server that hosts static files. One directory (example.com/) is on the SDD (System-drive) and anotherone is on an external HDD (example.com/ef/).
My Problem is that because my HDD ...
0
votes
0
answers
18
views
Apache Subpath Wildcard Rewrite
I want to set Apache up so that when I visit https://example.com/v/{{ param }} it (reverse?) proxies the request to https://{{ param }}.example.com/v.
I am also trying to wildcard /v/* so that it ...
0
votes
1
answer
60
views
Apache fails to restart after disabling SSL mod
On Ubuntu trying to disable ssl in apache. But when I restart Apache, it fails...
a2dismod ssl
Result:
Module ssl disabled. To activate the new configuration, you need to run: systemctl restart ...
0
votes
0
answers
82
views
How to replace response code sent to client when using Apache httpd to reverse proxy
I have a database that accepts HTTP POST requests with JSON payloads and correctly returns an HTTP 201 Created status response and some JSON content.
Garmin has a service that will POST JSON to a ...
1
vote
1
answer
154
views
What is the best way to achieve SSO for Apache 2.4 within a Windows domain? [closed]
I would like to implement an SSO authentication (without login/password prompt) on a PHP 8 intranet app, which runs under Apache 2.4 x64 for Windows. My company has an Active Directory / LDAP / ...
0
votes
1
answer
120
views
Trouble Installing Apache from Source AIX
I am trying to install Apache 2.4.58 on AIX 7.2 from source, to a custom location, but make keeps running into trouble and I'm out of ideas. I know there is a script under build/aix, but we have never ...
1
vote
2
answers
242
views
.htaccess files directive only matching when I'm checking the same folder
I've got a server set up where I want a specific PHP file to be readable via the browser, but I want access to be denied to the rest of the PHP files. So I put this .htaccess in the server root:
<...
0
votes
2
answers
173
views
Postfix/Dovecot presenting default SSL certificate from Apache to Thunderbird client
I've been struggling with this issue for some time now.
I want thunderbird to get the certificate for mail.******.cl, but it always seem to get ******.cl.
So I've done a couple of tests, and realized ...
0
votes
0
answers
62
views
Apache2 with GSSAPI auth, can't exclude one location from auth
We have an apache2 serving a PHP application, with kerberos authentication
We developed an API within the PHP application, and we want to access it without Kerberos auth
But we cannot manage to ...
0
votes
0
answers
34
views
Apache 2.4: Delays with TLS on base domain but not so much on subdomains
On an Apache 2.4 server with SSL enabled, HTTP/1.1 and valid wildcard certificate (I unfortunately cannot share the site's URL.)
I recently get a consistent delay on new TLS connection.
The SSL ...
0
votes
1
answer
58
views
Rewrite urls only for certain folder and remove parts of the url in Apache
I have an old project in PHP which I'm trying to modernize. The routing of the old project is just files on the server which you'd access via the url.
So for example a file placed in folder/subfolder/...
0
votes
0
answers
73
views
Two Virtual Hosts with to disntinct PHP configurations via PHP-FPM on Ubuntu and Apache
I have to Virtual Hosts on Ubuntu 20.04. One host is test instance and one is production (I know it would be better to have it separate). Now I need to run different php config for test vhost than for ...
0
votes
1
answer
150
views
Why rotatelogs from apache produce files smaller than specified max size?
I use the following rotatelogs command from Apache :
/usr/sbin/rotatelogs /var/log/somelogfile 1GB
If I send 1GB of content to it (for testing), it produces the following files :
somelogfile....
0
votes
0
answers
78
views
Apache 2.4.53 Getting AH00027: No authentication done but request not allowed without authentication for /CN=XXXX. Authentication not configured?
We have an Apache 2.4.53 and when they try to access it we are seeing a 500 error, and the following in the error_log file:
[Thu Jan 25 23:56:22.600893 2024] [core:error] [pid 24313:tid ...
0
votes
0
answers
38
views
HTTP to HTTP Apache2 Rewrite not being used
I want all traffic sent on HTTP redirected to port 443.
I curently have a Rewrite rule set up for port 80 in the sites-available apache2 directory but when I go to that address on that port it still ...
0
votes
0
answers
27
views
Convert auth config from apache http server 2.2 to apache 2.4
I have the following apache 2.2 configuration and need to transform it to apache 2.4.
<Location />
Order Deny,Allow
Deny From Env=TEST
Allow From Env=LOCAL
Allow ...
0
votes
1
answer
28
views
apache - Require HTTP basic auth on ScriptAlias Location
I have a ScriptAlias configured like so:
<VirtualHost *:443>
ScriptAlias /path/ "/path/to/bin/cgi"
</VirtualHost>
I want to use Apache to put a basic auth wall in front of ...