Questions tagged [apache-2.2]

Version 2.2 of the Apache HTTP Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

3,101 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
1answer
463 views

Dynamically Authenticate Apache with LDAP Based on Request String?

It is possible to use a portion of the request URI as an input into mod_authnz_ldap's Require ldap-group directive? I'm trying to dynamically check access to a bunch of different project directories, ...
9
votes
1answer
1k views

Using Squid as a maven repository

Does someone know how to use Squid to proxify maven repositories ? What are the configuration files for that ? The main problem is that maven client issue HTTP request with headers which control the ...
8
votes
1answer
2k views

1GB VPS - Apache Worker MPM - FCGID - Max concurrent connections - RAM CAP

I have spent a week or two researching and setting up my server to run Apache with the Worker MPM and FCID. I am trying to optimize it to allow for the most concurrent connections possible. It has ...
7
votes
0answers
4k views

Apache/SSL: (70014)End of file found: SSL input filter read failed

Figured upgrading on a long weekend was a smart move... Now I'm stuck. The server is spitting out this error (loglevel info): "(70014)End of file found: SSL input filter read failed" when using the ...
6
votes
2answers
4k views

Apache Header Module Loaded but can't set headers in htaccess

I have Apache 2.2.29 (unix) setup and running on my new dev machine (mac). I am trying to set CORS headers for an API project - something that I have done many times. The htaccess file for the ...
6
votes
3answers
3k views

Proper Passenger + Apache Permissions to fix error “No such file or directory - config/environment.rb”

I am having a problem with Passenger not being able to start due to an apparently common issue in which Passenger claims: No such file or directory - config/environment.rb. I have searched the web ...
6
votes
2answers
595 views

IIS sets http header Expires to -1, how do I override this with mod_expires

I'm using an IIS website with a Apache HTTP reverse proxy (mod_proxy with ProxyRequests Off). I want to control the expires headers in apache (don't ask), but IIS is setting the header Expires: -1. ...
6
votes
1answer
430 views

Rails with phusion passenger and wordpress

We had a site developed using on ruby on rails. It had Website Web services for mobile app Admin panel to manage data. We started using wordpress to manage site content. We have finished ...
6
votes
1answer
501 views

mod_evasive with Apache/2.2.16 dosn't work when I use curl

I have apache server: Server version: Apache/2.2.16 (Debian) Architecture: 64-bit threaded: no forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="...
5
votes
0answers
597 views

Apache HTTPd 2.2 is ignoring LocationMatch regex

I am trying to create a Reverse Proxy that match every URL except one in Apache 2.2. It works on Apache 2.4 (Centos 7), but not in Apache 2.2 (Centos 6.6) ... # Do not modify this <LocationMatch "^...
5
votes
0answers
442 views

Environment variables not available on server after mod_rewrite, but works locally

I am working on a site where I am using SSI to set a variable on an HTML page that gets parsed and the variable is then to be picked up by a script after a mod_rewrite rewrite. This works on my local ...
5
votes
1answer
758 views

Setting header based on client certificate

I have Apache running as a reverse proxy for an internal server. Users hitting the proxy are required to use client certificates. On the internal server, there is a web application that can use an ...
5
votes
0answers
999 views

Apache + Php-FPM + APC : mode_deflate not compressing HTML output

I have prepared a server to run a Magento instance with: Apache + Php-FPM + APC The problem I have is that Apache is not compressing the HTML output from the Magento PHP scripts. In my .htaccess I ...
5
votes
0answers
1k views

Apache as a reverse proxy for GitLab Omnibus

I'm using GitLab Omnibus on a CentOS6.5 server. The gitlab nginx server listen on the 6543 port (Apache already using 80 and 443). I want to use Apache as a reverse proxy to access GitLab with that ...
5
votes
0answers
2k views

Apache 2.2 fails with “unable to write 'random state'” with 2048-bit RSA key (1024-bit works fine)

I'm usually pretty good with Apache and OpenSSL, but this one has me completely baffled. I'm running Apache 2.2.22 and OpenSSL 1.0.1 on a Ubuntu 12.04 LTS Server. I have an IP-based virtual host ...
5
votes
1answer
943 views

ModSecurity on Apache (Debian Wheezy), Authentication logging

I am new to ModSecurity, it works great on the server, but I would like to control the way it logs things. For example as I am troubleshooting my website in order to whitelist or correct php coding ...
5
votes
0answers
505 views

Is it possible to reference environment variables from a php_value statement in .htaccess?

I am trying to access an environment variable in a php_value statement within an .htaccess file. Here's a couple example usages: php_value include_path ".:/usr/lib/php:[b]%{My_Environment_Variable}[...
5
votes
0answers
1k views

Linux/Apache 2.4.3 MPM event error scoreboard is full, not at MaxRequestWorkers

I have a server used for shared hosting running Linux/Apache 2.4.3 event MPM Apache is reporting "error scoreboard is full, not at MaxRequestWorkers" in the error log every second. I don't know what ...
5
votes
2answers
852 views

apache/httpd responds slower under EL6.1 than EL5.6 (CentOS)

I've read through other threads on performance differences between RHEL 6 and RHEL 5, but none seem a tight match to mine. My issue manifests itself in slightly slower average response time (20ms) ...
5
votes
0answers
293 views

Apparmor externally included hats not working

Running apache2 on Ubuntu 12.04, using mod-apparmor for change-hat support. I have installed and verified that change-hat is working but that it is not working for externally included hats like the ...
5
votes
0answers
871 views

NGINX mod _proxy_html available?

Somebody created already a similar http://apache.webthing.com/mod_proxy_html/ mod_proxy_html module for Nginx? I think the closest module would be http://wiki.nginx.org/HttpSubsModule but I have no ...
5
votes
1answer
8k views

Error headers: ap_headers_output_filter() after putting cache header in htaccess file

Receiving error: [debug] mod_headers.c(663): headers: ap_headers_output_filter() after I included this within the htaccess file: # 6 DAYS <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"...
5
votes
1answer
211 views

git http-backend show info when accessing per browser

I'm currently hosting my own git-repos for my private projects. For this, I use Apache and the standard git http-backend. Now, a repo can be accessed under an URL like this: http://vcs.myserver.lc/...
4
votes
0answers
151 views

How to configure Apache to make him check the client certificate with the one in LDAP?

I’m trying to configure my Apache server for an HTTPS authentication with client certificates using LDAP as my users directory. What I want to do is that Apache asks users to authenticate themselves ...
4
votes
0answers
1k views

How do I convert Nginx location rewrites to Apache

I have a site that was running using nginx but now it is apache Im trying to convert nginx to apache and have had no success This is the nginx file I want to convert to apache: server { listen ...
4
votes
0answers
595 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
2k views

configuration for maximum response size for apache

Is there a config setting in apache that can limit the size (or maybe limits the maximum size) of a response? I'm working on an embedded device that uses apache server to host its web interface. The ...
4
votes
0answers
261 views

mod_ssl client certificates on a reverse proxy

I am trying to add client certificate authentication on a reverse proxy that proxies an oracle application. Before adding, and if i remove the subsequent code, the oracle application is able to start ...
4
votes
1answer
193 views

Apache Reverse Proxy Unescapes URL

I am running Apache 2.2.15 as a reverse proxy in my DMZ. I have an application on the internal network that I make available on the Internet for staff to use by going through the reverse proxy. As ...
4
votes
0answers
4k views

PHP-FPM ERROR: unable to read what child say: Bad file descriptor (9)

I'm having this issue: Apache 2.2.26 PHP 5.4.32 PHP-FPM 5.4.32 Zend OpCache 7.0.3 PHP-FPM Config: [testuser] listen = /dev/shm/testuser-php.sock listen.owner = testuser listen.group = apache listen....
4
votes
2answers
2k views

Apache/PHP ldap stops working. Requires restart of apache

I currently have a setup where users log in to a website using LDAP credentials. It's all internal so I don't really care a ton about certificates. So, in my /etc/openldap/ldap.conf file I have ...
4
votes
0answers
5k views

Apache stapling_renew_response: responder error

My Apache error log shows a lot of " stapling_renew_response: responder " errors. Was hoping to add a browser screenshot but I'm a newbie and therefore not authorised. This is what is shown from the ...
4
votes
1answer
1k views

Slowloris on Apache: is mod_reqtimeout + mod_qos enough?

I detected few days ago that my server was under slowloris attack (I found a lot of "-" 408 0 "-" "-" values in my access.log). I changed my configuration like this: In mod_reqtimeout: ...
4
votes
1answer
397 views

Need 32 Bit Apache on Red Hat 6.5 64bit

I have a Red Hat 6.5 Enterprise Server which is 64 bit. I have a 3rd party package that I use for Web Services that is an add-on to Apache Web Server. This package is 32 bit so I need to have a 32 bit ...
4
votes
0answers
4k views

vagrant apache not accessible from host

I am runing a virtual box from vagrant and I am trying to access web pages that are served by guest apache server. When I execute wget http://dev.test.com/index.html on guest everything works fine ...
4
votes
1answer
385 views

On Apache2/mod_perl2, stderr output doesn't go to logfile nominated by ErrorLog

I like to maintain separate Apache2 logfiles for each of my named virtual hosts, like this: <VirtualHost *:80> ServerName myhost.example.com ErrorLog /var/log/apache2/myhost-error.log </...
4
votes
0answers
428 views

Nginx doesn't rebound from 502 Bad Gateway

We have a situation where a site starts to serve a 502 Bad Gateway but doesn't seem to recover after the upstream servers rebound. The nginx server is setup to proxy/load balance requests for two ...
4
votes
1answer
987 views

Apache : use of Alias directive with mod FastCGI

The server is configured to handle php files with fastcgi : <IfModule mod_fastcgi.c> AddHandler application/x-httpd-php .php Action application/x-httpd-php /fcgi-bin/php-fpm virtual ...
4
votes
2answers
2k views

Apache Server Hello in SSL Slow

I'm trying to debug a problem with SSL in Apache. I've used Wireshark to capture the packets, and I see the client hello message go out, and then about 10 seconds or so later, I get back a server ...
4
votes
0answers
3k views

How mod_cache working with “must-revalidate” and “max-age”?

Quick question before I will explain my flow: Сan mod_cache perform revalidate with if-none-match only if max-age is expired in case if it configured in reverse proxy mode? My goal is to reduce a ...
4
votes
1answer
830 views

htaccess rewriting all subdomains to subdirectories

I'm trying to build a catch-all for any subdomains (not captured by previous rewrite rules) for a certain domain, and serve a website from a subdirectory that resides in the same folder as the ....
4
votes
0answers
1k views

Strange Apache/PHP&Perl behavior—error (70007)

I’m dealing with a particular strange situation: I have two Linux machines, one with Scientific Linux (v4.8) and one with CentOS (v6.2). On the SL machine I have a XAMPP distribution with Apache 2.2.9,...
4
votes
1answer
3k views

Apache mod_deflate not compressing javascript and css files?

"GET /Symfony/web/app.php/app/dashboard HTTP/1.1" 4513/37979 (11%) "GET /Symfony/web/css/application.css HTTP/1.1" -/- (-%) "GET /Symfony/web/js/application.js HTTP/1.1" -/- (-%) "GET /Symfony/web/js/...
4
votes
1answer
159 views

apache fails to restart…happened out of the blue :/

Tried navigating to my server today and noticed that NONE of my hosted websites are loading...even if I enter the ip and try to hit the default page I get nothing. I hadn't touched the server since it ...
4
votes
1answer
665 views

Apache is not using SWAP and it's reporting page allocation failure

Check the logs: httpd: page allocation failure. order:4, mode:0xd0 Call Trace: [<ffffffff8000f696>] __alloc_pages+0x2ef/0x308 [<ffffffff80017a40>] cache_grow+0x139/0x3c7 [<...
4
votes
0answers
425 views

How to add SSL for localhost in RAILS

I want to test my application which needs to work both with and without SSL. If it is possible to set up SSL for a local application (http://localhost:3000), please let me know some suggestions, my OS ...
4
votes
1answer
245 views

Problems restarting Apache - Curl related

I'm having a problem compiling LAMP, I have everything compiled and working, but when I try to restart apache I get the following error: seg fault or similar nasty error detected in the parent ...
4
votes
1answer
571 views

Is Apache ReverseProxy to Passenger Standalone an acceptable production deployment?

I have the need to deploy Rails 3 apps, using RVM and gemsets, and am expecting “public” traffic (i.e. this is not an internal-only app). I also must use Apache as the public interface to my app. I ...
4
votes
0answers
2k views

Failed to open page: kCFErrorDomainCFNetwork error 303

I am running Zend Server on my Mac, working on a local PHP (Zend Framework) project. I've never come across this problem before, but there are certain lines in my code that trigger an error in my ...
4
votes
0answers
1k views

nginx equivalent to Apache MultiViews?

If you put this in your .htaccess file Options MultiViews and you have these files stuff/ howto.html index.php items.php then all of these web addresses work /stuff/ # ...