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
1 answer
114 views

Apache child processes are launched more than ServerLimit and threads are executed more than ThreadsPerChild

The following version of Apache is used. (MPM : event) httpd -V Server version: Apache/2.4.37 (Red Hat Enterprise Linux) Server built: Jun 15 2022 08:27:14 Server's Module Magic Number: xxxxxxxx:xx ...
fsk5304's user avatar
  • 101
0 votes
1 answer
83 views

Apache2 returns 403 for static file request on root

On my new Apache/2.4.52 (Ubuntu) Server installation, the SSL configuration in general runs well, having Tomcat apps proxied and working. Still, the static file configuration for root does not work. ...
philburns's user avatar
  • 101
0 votes
0 answers
52 views

Server apache reverse does not encode coma in UTF-8

Server version: Apache/2.4.6 (CentOS) Server built: Nov 5 2018 01:47:09 centos-release-7-6.1810.2.el7.centos.x86_64 We are trying to solve a reverse problem and we need you help Reverse proxy Apache ...
Mina's user avatar
  • 1
0 votes
0 answers
20 views

Large consumption of resources when stopping Apache

During the stop of the apache service, the httpd -prefork processes take 100% load on all cores and take up all available memory, as a result of which the oom killer is triggered. Stop command: ...
Alexander's user avatar
0 votes
2 answers
113 views

Apache cannot find PHP

I have a shortcut: c:/path/to/app1/current_php-cgi.exe.lnk I am trying to do this: FcgidWrapper "c:/path/to/app1/current_php-cgi.exe.lnk" .php And Apache has no issue with the syntax but ...
MonkeyZeus's user avatar
0 votes
0 answers
237 views

Apache Proxypass with SSL extremely slow

We have a server with the spec 8 vCore and 16GB RAM. At its peak, the server uses only 15 to 25% CPU and around 40% of RAM. The issue that we face is once the number of users start increasing, the ...
nXn's user avatar
  • 101
1 vote
2 answers
269 views

Apache rewrite rule for a folder to a different domain

I need to redirect all requests concerning a folder to another (old) web server called www2 keeping the entire original path, for example https://www.example.org/thisfolder/maps/map.jsp?id=2345 must ...
Steph's user avatar
  • 13
0 votes
1 answer
148 views

Bring website online with domain without adding the port

I come to you because currently I have a website that is hosted on my web server. But on this server I have several websites hosted on it. So to access it you have to put a port number. Until then it'...
Erwan LAUNAY's user avatar
0 votes
0 answers
69 views

Calendar proxy? - Public calendar for Humhub with Baikal

I have the following requirements: LAMP server (Humhub and Baikal already installed) I need a public calendar that I can integrate into Humhub (via the "External Calendar" plugin in HumHub) ...
Zippedy's user avatar
0 votes
1 answer
436 views

How to make my website SSL secure with Ubuntu 22.04.2 LTS server and Apache

I'm trying to access my website through https://. but all my efforts are in vain. First I will explain how I did everything to get into the context. The server hardware is a Raspberry PI2B. With ...
AlbertoRS's user avatar
0 votes
0 answers
27 views

mod_jk - 2 JkMount Directives with the same URL but different workers

I have a question. How would the following mod_jk directives be interpreted? <VirtualHost *:443> ServerName backend.example.com ... JkMount /api/prod worker1 JkMount /api/prod/* ...
Jeevan Pillai's user avatar
0 votes
0 answers
24 views

Why is adding this line to my mod_rewrite creates looping issue, and how to avoid it?

I pasted below the existing mod_rewrite section of the .htaccess of my Magento site. I need to modify it to implement a short URL scheme that would redirect all requests like mysite.com/-jk7ASD63 (all ...
John Doisneau's user avatar
-1 votes
2 answers
78 views

Wildcard sub-domain apache vhost doesn't load my website folder

I'm having some issues getting my apache virtual host to load the correct folder on my server. I'm building a public status pages feature for my platform, and one feature is allowing users to specify ...
Ryan H's user avatar
  • 99
0 votes
1 answer
66 views

Code Changes for Apache Server Upgrade [closed]

The security team found a loophole in Apache version 2.4.23 so we need to upgrade Apache to version at least 2.4.56 or later. However, the developers told me it required a lot of code changes (around ...
IT_Guy's user avatar
  • 1
0 votes
1 answer
161 views

Cannot enable OCSP stapling

Windows Server 2022 Apache x64 2.4.57 OpenSSL 3.0.8 My Apache SSL conf has this: SSLUseStapling On SSLStaplingCache "shmcb:${SRVROOT}/logs/ssl_stapling(65536)" ...
MonkeyZeus's user avatar
-1 votes
1 answer
116 views

Perl script to restart Apache in Windows

Is this all I need to restart Apache from within my Perl script? system("C:\\Apache24\\bin\\httpd.exe -k restart"); I tried to verify that this actually restarts Apache, but cant find my ...
MeSo2's user avatar
  • 274
0 votes
1 answer
69 views

Apache how to find cause of 404 with rewriterule ignored

So I have this RewriteCond %{REQUEST_URI} (da-dk)/(.*)(/|\.php)$ RewriteRule ^(da-dk)/(.*)(/|\.php)$ /$2$3 [L] But for some reasons example.com/da-dk/ gives "404 - not found" I would like ...
Tom's user avatar
  • 97
0 votes
0 answers
142 views

How to secure an apache webserver without the mpm_itk module?

I want to setup a new webserver for public shared hosting under Rocky Linux 9 with apache. Our old webservers (CentOS 7) have the mpm-itk module installed which assigns a userId and groupId to every ...
M46's user avatar
  • 101
0 votes
1 answer
538 views

How to configure Apache to handle two reverse proxies one one domain/server name?

I've got a node-react app on port 3000, and a node/express API running on port 3001 (localhost:3001/api). I need a reverse proxy setup in Apache that will put the React app on https://example.domain....
MidPiedmont's user avatar
0 votes
1 answer
86 views

installation of apache2 + php82-fpm under macOS Ventura seems to keep php files in cache

A macports' installation of apache2 + php82-fpm under macOS Ventura seems to keep php files in cache, even before installing php82-opcache. I don't know if this is coming from apache2 or php82-fpm, ...
Fabien Auréjac's user avatar
0 votes
1 answer
137 views

NGINX proxy fails to disconnect sessions on target Apache server

I have a PHP script running on an Apache server which is responsible for disconnecting all user sessions. For that, it makes a loop that identifies itself as the session that should be disconnected ...
Tom's user avatar
  • 289
0 votes
1 answer
129 views

Change the script path in an Apache proxy handler

I'm developing my application with 2 containers: apache and php-fpm. Apache serves requests, and delegates PHP execution to the php-fpm container in its vhost: <FilesMatch .php$> ...
amacrobert's user avatar
0 votes
2 answers
59 views

Dealing with Feed Reader traffic

The domain that I manage used to have a lot of RSS feeds, almost all of them are gone now, but I still get loads and loads of traffic looking for these feeds. I'm not sure the best way to handle this. ...
zip_000's user avatar
0 votes
0 answers
40 views

Apache Gateway to Dockerized FPM Container?

I have a dockerized app with a web fpm interface (monica:fpm-alpine), and a vps on the internet. I want my vps to be an https gateway to this app. I thought I could use a virtual host include file and ...
stav_nan's user avatar
  • 101
0 votes
0 answers
24 views

postfix send for one lan onlyif have 2 eth

I have server ubuntu whit 2 network card and i want output 1 lan for postfix and dns, other lan for http ,dns, ftp etc. My configuracion is : uname -a Linux mail.domain.com 5.15.0-72-generic #79-...
cianyika's user avatar
0 votes
0 answers
48 views

Secure location of PHP files used in LAMP stack

I'm setting up a LAMP stack on Ubuntu 20.04, and had this recent discussion with a colleague about the fact that it's better to not keep the PHP scripts of all of your stack (classes, API Controllers ...
DevelJoe's user avatar
  • 187
0 votes
1 answer
501 views

Why does curl inside Docker to a subdomain in the same Host use private IP address?

Consider I have docker-subdomain.mydomain.com pointing to a website in a Docker container, and host-subdomain.mydomain.com pointing to a website in the Host itself. Both these websites are in the same ...
Nuno's user avatar
  • 603
0 votes
0 answers
131 views

How was apache2 able to use 8+GB ram "in idle"? (oom-killer)

I bought a vps in Contabo, using ubuntu22, installed apache2, php, mariadb.Sometimes the apache2 uses all of my memory. Literally all. At idle, not really anything was running. A php process was ...
szlev's user avatar
  • 1
0 votes
0 answers
42 views

Tracing / Solving a sudden spike in Apache2

My server is running on Ubuntu20.04, a pure LAMP stack with Apache 2.4.41. In the last few weeks, there was a total of 2 occurrence where Apache2 was not responsive (users can't load our website), and ...
Patrick Teng's user avatar
0 votes
0 answers
183 views

wget doesn't accept HTTPS certificate (from letsencrypt) on some computers but does on others

I have the following situation: On my www server (Apache2, Debian armhf) I have HTTPS certificate from letsencrypt.org by certbot. When accessing the server from a browser (Firefox, Chromium) ...
bicyclesonthemoon's user avatar
0 votes
0 answers
66 views

For AWX, is it possible to authenticate at the reverse-proxy layer?

I have an AWX set up with an Apache reverse proxy for SSL reasons. I know AWX supports SAML/SSO natively. However, we have a standard SAML set up that we use with multiple other applications, where ...
Sagar's user avatar
  • 534
0 votes
1 answer
413 views

Apache not working with NameVirtualHost config

I have a fresh apache setup(Apache/2.4.57 (Unix)) and am struggling with the namevirtualhost config. If I run apachectl -S the output is missing the usual IPADDRESS:80 is a NameVirtualHost I ...
roediGERhard's user avatar
0 votes
0 answers
20 views

How can i disable the TLS handshake with 128-Bit-Key from the browser with my apache2 settings? [duplicate]

When I load a website on an apache2 with ssl and look at the settings of the certificate in the browser, it is always a 128-bit key length, only want 256-bit and above to be allowed. I have that in ...
Z0OM's user avatar
  • 308
1 vote
1 answer
188 views

What determines the name of Apache PHP Handlers?

When configuring an Apache server to use a Handler to run PHP code, I'm familiar with adding a line similar to below in httpd.conf or .htaccess: AddHandler application/x-httpd-php81 .php This tells ...
frumious's user avatar
  • 123
0 votes
0 answers
34 views

Isolating a WordPress wesbite within a sub-directory of another

Is it possible to isolate a website within a sub-directory of another on a WHM server? And by isolate, I mean in the event that website within the sub-directory is compromised any malware is contained ...
Levi Cole's user avatar
  • 101
2 votes
1 answer
224 views

IF Condition in Apache 2.4 is always executed

I am trying to load a module based on a condition. {PHPMODULENAME} is replaced in the config by the AMP Server I am using - so please don't get confused. <If "'{PHPMODULENAME}' == 'php8_module'...
ESP32's user avatar
  • 73
0 votes
0 answers
170 views

Apache 2.4 i WAMP redirect from http to https not working

I am using wamp server in windows(Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.12). I have successfully installed SSL certs. Now https is working without any issue. But http redirection is not working....
Pram's user avatar
  • 1
0 votes
1 answer
47 views

Apache conf Listen not allowed here

I try Apache 2.4 conf: Listen 443 #if SECOND_HOST_PORT is defined and is not 443 listen on it <IfDefine !SECOND_HOST_PORT> Define SECOND_HOST_PORT 443 </IfDefine> <If &...
kofifus's user avatar
  • 163
0 votes
2 answers
264 views

apache server not responding due to HTTP CONNECT requests how to block them?

Apache server is getting this kind of traffic. Due to that server is not responding. Please suggest how can we handle this issue. 78.135.85.252 - - [07/May/2023:16:08:33 +0000] "\x16\x03\x01"...
Yogesh Prajapati's user avatar
0 votes
0 answers
135 views

php.ini file setting being ignored - tring to change upload_max_filesize

Running php8.2 with fpm - I have rebooted server, I have restarted both php8.2-fpm and apache2. I am 100% certain I've changed the correct php.ini file - infact I have changed all 3, apache2, cli and ...
Michael T's user avatar
  • 121
0 votes
1 answer
27 views

Combine thousands of logger instances

We have Apache 2.4 setup with over 1000 vhosts, and multiple instances of logger in each : CustomLog "|/usr/bin/logger -t apache-access -p local6.notice -n x.x.x.x" access_log Restarting ...
Bastien974's user avatar
  • 1,906
0 votes
1 answer
91 views

Apache ProxyPass to IIS results in 503 or complete timeout

I have an IIS machine on LAN behind an Apache machine which is exposed to the internet. I have a simple proxy set up, which is intended to pass traffic to the IIS machine directly from the Apache ...
Northern Scrub's user avatar
1 vote
1 answer
57 views

Best practice for stopping Apache during backups

During backups, I need to 'idle' Apache, so that I can stop MySQL, and then back up MySQL and SQLite databases. The only access to the databases is through Apache. Currently, I'm thinking of doing ...
QF0's user avatar
  • 191
0 votes
0 answers
94 views

Apache Server Config Set Headers Conditionally

I am trying to set cache age for 200 responses and no cache for rest of the calls. I tried below config, which works fine when 200 OK response comes up and I can see max-age=800 in headers But for ...
Vivek Dhiman's user avatar
1 vote
1 answer
704 views

how to run next.js using NODE and react.js at the same time on apache server

I have to run 2 different apps on the same domain at the same time. I want to forward all requests to localhost:3000, if url contains /presscenter, if not, default should be my react.js application. ...
Y U K I M U R A's user avatar
0 votes
0 answers
367 views

Modsecurity block access from all countries except from a specific IP or specific remote host

I have the below 3 rules in modsecurity. Rule 1: Block all countries defined as high risk except US: SecAction \ "id:900600,\ phase:1,\ nolog,\ pass,\ t:none,\ setvar:'tx....
BradG's user avatar
  • 101
0 votes
0 answers
124 views

How to configure Lychee server? apache error 500

os AlmaLinux 9.1 Apache/2.4.53 PHP 8.2.4 try to install Lychee with postgreesql my httpd.conf ServerRoot "/etc/httpd" Listen 0.0.0.0:80 Include conf.modules.d/*.conf User apache Group ...
Andrey Starkov's user avatar
0 votes
0 answers
45 views

Reverse Proxy periodically stops working till restart

We have an Ubuntu Server running as a Reverse Proxy (Apache) for all our Servers, which are hosted in Azure. Every month or so (not regular), the Proxy server stops processing requests, and all of our ...
Black's user avatar
  • 101
0 votes
0 answers
25 views

Reordering Apache Output Filters

Is there a way to reorder the output filters for Apache 2.4? I am forced to use something like this because DEFLATE runs before SUBSTITUTE: AddOutputFilterByType INFLATE;SUBSTITUTE;DEFLATE text/html (...
user193130's user avatar
0 votes
0 answers
35 views

Variables for Apache

I am in the process of setting up an Apache web server to host a few hundred sites. The sites will be nearly identical in configuration with the exception of some site specific information (Server ...
Beacon-MR's user avatar