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
0 votes
0 answers
16 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 ...
arlomedia's user avatar
  • 131
0 votes
1 answer
28 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/ ...
user22866's user avatar
  • 151
1 vote
1 answer
59 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, ...
Will Martin's user avatar
  • 2,503
0 votes
0 answers
20 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 ...
Kleber Mota's user avatar
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 ...
Jeremy Lankot's user avatar
0 votes
0 answers
50 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 ...
Legend ile's user avatar
0 votes
2 answers
71 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 ...
tigrou's user avatar
  • 111
0 votes
1 answer
59 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 ...
nitro64's user avatar
0 votes
0 answers
31 views

Unreasonable increase in RAM consumption by Apache (without reason) [closed]

Since 3 days ago without any changes on the server settings (centos 7) and with the same number of visit requests 1- The amount of RAM occupied by Apache for each pid reached 600 MB from 32 MB! 2_ In ...
amir's user avatar
  • 1
1 vote
0 answers
37 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 ...
arberg's user avatar
  • 111
0 votes
0 answers
37 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 ...
Kline's user avatar
  • 247
1 vote
1 answer
103 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 ...
porg's user avatar
  • 163
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 ...
Der Müller's user avatar
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 ...
Taylor Evanson's user avatar
0 votes
1 answer
47 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 ...
dsol828's user avatar
0 votes
0 answers
65 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 ...
Amos's user avatar
  • 1
1 vote
1 answer
109 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 / ...
b126's user avatar
  • 111
-1 votes
0 answers
43 views

Technitium: access Apache virtual host by domain name instead of IP address from a mobile device

I am not clear enough on how to configure Technitium DNS server in order to access locally hosted websites from mobile devices, using domain name instead of IP address:port, so Could anyone with ...
jgarcias's user avatar
0 votes
0 answers
99 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 ...
talkinggoat's user avatar
1 vote
2 answers
215 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: <...
John Doe's user avatar
  • 365
0 votes
2 answers
158 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 ...
Jairo Alarcón's user avatar
0 votes
0 answers
30 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 ...
Wad's user avatar
  • 1
0 votes
0 answers
33 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 ...
Askirkela's user avatar
  • 131
0 votes
1 answer
47 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/...
Andrew's user avatar
  • 113
0 votes
0 answers
61 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 ...
Łukasz Korona's user avatar
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....
tigrou's user avatar
  • 111
0 votes
0 answers
61 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 ...
user555303's user avatar
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 ...
Guy Lowe's user avatar
  • 101
0 votes
0 answers
23 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 ...
trikelef's user avatar
  • 528
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 ...
etnguyen03's user avatar
0 votes
0 answers
47 views

Getting 404 error for apache `/server-status`

I was told that there's a way to enable a url called http://<your host>/server-status and that this page would show you some operational metrics of the apache service. But every time I visit ...
learningtech's user avatar
  • 7,445
0 votes
1 answer
66 views

Apache2 ForensicLog timestamp

I'm using apache2 with ForensicLog enabled by this directive below. ForensicLog ${APACHE_LOG_DIR}/mysite.com.forensic.log When I check the "mysite.com.forensic.log" file there is no ...
rasputin's user avatar
  • 125
0 votes
0 answers
152 views

htaccess to stop Host Header Injection

I have one application hosted on XAMPP, my application url is https://abc.example.com/pps/prd/, i have htaccess file at pps/prd/, with following code to stop Host header injection RewriteEngine On ...
utsav's user avatar
  • 117
0 votes
0 answers
92 views

Apache: "mpm_worker:error scoreboard is full, not at MaxRequestWorkers"

My enviroment: Server with 4 OCPU and 16GB ram hosted on Oracle Cloud; PHP-FPM 7.4.33 Server; Apache/2.4.52 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2; Ubuntu 22.04.3; On this host I have 10 virtual ...
Andrea Di Martino's user avatar
1 vote
2 answers
102 views

Django app hosted in Apache running on Windows - service won't start

I've found many similar articles with similar issues, and a couple of them concluded the Apache service just cannot be run at all for my situation. However I did get the service to run -- only it ...
JDM's user avatar
  • 13
0 votes
1 answer
171 views

PHP curl_init(), curl_exec() work from the command line but fail when browsed/accessed from a webserver

The following PHP script (when not anonymized) runs successfully at the commandline. It uses curl_init() and curl_exec() to retrieve JSON-formatted data, converts the result into an associative array, ...
Clovis_Sangrail's user avatar
1 vote
1 answer
78 views

httpd crash with ssl_io_filter_cleanup () from /usr/lib64/httpd/modules/mod_ssl.so

version: httpd-2.4.54-1.el8.x86_64 Core generated when i do httpd condrestart for a task and also i can see some ssl_error_logs which is related to the core file pid. gdb logs: Core was generated by `/...
Bhanuchander Udhayakumar's user avatar
0 votes
1 answer
90 views

Apache LogFormat: what does %f mean?

I have checked the apache logformat from - https://httpd.apache.org/docs/2.4/mod/mod_log_config.html I am not able to understand what does "%f" parameter mean in apache log format. The ...
Yogesh Tembe's user avatar
0 votes
0 answers
57 views

Apache custom rewrite rule, using code

I would like to have Apache handle some custom URL rewrite code that I have. This code rewrites the following urls: https://www.example.com/request?data=SOMEDATABLOB into urls pointing to PHP pages. ...
andynewman's user avatar
0 votes
1 answer
41 views

Single domain, two webservers running on different ports, two different SSL issuers possible?

Short, Can a domain have multiple SSL issuers installed on different servers ? Long , I have a domain. example.com Its running on two different servers , two different websites, two different ports , ...
user9082746's user avatar
5 votes
2 answers
1k views

Thousands of incoming HEAD requests - best way to handle with EC2?

I had unusually high https traffic recently from a couple of IP address with agents masquerading as Windows clients. I blocked the range via 'deny' inside of .htaccess (Apache 2.4) I'm still getting ...
C C's user avatar
  • 475
0 votes
1 answer
64 views

Gzip is enabled in developers tools but not working in Google Chrome light house

Here is the website is am working on Website: https://www.mayfairparking.co.uk gzip is enabled and chrome shows in developer tools which is fine and as per my expectations but when i test on light ...
UMAR-MOBITSOLUTIONS's user avatar
0 votes
1 answer
78 views

Need to allow only specific file extensions via Apache config

I'm struggling with allowing only specific file extensions via Apache (2.4.58). I'm doing this in httpd.conf. The problem is if I deny all files at first either like that: <Files *> Require ...
Gino Pane's user avatar
  • 101
0 votes
1 answer
26 views

Content negotiation, send webp request to Symfony when webp file does not exist

On Apache Httpd 2.4, I know that from a .htaccess file I can do this RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{DOCUMENT_ROOT}/$1.webp -f RewriteRule (.+)\.jpg$ $1.webp [T=image/webp] in ...
nulll's user avatar
  • 507
0 votes
0 answers
51 views

Apache2 do not use dash as character representing null, but just empty string

I defined a custom log for my Apache server, where I log some headers. I've noticed that Apache instead of just using an empty string, it logs non-existent values as "-" dash. I understand ...
Mattia_98's user avatar
  • 101
2 votes
0 answers
220 views

Default <files ".ht*"> doesn't work, but <files '^.ht'> does

I was able to download my .htaccess file despite httpd.conf contains the following lines. <Files ".ht*"> Require all denied </Files> When I changed it to this, it works as ...
syntxerr's user avatar
0 votes
0 answers
134 views

AH01382: Request header read timeout -> locate slow-served resources

The log files of some low-use apache web servers are polluted by lines like: [reqtimeout:info] [pid 995890:tid 140198394422976] [client 37.103.75.185:49577] AH01382: Request header read timeout VM is ...
473183469's user avatar
  • 1,370
2 votes
1 answer
88 views

Why does apachectl stop take a very long time to finish?

I have a freshly installed CentOS 9 with Apache, and found that apachectl stop take very long to finish (as in always 1m30s). I don't really have any clue where to look, I don't see any CPU bound ...
Bart Friederichs's user avatar
0 votes
1 answer
55 views

mod_expires ignores webp and avif expiry/cache settings

I spent an hour or so diagnosing this problem today, and thought the solution might be helpful to others. Apache's response headers were giving webp and avif files the default expiration (60 seconds), ...
fred2's user avatar
  • 97
0 votes
1 answer
93 views

How can I identify why my apache server getting killed once in every few days?

I have an Ubuntu 22.04 lts vps (Contabo) with apache installed. Basic install, nothing really edited or configured. Every few day, the apache gets killed by the OOM killer and I don't know what ...
SzLev's user avatar
  • 1

1
2 3 4 5
120