As of May 31, 2023, we have updated our Code of Conduct.

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
2 answers
26 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
  • 101
0 votes
1 answer
29 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
31 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
31 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
  • 220
0 votes
1 answer
42 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
12 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
28 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
0 answers
16 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
14 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
  • 269
0 votes
1 answer
17 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
52 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
13 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
18 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
22 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
  • 155
0 votes
1 answer
58 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
  • 533
0 votes
0 answers
58 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
16 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
37 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
14 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
50 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
2 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 ...
Blockchain Office's user avatar
1 vote
1 answer
33 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
13 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
128 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
29 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
23 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
  • 153
0 votes
2 answers
77 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
13 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
17 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,886
0 votes
1 answer
50 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
31 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
  • 81
0 votes
0 answers
28 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
145 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
43 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
25 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
23 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
7 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
30 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
0 votes
0 answers
17 views

Apache 2.4 Can't Header Unset mod_session_dbd Set-Cookie

Apache 2.4, using mod_session{,_dbd,_crypto}. Something (SessionDBDCookieName?) adds Set-Cookie to most/all responses. I can Header (always) unset in LocationMatch, to remove Set-Cookie on anything ...
robut's user avatar
  • 101
0 votes
0 answers
37 views

Apache SSL not working - server took too long to respond

I am trying to get Apache (2.4.41, Ubuntu) to work with SSL and am not having luck. Whenever I visit the site in my browser, I get the error "This site can't be reached: my-domain took too long ...
Jeff's user avatar
  • 135
0 votes
0 answers
25 views

Purchase a ssl cert for a domain without a webserver

My company has a legacy web application where there is a link to help documents. The link is https://help.example.com. The Apache server for the domain https://www.example.com decommissioned so only ...
BioRod's user avatar
  • 283
0 votes
1 answer
51 views

apache "Options Indexes" working localhost but not with public DNS name

I have a Kubernetes cluster and a very basic container. I am trying to access it through the internet and the task is very simple, I just need to list the index of the directory. Here is my basic ...
user3852599's user avatar
0 votes
0 answers
12 views

Log data of http status 200 in user directory with Apache2.4

I want to log http status 200 data in my user directory with Apache2.4. the current SetEnvIf Request_URI "~data” ssl_datalog nolog CustomLog ${APACHE_LOG_DIR}/ssl_data_log combined env= ...
kumanote's user avatar
0 votes
0 answers
13 views

Tx-Variable does not increment in modSecure

I use Apache2.4 and mod_security 2. SecRuleEngine On SecRule REQUEST_METHOD "@streq put" "id:12345,phase:1,pass,log,t:lowercase,chain,logdata:'TX:PUT_COUNT=%{tx.put_count}'" ...
Paflow's user avatar
  • 173
0 votes
0 answers
46 views

Best practices to configure multiple websites managed by multiple users on Apache

I am setting up a RedHat server with an Apache service to host multiple Wordpress websites. We work with a few different companies which develop those websites. I'm having trouble with the access ...
Lord Pou's user avatar
0 votes
0 answers
48 views

Block access to xmlrpc symlink file with htaccess

I have a WordPress site I am versioning with the help of symbolic links on an Apache/2.4.52 (Ubuntu) server with Nginx as a reverse proxy. The directory structure is as follows: example.com wp-admin ...
dctech's user avatar
  • 1
0 votes
0 answers
7 views

Restrict location to just one IP in vhosts not working

I am trying to restrict the access to a specific location for just one IP address in the vhosts file but for some reason it is not working. This for apache 2.4.29. Here is my vhosts file: <IfModule ...
BradG's user avatar
  • 101
0 votes
1 answer
162 views

Forwarding apache logs from k8s Pod to Syslog server

I am new to Kubernetes, I know there are multiple ways to log collection. but I am specifically asking about my scenario. we have a Syslog xyz.com port 8090. now we want our pods to send logs to our ...
user3852599's user avatar
1 vote
1 answer
24 views

httpd redirect one port number to another

We are trying to redirect requests on port 8555 to port 8443. In our httpd.conf file, we have the following: <VirtualHost *:8555> SSLEngine on # SSL configuration that is irrelevant to this ...
user1207177's user avatar
0 votes
0 answers
90 views

Apache Redirect HTTP To HTTPS Not Working

I am trying to force redirecting all HTTP traffic to HTTPS using my httpd.conf file on my Apache server. Expected behaviour: When users visit http://example.com, they should get redirected to https://...
gakshat's user avatar
  • 11

1
2 3 4 5
118