Skip to main content

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)

2,493 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
2 answers
3k views

Apache2 stops after system graceful-restart

System's effected: Ubuntu 16.04, Ubuntu 18.04, not 14.04. Frequency: Approx. around 24 - 36 hours. [Wed May 08 03:44:25.964597 2019] [mpm_prefork:notice] [pid 7670] AH00171: Graceful restart ...
Anuga's user avatar
  • 160
6 votes
1 answer
25k views

Apache reverse proxy timeout in 60 seconds

I have Apache Reverse proxy server which proxies request to my internal Apache server. I am using Apache version 2.4 on Linux platform. I encountered timeout page and HTTP ERROR 504 whenever back-end ...
Jayesh Labade's user avatar
6 votes
0 answers
4k views

How do I allow users to override X-Frame-Options when using Apache + PHP-FPM?

I have an Ubuntu 14.04 server running Apache + PHP-FPM + FastCGI, serving user home pages. For security, I have enabled in Apache's configuration: Header set X-Content-Type-Options: "nosniff" Header ...
muru's user avatar
  • 601
6 votes
1 answer
3k views

How to get Mod_pagespeed to output compressed (gzip) css?

Ubuntu 14.04 Apache 2.4.7 php-FPM 5.5.9 Using latest stable Pagespeed Module for Apache (1.9.32.3-4448). I'm in the process of optimizing a WordPress website for speed (bandwidth and rendering). ...
pixeline's user avatar
  • 658
5 votes
0 answers
7k views

Intermittent proxy error in Apache: "Partial results are valid but processing is incomplete" with "AH01110: error reading response"

I'm using Apache 2.4.43 on CentOS 7.8 with Varnish 6 and PHP-FPM to serve a Magento 2 website. Varnish listens on port 80. Apache listens on 8080 to serve content to Varnish, and also port 443 which ...
WackGet's user avatar
  • 227
5 votes
0 answers
3k views

PHP-FPM: pm.process_idle_timeout for PM = static or dynamic

I'm working with CentOS 8 and PHP-FPM setting for PM = static or dynamic does not allow an option for pm.process_idle_timeout. ; The number of seconds after which an idle process will be killed. ; ...
Bernard K.'s user avatar
5 votes
0 answers
124 views

What could cause a LAMP server to perform poorer than my laptop?

I'm running a WEB application (PHP + MariaDB) for my company, developing on my laptop and running the production version on a dedicated server. Recently, I've started to measure performance and ...
François's user avatar
5 votes
1 answer
2k views

Apache2.4 ProxyPass exception inside Location block not working

While trying to get the Let's Encrypt Certbot to work on a local server that hosts reverse-proxied content, I am unable to get the local exception working inside a Location block. httpd.conf snippet: ...
Liam Dennehy's user avatar
5 votes
0 answers
2k views

Latency (wait ttfb) on EC2

My application is crawling a website. I use this crawler : https://github.com/rfussien/leboncoin-crawler On my dev environment, the latency is acceptable (3-4 sec) but on my prod server (ec2 T2....
Julien Malige's user avatar
5 votes
1 answer
1k views

How to prevent browser password prompts when no Active Directory single-sign-on?

We have single-sign-on working on an internal website, with Apache and mod_auth_kerb ... except users without the relevant browser config are getting password prompts instead of an error page. Users ...
Smylers's user avatar
  • 154
4 votes
0 answers
245 views

Is DeflateAlterETag supported in Apache 2.4.x

Apache's documentation for mod_deflate appears to state that DeflateAlterETag is supported from Apache version 2.4.42. Our Apache webserver (compiled on Solaris by our corporate IT as of 2020-09-23) ...
Chowlett's user avatar
  • 111
4 votes
1 answer
3k views

PHP7.3-FPM with Apache: Unknown script request execution timed out

I configured Apache 2.4 MPM Event with PHP7.3-FPM on a pretty busy web server as follows: Timeout 90 <Proxy "unix:/run/php/php7.3-fpm.sock|fcgi://php-fpm"> ProxySet disablereuse=on timeout=...
Alexey Ozerov's user avatar
4 votes
0 answers
590 views

Shared hosting: Apache RewriteRule [P] flag security concern

I want to setup PHP-FPM with Apache in a shared hosting environment. The recommended way is to use mod_proxy_fcgi. Each customer has his own FPM pool, running PHP processes under his own system user. ...
Sebastian's user avatar
4 votes
0 answers
2k views

Are there any known common causes of "Cannot kill process: Success!" in error.log?

Operating system: CentOS Linux release 7.6.1810 (Core) Error log: /var/log/httpd/error.log Apache version: Apache/2.4.6 In attempting to debug a PHP cron task, I am seeing some segfaults in error....
s11111's user avatar
  • 151
4 votes
0 answers
6k views

How do I do a correct reverse-proxy to a Redis instance?

I'm running an application called Ambar on a (Samba)fileserver. I want users in my network to be able to search for documents freely, and securely. Since Ambar runs on HTTP, and the server already has ...
Oleg's user avatar
  • 413
4 votes
0 answers
2k views

Error log: "client denied by server configuration" but all works fine

Centos 7, Apache 2.4, php7, Virtualmin (testing server) I've read almost all suggested similar questions/answers but still don't realize why httpd log displays these errors despite I don't have ...
dstonek's user avatar
  • 233
4 votes
0 answers
142 views

A little confusion about DBM files and how they work

I have apache 2.4 and am using RewriteMap DBM files. ie: <IfModule mod_rewrite.c> RewriteEngine On RewriteMap examplemap "dbm:/etc/httpd/conf/rewrite.dbm" RewriteCond ${examplemap:$...
Anthony Fornito's user avatar
4 votes
0 answers
2k views

Apache 2.4 + PHP-FPM + Chromelogger (how to increase HTTP header length limit?)

I have a running Apache 2.4 + PHP-FPM setup. There is one edge case though, when this setup fails - when using Chromelogger. Chromelogger is a server to client debugging tool, which sends it's data ...
mgo's user avatar
  • 141
4 votes
0 answers
2k views

Can Apache ProxyPass retry a request on backend connection failure

I'm using Apache as Reverse Proxy into App server layer - using ProxyPass. The App Server is single instance (no load balancing). Periodically (potentially due to some lower level network problem) ...
Dazed's user avatar
  • 256
4 votes
1 answer
5k views

Apache 2.4 with Kerberos Auth and LDAP Authorization

I am trying to setup an Apache SVN repository with Kerberos authentication and LDAP group membership authorization, so that only users that belong to a specific group can access it. Kerberos auth on ...
Nick Vidiadakis's user avatar
4 votes
0 answers
3k views

Apache sometimes not starting after reboot

Sometimes, after my server (Cent OS7, default repository) reboots, Apache is not started automatically. To fix this, I reboot the server one more time, and then it works. My Apache error logs shows ...
Robbert Dam's user avatar
4 votes
0 answers
868 views

Optimize Apache for delivering video

I have my local Apache Server dedicated to delivery video (not streaming) so users connected to it locally (LAN) can play video files as if they were local: in a linux client with mplayer: mplayer ...
Azevedo's user avatar
  • 141
4 votes
0 answers
1k views

Apache 2.4 Redundant LDAP Authentication

I'm trying to provide a redundant LDAP authentication to my webserver. ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" <AuthnProviderAlias ldap ldap-one> AuthLDAPBindDN "search@domain" ...
Oliver Webb's user avatar
4 votes
1 answer
3k views

SSL - Apache and Node.js on the same Amazon EC2 instance

I hosted my website on an EC2 instance, using Apache. SSL was also set up properly, running on HTTPS, port 443. Currently, I just added a chat application to the website using Node.js + socket.io. ...
Danh Nguyen's user avatar
4 votes
2 answers
3k views

CORS headers not added in Apache

I've been working on this issue for days. I'm a developer and my knowledge of these things is very limited, still there's no one available in this company to assist me with this issue. This really has ...
Bv202's user avatar
  • 91
4 votes
1 answer
1k views

Multiple Client Certificates in SSLProxyMachineCertificateFile

Here is my use case. I want to learn how to setup Apache, so this is just for learning. Feel free to suggest better alternatives. I'm using Apache 2.4 in RHEL5. I want to use a ProxyPassMatch to ...
ssedano's user avatar
  • 214
4 votes
0 answers
232 views

SQL server and PHP restart

i have Apache/PHP running on a server running windows 7 with SQL server 2008 r2 running on windows Server 2008. When SQL is restarted Apache/php will no longer connect to SQL once it is back up ...
Josh Kirkpatrick's user avatar
4 votes
0 answers
5k views

Apache Server Stops Serving Requests Temporarily with Apache 2.4.12 on Amazon Linux with PHP 5.4.40 FPM/Worker

We have an apache server stopping serving requests constantly due to the following error: (70007)The timeout specified has expired: [client xxx.xxx.xxx.xxx:33740] AH01075: Error dispatching request ...
David Eisen's user avatar
4 votes
0 answers
111 views

Page served by tomcat image server by Apache

I need to configure Apache to call Tomcat to serve a page and this page has an image on /image folder called logo that should be served by Apache. This is the Apache virtual host: <VirtualHost *:...
AFS's user avatar
  • 141
4 votes
1 answer
4k views

Tuning Apache KeepAlive Timeout for HTTPS

My website forces HTTPS everywhere and has an average first load time of 3-5 seconds. Thanks to caching, repeat load time is 0.8 seconds. The SSL negotiation takes 150-300ms on my server, so I want ...
PF Billing's user avatar
4 votes
0 answers
377 views

Unable to match expression inside If directive no matter what

I have been trying for the past 3 hours trying to match an if statement to define a variable within httpd.conf with no success: <If "%{HTTP_HOST} =~ /[a-z]+/i"> Define test_value "A" </If&...
Question Overflow's user avatar
4 votes
0 answers
902 views

Apache 2.4 RPAFsethostname equivalent

We had a 2.2 server running with mod_rpaf with configuration directives like this: LoadModule rpaf_module modules/mod_rpaf-2.0.so RPAFenable On RPAFsethostname On RPAFheader X-Forwarded-For Now with ...
mmucklo's user avatar
  • 141
4 votes
2 answers
3k views

Apache: A lot of connections gracefully finishing?

at the moment I'm mentioning that a lot of connections are gracefully finishing if I visit my apache2 status-page. What does that mean and why are they gracefully finishing? Some of them are in this ...
MyFault's user avatar
  • 933
3 votes
1 answer
234 views

Why is apache -X stuck in a pselec6() NULL loop?

version 2.4 pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=100000000}, NULL) = 0 (Timeout) Repeats forever using strace. Only one httpd process enabled.
queryman2000's user avatar
3 votes
0 answers
536 views

How to make mod_remoteip and mod_evasive work together

I have several Cento7 machines running Apache 2.4. They are behind a load balancer. The load balancer pass X-Forwarded-For header with client IP. In order to have mod_evasive to use the real client IP,...
user3908406's user avatar
3 votes
1 answer
1k views

ufw deny from ip doesn't work

I know that I should setup fail2ban but at the moment I want to deny access from one IP address and tried the following ufw command: sudo ufw insert 1 deny from xx.xx.xx.xx to any Here's the output ...
Christian Toffolo's user avatar
3 votes
0 answers
2k views

How can I disable HTTP Basic Auth on my Apache instance for a specific REQUEST_URI

I have a linux instance hosting a WordPress site and it has Basic HTTP Auth enabled for the entire site. I now want to disable the Basic HTTP Auth for a specific path we can call /auth-free-url-2019. ...
sparky's user avatar
  • 31
3 votes
0 answers
3k views

firefox throws CORS error but works fine in chrome

I have set the following in apache RequestHeader edit "If-None-Match" '^"((.*)-(gzip|br))"$' '"$1", "$2"' SetEnvIf Origin "^http(s)?:\/\/(.+\.)?(iac-dev-...
shorif2000's user avatar
3 votes
0 answers
336 views

How to return a string with 200 code with Apache 2.4

I'm trying to convert this nginx configuration block to Apache 2.4: http { ... server { ... location ~ ^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$ { default_type text/plain; return 200 "...
Vinícius Ferrão's user avatar
3 votes
0 answers
441 views

Why does Apache need such a long time for initial connection?

I am running apache 2.4.18 on ubuntu. Serving about 500.000 PI per month. No big deal without peaks. Somehow it started now to take a long time for the initial connection, after restarting apache it ...
merlin's user avatar
  • 2,192
3 votes
0 answers
90 views

Apache Proxy: How to determine which directive was used for the response?

I'm confronted with an apache proxy setup which is already running in production. Sometimes there are requests for optimizations and I'm not very confident at apache configuration, so I keep asking ...
John Doe's user avatar
  • 113
3 votes
1 answer
189 views

Two similar sites, once Apache instance, url rewrite works on one but not the other

My rewrite rules are designed to hide my directory structure and to make URLs easier to read. The gcems site works as expected while the vigotwpfd site will not load the files beyond the first page as ...
Jim Baize's user avatar
3 votes
2 answers
5k views

tell apache virtual hosts to connect to php-fpm sockets using different user/group each

I've been reading the php-fpm documentation and found out that I can give each socket its own user, group and mode, but how can I tell apache (per vhost I mean) to use x user and y group to connect to ...
Chazy Chaz's user avatar
3 votes
0 answers
684 views

How to run virtual hosts under a separate uid and gid beside using mpm_itk?

I'm running a server where I have multiple websites, so I want to separate users with anything beside mpm_itk. From virtual host: <IfModule mpm_itk_module> AssignUserId user1 user1 </...
user134969's user avatar
3 votes
1 answer
651 views

apache deny all proxy request

I have some apache server on ubuntu and fore some times there a lot of requirest in /var/log/apache2/access.log like this: 115.231.218.252 - - [04/Dec/2017:08:35:38 -0500] "CONNECT www.alipay.com:443 ...
ShockwaveNN's user avatar
3 votes
0 answers
5k views

Enable debug logging in vhost Apache 2.4.6

I have an apache server (I didn't do the setup). The httpd.conf is default and I see nothing about logging. in conf.d/vhost_xxx I see some config for my vhost. I add the LogLevel debug: <...
DenCowboy's user avatar
  • 343
3 votes
0 answers
106 views

How to prevent overwriting Environment Variables via .htaccess

I have a requirement to set a unique Environment Variable within server configuration. However, users should not be able to change the variable via .htaccess file. How can i prevent this behaviour ...
Aesnak's user avatar
  • 571
3 votes
0 answers
772 views

Apache2 RequestHeader read value as ISO-8859-1 instead of UTF-8

It's a special case, I use an Apache mod_proxy in front of my tomcat and the Apache also add RequestHeader with mod_headers, thanks to mod_rewrite. If special characters are in the URI, they are "read"...
Nicolas Albert's user avatar
3 votes
0 answers
227 views

Multiple ruby on rails web apps running on one directory in Apache without modifying/adding <Directory> all the time

What I am trying to do is to create multiple ruby apps in one Apache directory and when I go to http://localhost/appname the ruby app resolves without problems. However, I want to do this dynamically ...
Victor Luna's user avatar
3 votes
0 answers
515 views

RewriteRule pointing domain resolved as 127.0.0.1

I'm trying to setup proxy in apache like so: <VirtualHost *:80> ServerName test.public.domain ... RewriteRule "^/dir/(.*)" "http://x-service.local/$1" [P,L] ... there is also another ...
a_z's user avatar
  • 41

1
2 3 4 5
50