Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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
votes
0answers
92 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
0answers
1k 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....
4
votes
0answers
25 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
0answers
656 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: ...
4
votes
0answers
115 views

Puzzled by SSLCACertificateFile parameter

there's something I can't understand with the SSLCACertificateFile parameter on Apache SSL conf. Put for example I have a ROOT cert "A" that issued an intermediate cert "B". Then, I produced a couple ...
4
votes
0answers
2k 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
0answers
576 views

Apache - allow malformed headers for backwards compatibility by adjusting error strictness?

We moved a site from Apache 2.2 to 2.4 (same PHP version) and now code that used to work is getting a 500 error due to [core:error] [pid ######] [client ##.##.##.##:#####] malformed header from script ...
4
votes
0answers
3k 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 ...
4
votes
0answers
838 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
0answers
591 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
0answers
127 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
0answers
91 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
0answers
358 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
0answers
738 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 ...
3
votes
0answers
52 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....
3
votes
0answers
50 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
0answers
39 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
0answers
309 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
0answers
97 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
0answers
283 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 ...
3
votes
0answers
76 views

fcgid automatic reload script

I'm a Debian's user and I'm learning mod_fcgid for apache2.4. I want to use it for coding a python script. When I change my script, I have to reload Apache. I have seen that mod_fastcgi has an option ...
3
votes
0answers
68 views

Run jetbrains hub in a subdomain in a subfolder with apache

I am using jetbrains tools to manage a team. using apache to manage my domains/subdomains. have a sub domain named dev.sepidarr.ir which is responsible as the main entry point of my development ...
3
votes
0answers
409 views

php_value overrides with Apache using a front controller

I am trying to set specific server side value for virtual paths used to upload files. All my URLs are virtual and requested are dispatched by a front controller. I have the following config in my ...
3
votes
0answers
236 views

How to make apache2 connect through SOCKS5 server that I am runnning?

I have a website ran on apache2 and a SOCKS proxy server that are both hosted on the same computer. The website can be accessed publicly and my SOCKS5 server is on localhost. How do I make the ...
3
votes
0answers
143 views

Apache2 rewrite root to various subdirectories/subsites on test server

I'm in the process of migrating from an old Debian 6 server to a nice new shiny Ubuntu 16.04 server. On our Debian server, we have the main domain but also several subdomains (each of which has a ....
3
votes
0answers
191 views

Apache + mod_auth_tkt + mod_rewrite + mod_proxy from root directory

I have a web application running on a tomcat server which is "behind" an Apache httpd server and I am using mod_proxy to forward requests from the httpd to the tomcat server. The httpd server is using ...
3
votes
0answers
2k views

Apache 2.4, mod_geoip GeoIPScanProxyHeaders “On” not working

apache httpd.conf LoadModule geoip_module modules/mod_geoip.so <IfModule mod_geoip.c> GeoIPEnable On GeoIPEnableUTF8 On GeoIPOutput Env GeoIPScanProxyHeaders On GeoIPDBFile /...
3
votes
0answers
725 views

Upgrade openssl in apache from source and set as default

I have upgraded the openssl from source to version OpenSSL 1.0.1s for Apache, which installed under /usr/local/ssl/bin/openssl, and change the symlink to point it into this new installation directory ...
3
votes
0answers
4k 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 ...
3
votes
0answers
506 views

VirtualDocumentRoot and ProxyPassMatch

I have the following Apache configuration: ServerName localhost UseCanonicalName Off LogLevel debug <VirtualHost *:8080> ServerName _default_ VirtualDocumentRoot /Users/alex/Sites/...
2
votes
0answers
19 views

Is it possible to make IfFile work on Apache 2.4.29 for Ubuntu 18.04, and if so, how?

I am wanting to conditionally load VirtualHosts depending on the existance of the appropriate key files required for SSL for that virtualhost (or failing which, have a generic certificate I can fall ...
2
votes
0answers
19 views

Use S3FS Mount As HTTP Server Document Root

My proposed setup: An EC2 server running Apache or nginx. An S3 Bucket in the same region/availability zone mounted with S3FS. The Apache or nginx document root set to the S3FS mount. My question: ...
2
votes
0answers
29 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. ...
2
votes
0answers
38 views

mod_rewrite on Debian Stretch breaks php7.0-fpm with AH01071: Got error 'Primary script unknown\n'

We've just built a new Debian 9.8 server to replace our 8.11 server in order to test and upgrade to php7. We've installed apache2, php7.0-fpm and brought over out existing virtual host config, which ...
2
votes
0answers
26 views

Failed to renew SSL certificates using Certbot's “dry-run” command

I was using apache for my website and created the SSL for Apache. Then for some reason, I have to change my server from Apache to Node.js. To do that I just copied the SSL certificates path from ...
2
votes
0answers
56 views

CentOS phpMyAdmin connecting from external ip?

I'm trying to connect to phpMyAdmin which is running on my CentOS server from my pc with the following phpMyAdmin.conf: <Directory /usr/share/phpMyAdmin/> AddDefaultCharset UTF-8 <...
2
votes
0answers
35 views

Update httpd.conf with virtualhost

I have a webserver with an old config (but a recent 2.4.6 apache). Basically everything is in the 20 year old httpd.conf file, but I have some tools that complain that I need to define a virtual host. ...
2
votes
0answers
551 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 ...
2
votes
0answers
679 views

Refused to frame '' because it violates the following Content Security Policy directive: “frame-src *”

I have found many solutions to various situations with "refused to xyz" due to Content-Security-Policy Settings. However I can't seem to find what might be wrong if '' gets refused. The literal ...
2
votes
0answers
365 views

Apache2.4 + Python 3.7 + mod_wsgi not executing script

I have installed Apache 2.4 (vc15 apacheLounge) and Python 3.7. I installed the mod_wsgi using PIP and everything appears to be setup correct in the Apache server. error.log from apache: [mpm_winnt:...
2
votes
0answers
119 views

Regex RewriteRule in Apache 2.4 .htaccess

I want the URL: http://api.relaunch.local/rest/v1/akb/ To rewrite to: http://api.relaunch.local/?id=1873&eID=dispatch&controller=akb Where akb is the variable part. I tried endless ...
2
votes
0answers
919 views

Apache Failed to Start in Pacemaker

I am using Pacemaker with Corosync to set up a basic Apache HA cluster with 3 nodes running CentOS. For some reasons, I cannot get the apache resource started in pcs. Cluster IP: 192.168.200.40 # ...
2
votes
0answers
197 views

Unable to push after setting git smart http. Pull and Clone working

I am trying to set up git in my server with smart http as the access mechanism. Due to some intergration problems we can not use any other mehtod and it has to be the http or the https methods. So i ...
2
votes
0answers
402 views

SSL/HTTPS connection establishment slow

I have a website on a virtual machine on Microsoft Azure. Since one week ago, I have a lot of new active users (about 5000) and all is really slow now. With the server I have, it should be really fast....
2
votes
0answers
44 views

nginx redirects instead of proxying

I have Ubuntu 16.04, nginx as web server, apache2 with wordpress for wordpress site. I am trying to setup nginx for multiple sites. One site is static, works all the time. Second is basically ...
2
votes
0answers
97 views

Apache2.4 with ProxyPass Strips ExpressJS-set Headers

I've got WAMP (3.1.0 i.e. Apache 2.4) setup on Windows Server 2012R2 with proxypass to ExpressJS/Node application. In my httpd.conf: <Location "/someurl/"> ProxyPass "http://localhost:1337/" ...
2
votes
0answers
525 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 ...
2
votes
0answers
768 views

Redirect to Docker container with Apache in a relative URL

I have a Docker container running on a Ubuntu server on the port 8080. I can access to the web container with localhost:8080 Now I want to access to this container from the outside with my public IP ...
2
votes
0answers
2k views

Can't get php7 to work on apache2

this question also exist of SFO but I was recommended to ask here since it is more a server configuration issue. I have a major problem. My apache2 does not process php7 code but instead shows the ...
2
votes
0answers
123 views

How does apache2.4 maintains php7.0 opcache in prefork model

Does each apache2.4 child processes maintain their own opcache or is there a global opcache shared by all children?