Unanswered Questions

2,487 questions with no upvoted or accepted answers
6 votes
2 answers
2k 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 ...
6 votes
1 answer
21k 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 ...
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 ...
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). ...
5 votes
0 answers
6k 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 ...
5 votes
0 answers
2k 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. ; ...
5 votes
0 answers
122 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 ...
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: ...
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....
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 ...
4 votes
0 answers
216 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) ...
4 votes
0 answers
559 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. ...
4 votes
0 answers
1k 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....
4 votes
0 answers
5k 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 ...
4 votes
0 answers
1k 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 ...
4 votes
0 answers
102 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:$...
4 votes
0 answers
1k 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 ...
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) ...
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 ...
4 votes
0 answers
2k 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 ...
4 votes
0 answers
804 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 ...
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" ...
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. ...
4 votes
2 answers
2k 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 ...
4 votes
1 answer
986 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 ...
4 votes
0 answers
220 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 ...
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 ...
4 votes
0 answers
110 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 *:...
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 ...
4 votes
0 answers
376 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&...
4 votes
0 answers
896 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 ...
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 ...
3 votes
1 answer
167 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.
3 votes
0 answers
450 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,...
3 votes
1 answer
969 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 ...
3 votes
0 answers
1k 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. ...
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-...
3 votes
0 answers
318 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 "...
3 votes
1 answer
2k 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=...
3 votes
0 answers
398 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 ...
3 votes
0 answers
85 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 ...
3 votes
1 answer
176 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 ...
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 ...
3 votes
0 answers
648 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 </...
3 votes
1 answer
625 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 ...
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: <...
3 votes
0 answers
81 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 ...
3 votes
0 answers
738 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"...
3 votes
0 answers
215 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 ...
3 votes
0 answers
476 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 ...

15 30 50 per page
1
2 3 4 5
50