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,037
questions
0
votes
0
answers
160
views
Limit php-fpm to a specific sub directory generally handled by apache
I am facing the following legacy setup with php-7.4 and libapache2-mod-php7.4 installed and enabled:
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/html
<...
0
votes
1
answer
299
views
Partial Results Error during File Upload – Seeking Assistance (CentOS 8.8, PHP 8.2, WordPress)
I hope you're doing well. I'm reaching out because I've hit a roadblock with my WordPress website and file uploads. Here's the error message that has been causing me headaches:
[Thu Nov 02 16:55:53....
0
votes
0
answers
103
views
Troubleshooting Apache ProxyPass Error 500 for WebSockets in VHost Config
I'm encountering an issue with my Apache VHost configuration, and I could use some help to understand and resolve it. Here are the details:
I have a Linux server with the following specifications:
...
0
votes
1
answer
162
views
PM2 + apache2 Optimization
I am running a Node.js application with PM2 as a reverse proxy through Apache on my Centos 7 server. The website experiences very slow loading times, and its performance is quite poor. Can anyone ...
0
votes
0
answers
31
views
/usr/lib/sys/sysinit is it a virus [duplicate]
i have a little experince in managiing debian server.
at the last few days i found a strange behaviour from my apache2 host web app
in term of failer to upload files with "UPLOAD_ERR_NO_TMP_DIR: ...
0
votes
2
answers
338
views
Error 404 page not showing
I have a problem with my subdomain. When I try to enter a faulty page in the url it redirects me to index.php file in the directory. Which is blank, so the server cannot say me "Page not found&...
0
votes
0
answers
50
views
Apache - How to compress (gzip) only specific calls
I have PHP application served with Apache 2.4
I need the apache to compress (mod_deflate - gzip) calls for specific users. So the application should decides dynamically which calls gets gzipped.
I was ...
0
votes
0
answers
87
views
Regex not working in ProxyPassMatch regex apache
I have an appache webserver which i am using for reverse proxy to apex ORDS server. I have the the below config in my file. My URL which users will be using is like this (apps.company.org). My ...
0
votes
0
answers
62
views
How to configure Apache 2.4 to use ProxyPass to rewrite the websocket's port?
My Nodejs WS ( pure Websocket, I am not using socket.io ) works on port 5000 and I wish to proxy pass to the domain itself.
I have tried to add the following lines but I still failed to get myself ...
1
vote
0
answers
136
views
Avoiding redirect server's url to www for specific url path
I want to enable auto-verification of deep links in Android for which I need to host the file assetlinks.json on my server https://mycompany.com. This will allow auto-verification of my deep links ...
0
votes
0
answers
49
views
Test Page Apache httpd on docs.domain.com
I have a wordpress website server running on linux.
I have a issues when I enter docs.domain.com it opens a Test Page Test Page pic . So my target is when users enter https://docs.example.com to ...
0
votes
0
answers
152
views
Add the name of the file analyzed to the e-mail (logcheck)
I use logcheck to receive apache logs. My question is how to configure logcheck to add the name of the file that is analysed in the email. Example: at the moment I have this:
This email is sent by ...
0
votes
0
answers
142
views
How do I set the timeout for the static health check of a Balancer Member of an Apache reverse proxy
I am trying to configure a reverse proxy. I currently have
<Proxy balancer://myset>
BalancerMember http://IP1:80 retry=4
BalancerMember http://IP1:80
Balancermember http://IP3:80
...
1
vote
0
answers
605
views
Apache Server Forward Proxy : How to redirect to a custom page?
On Apache server (Xampp) I have make a forward proxy for firewall filtering that works well, but I don't understand how to use RewriteRule to redirect a forbidden url to a custom error page.
I wish to ...
0
votes
1
answer
699
views
Apache Server 2.4.57 / Increasing the maximum number of conections/requests accepted & Check the number of concurrent process
We are using the following configuration and as far as I know this configuration can execute 8000 requests/processes concurrent.
Apache Server Version: 2.4.57, Server MPM: event
<IfModule ...
0
votes
0
answers
38
views
Coldfusion - Install issue
I can access my site fine from the server its on with the domain name, login in fine, etc. running Apache. But when I try from a remote machine on the same network it gives me the login in page, but ...
-2
votes
1
answer
461
views
Unable to move uploaded files with php (Apache 2.4) - Permission denied
In my project I can't use move_uploaded_file PHP function because of:
Notice: PHP Request Startup: file created in the system's temporary directory in Unknown on line 0
Warning: move_uploaded_file(.....
0
votes
1
answer
107
views
Apache rewrite any uri to index.html but existing files
My front-end project is based on 1 file: frontend/index.html
It means that every request like /contact, /about, etc should be responded by index.html file.
I was thought I can use these lines in my ...
0
votes
1
answer
2k
views
Best way to restrict and block countries on Apache 2.4 (By IP address or Maxmind GeoLite2-Country.mmdb)
I'm looking for a way to block certain countries to access our Apache 2.4 web server running on FreeBSD.
We have brute force attacks from time to time, and they often comes from a handfull of ...
1
vote
2
answers
265
views
How do I make sure that all security updates applied to Apache 2.4.18 on Ubuntu 16.04.7 LTS with ESM support included?
Here's the partial answer to my question: How to patch Apache 2.4.18 on Ubuntu 16.04 LTS? and here: Will Ubuntu 16.04.6 updates ever include a version of Apache newer than 2.4.18?
My Apache version ...
2
votes
1
answer
1k
views
optimizing PHP-FPM and Apache conf - how much RAM is actually used by each process?
I am preparing a new server (v5) to replace one that I currently have in production (v4). These machines run Ubuntu. The v5 server has PHP-FPM 8.2 and Apache 2.4.52 in mpm_event mode. I recall from ...
0
votes
1
answer
234
views
301 redirect through Apache .CONF file
I would like to ask you a question. Is it possible to redirect the old URL to a new url (old sub-page to new sub-page) (301 redirect) in Apache through etc/apache/sites-available/...conf file?
I found ...
0
votes
1
answer
26
views
What is it I don't understand about Redirects?
This is in the configuration file of "this.com":
RedirectMatch 301 ^/dham/(.*)$ http://other.com/dham/$1
Server is restarted. Then I curl an address that should match:
~$ curl http://this....
1
vote
1
answer
99
views
apache mod-rewrite backreference won't match
I'm trying to test if the value of HTTP_HOST exists as part of the URI.
First, I capture the value into a backreference with:
RewriteCond "%{HTTP_HOST}" "(.+)"
Then I test for ...
1
vote
1
answer
217
views
Regexp in Apache 2.4 when used in HTTP_USER_AGENT var
I need to work with some user-agents in Apache 2.4. I googled a lot for examples, tried a million regex options, and it still doesn't work:
<If "%{HTTP_USER_AGENT} == '/^.*(Google|bing|Windows|...
0
votes
0
answers
319
views
Request to Kerberos authenticated API considered unauthorized despite having kerberos ticket in authorization header
I am trying to call a Flask API endpoint (http://monarch.example.com:8080/) hosted in Apache web server in a Linux machine. This endpoint is protected by Kerberos authentication. I use kinit user to ...
1
vote
1
answer
476
views
/usr/lib/apache2/modules/libphp5.6.so is missing on Ubuntu 18
I installed PHP 5.6 with:
apt install php5.6
Then I added a -s link in /etc/apache2/mods-enabled for php5.6.conf and php5.6.load
When I restarted apache2 I got this error that wasn't there before:
...
0
votes
1
answer
25
views
ssl_issuer_unknown when connecting only to a certain <VirtualHost> with apache
I've this problem with my site configuration and ssl certificates. I've got two websites on the same machine running two different domains. Their respective ssl certificate is issued by Cloudflare and ...
0
votes
0
answers
119
views
Apache2: html_proxy does not kick in?
I am serving a webapp through reverse proxy (external https://myserver.com/test is proxied to that server's :8052/), and I would like to rewrite HTML links to make it functional; but they are left as-...
2
votes
1
answer
343
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 ...
4
votes
6
answers
16k
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 : ...
0
votes
0
answers
383
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 "...
0
votes
1
answer
263
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>\...
0
votes
0
answers
318
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 ...
1
vote
1
answer
175
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 ...
0
votes
0
answers
144
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 ...
0
votes
0
answers
61
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 %{...
0
votes
1
answer
218
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 ...
3
votes
1
answer
4k
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 ...
0
votes
0
answers
55
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 ...
0
votes
0
answers
138
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 '...
0
votes
0
answers
217
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 ...
0
votes
0
answers
44
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
# ...
0
votes
1
answer
127
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')) { ...
0
votes
0
answers
50
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 ...
1
vote
1
answer
117
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>
<...
0
votes
1
answer
321
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 ...
1
vote
1
answer
382
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 ...
0
votes
1
answer
30
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 ...
0
votes
1
answer
692
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 ...