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
15 views

Application actions based on URL

I am sorry if this question was already asked, but I do not know how to frame it differently - none of my searches found something that answers this. I am currently using Windows 11 and XAMPP, with ...
Kobus Myburgh's user avatar
0 votes
0 answers
18 views

Apache Bad Request (400) and time shift in logfile

My web server utilizes Apache and Django for its web service. Occasionally, the web service produces a "Bad Request (400)" error. After reviewing the error log, I noticed that there is a 6-...
Manu's user avatar
  • 111
0 votes
2 answers
79 views

configuring SSL for two different applications on same server: web server and python

I want to run SSL for web server https://www.domainname.com on port 443 and python REST api server https://mgmt.domainname.com with Flask. I have configured Apache SSL and it is running on 443. I ran ...
vrao's user avatar
  • 109
1 vote
0 answers
22 views

Apache: require with satisfy, and v2.5 compatibility

I want to protect an entire server with Require valid-user, but I want to allow certain resources to be accessible without a login. For the sake of argument, say that files A, B, and C should be ...
EML's user avatar
  • 433
0 votes
1 answer
39 views

Virtual Host SSL and nonSSL with Proxy

I have 1 nonSSL server and many SSL with Proxy in Apache. Configuration SSL server: <VirtualHost *:443> ServerName test.com ServerAdmin [email protected] ErrorLog ${...
Jo K's user avatar
  • 111
0 votes
2 answers
58 views

Mitigation of a Slow Loris Attack (slow HTTP request DDoS)

I am being targeted by a slow loris attack for several weeks now (during the worst period of the year [black friday / cyber monday]). This is an advanced DDoS attack where I get a lot of slow HTTP ...
Denis Lavigne's user avatar
0 votes
0 answers
30 views

How Do You Block & Unblock Internet Sites in Apache?

How do you block all internet sites and only let some sites through in Apache Proxy? I want to block all sites except some (e.g. updatemicrosoft.com, .windowsupdate.com , google.it etc.) I have ...
Tomas's user avatar
  • 1
0 votes
0 answers
50 views

Wordpress site on localhost WAMP "This site can´t be reached this connection was reset ERR_CONNECTION_RESET"

I've been working on a WordPress site on localhost using WAMP. My site was slow and I saw that it would get faster if I unchecked the cgi Apache module. Now, none of my local WordPress sites load ...
humblestudent's user avatar
0 votes
1 answer
53 views

Very low resource usage on Openlitespeed (LOMP) on Ubuntu 22.04

I have been testing a custom PHP script on LOMP (Ubuntu 22.04) running on VirtualBox (2GB/2Core). First, I tried Apache and upon benchmarking the script, it could complete 10K requests in ~36s - ab ...
Noob YT's user avatar
0 votes
1 answer
19 views

Access Forbidden 403 no search permission for the directory

I installed the Apache server on Manjaro (no tag for it, Arch is the closest). It works well. I added a virtualhost and tried to set directory permissions with chmod, but no luck. I got 403 error when ...
inf3rno's user avatar
  • 408
0 votes
1 answer
44 views

Apache + PHP with mod_php No timeout

I am actually working on Apache server 2.4 with PHP 8.2 (mod_php) & debian 11.2 Recently I sent a HTTP Request with more than 100 seconds without a timeout. This request executed a large MySQL ...
2Max's user avatar
  • 101
0 votes
1 answer
151 views

Use ProxyPass only if remote address is in subnet

I have a php application running with a mostly default config that lives in var/www/html/app: <VirtualHost *:443> ServerName myhost.com DocumentRoot /var/www/html <Directory "...
GammaGames's user avatar
0 votes
2 answers
71 views

Trying to update the httpd version on AWS Linux - Yum says no update?

Im trying to upgrade the httpd version on my amazon EC2 instance because our security team asked me to do so. Can anyone advise the easiest way to upgrade the httpd module? I was told I needed to ...
eezetee's user avatar
  • 11
0 votes
0 answers
27 views

In what order does Apache evaluate `RedirectRule` when provided by virtual host, directory context and .htaccess?

I have several RewriteRule inside <VirtualHost>, inside the <Directory> directive which belongs to the web root of said <VirtualHost> and inside .htaccess of that directory. Question:...
user2690527's user avatar
0 votes
0 answers
47 views

CentOS - Apache MaxRequestWorkers issue

I've had a problem with Apache since this morning, I can no longer access the websites. I get the error: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting I'm ...
Matteo Cigognini's user avatar
0 votes
1 answer
56 views

Get Apache to serve example.com from a directory and all subdomains *.example.com to be ProxyPass / http://localhost:8050

Running Apache 2.4.58 I need to get Apache to serve example.com from a directory and all subdomains *.example.com to be ProxyPass / http://localhost:8050 (so they can be served from another web server ...
Tom Kaiser's user avatar
0 votes
2 answers
65 views

IF statement based on comparison with %{REQUEST_URI} in .htaccess doesn't work

I'm trying to send a custom header for pages that start with /test-live/ The code I tried: <If "%{REQUEST_URI} =~ m#^/test-live/#"> Header always set X-Frame-Options "...
Eugene's user avatar
  • 119
0 votes
2 answers
43 views

websockets apache2 not working

I'm busy with implementing websockets on our reverse proxy (apache2) we redirect our traffic to tomcat with a proxypass but it's not working we get an 403 (forbidden in our logs) apache vhost file: &...
Sander Böhm's user avatar
0 votes
3 answers
95 views

Apache redirect http://%{HTTP_HOST}:%{SERVER_PORT}/%{REQUEST_URI} to https://%{HTTP_HOST}%{REQUEST_URI}

I am attempting to redirect <VirtualHost *:5555> RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{SERVER_PORT} =5555 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=...
sroth79's user avatar
-3 votes
0 answers
53 views

https domain is not redirecting properly

My website can be referred to as example.co.uk and example.net with optional www at the front. I am trying to set up Apache 2.4 so that if anyone lands on anything it always permanently redirects to ...
David Newcomb's user avatar
0 votes
1 answer
45 views

Weird 301-redirect to http from https only happening with CF as proxy on /wp-admin on www subdomain

I have a wordpress blog on an EC2 instance on AWS using the AMI image aws-marketplace/bitnami-wordpress-6.3.2-6-r09-linux-debian-11-x86_64-hvm-ebs-nami-7d426cb7-9522-4dd7-a56b-55dd8cc1c8d0 In ...
user1015149's user avatar
0 votes
0 answers
46 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 <...
Cologne_Muc's user avatar
0 votes
1 answer
45 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....
LKX's user avatar
  • 1
0 votes
0 answers
26 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: ...
takraw's user avatar
  • 1
0 votes
1 answer
55 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 ...
Shivam Ahuja's user avatar
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: ...
mohalil's user avatar
0 votes
2 answers
77 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&...
AZAZEL's user avatar
  • 1
0 votes
0 answers
21 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 ...
Niro's user avatar
  • 1,441
0 votes
0 answers
43 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 ...
knala's user avatar
  • 1
0 votes
0 answers
29 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 ...
Hypothesis's user avatar
0 votes
0 answers
11 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 ...
Pankaj Badgujar's user avatar
0 votes
0 answers
39 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 ...
AZAZEL's user avatar
  • 1
0 votes
0 answers
77 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 ...
Mehdi Birembaut's user avatar
0 votes
0 answers
30 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 ...
Thomas Stokes's user avatar
1 vote
0 answers
108 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 ...
Eremin's user avatar
  • 11
0 votes
1 answer
76 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 ...
rndm_acct1's user avatar
0 votes
0 answers
31 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 ...
Matthew S's user avatar
-2 votes
1 answer
97 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(.....
MHSarmadi's user avatar
0 votes
1 answer
49 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 ...
MHSarmadi's user avatar
0 votes
1 answer
148 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 ...
Aknot's user avatar
  • 185
1 vote
2 answers
110 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 ...
yW0K5o's user avatar
  • 71
1 vote
1 answer
275 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 ...
S. Imp's user avatar
  • 536
0 votes
1 answer
143 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 ...
Pixsector-com's user avatar
0 votes
1 answer
25 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....
musbur's user avatar
  • 193
1 vote
1 answer
45 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 ...
flymike's user avatar
  • 233
0 votes
1 answer
91 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|...
Wi Fi's user avatar
  • 1
0 votes
0 answers
88 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 ...
Renascence Tarafder Prapty's user avatar
1 vote
1 answer
115 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: ...
PHP Guru's user avatar
  • 111
0 votes
1 answer
21 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 ...
Bestemmie's user avatar
0 votes
0 answers
55 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-...
eudoxos's user avatar
  • 363

1
2 3 4 5
120