httpd.conf is a typical name for a web server configuration file. Historically this is the main Apache configuration file.

learn more… | top users | synonyms

2
votes
1answer
1k views

Apache deflate ignores javascript

I have set up deflate in my htaccess. Everything works fine, except for some reason javascript files are being ignored. I tried every possible combination of AddOutputFilterByType DEFLATE with ...
0
votes
1answer
14 views

NameVirtualHost does not work: only loads default host

I have configured Apache 2.2 so that I can have 2 hosts. The problem is when I connect using the second host, the default one is loaded. This is the vhosts.conf file: NameVirtualHost *:80 <...
4
votes
1answer
2k 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/...
-1
votes
1answer
34 views

Amazon EC2 - Forcing redirect of non-www http and https domains to “https://www” domain in httpd.conf [duplicate]

First and foremost, thank you for your time with my question. I am attempting to forward all traffic from http:// and https:// to "https://www.[domain].com/[etc]" I am currently able to ...
3
votes
2answers
6k views

Warning in Apache log: Cannot get media type from 'x-mapp-php5'

I have no idea what is causing this issue, but it seems to be related to the displayed file (just a simple index.php to print phpinfo) being in an aliased directory. Any suggestions what I can do to ...
0
votes
1answer
36 views

Apache configuration - Why I get redirect loop?

I have Apache server and JBoos server with my application on my local computer. This is my Apache configuration: httpd.conf ServerRoot "C:/opt/Apache" Listen 80 LoadModule actions_module modules/...
0
votes
1answer
2k views

How to redirect HTTP post request

Hi I am currently using the below code in my apache httpd.conf file to redirect from HTTP to HTTPS <VirtualHost 10.1.2.91:80> Redirect 302 /GladQE/link https://glad-test.com/GladQE/link.do ...
0
votes
0answers
3 views

remote module not setting %a

I am setting up a RHEL7 web server behind a load balancer and have been trying to configure remoteip to get the requester IP in the log. Everywhere I have looked the necessary configuration is to set ...
0
votes
3answers
575 views

mod_evasive apache module configuration issues

I have configured mod_evasive to not block google bot's IPs. But it's still banning google bots. Here is my configuration in /usr/local/apache/conf/httpd.conf: <IfModule mod_evasive20.c> ...
1
vote
2answers
2k views

Apache HTTP Server+Tomcat: Which file generates mod_jk.conf, how to modify generated stuff, and how does httpd reach it?

I'm using XAMPP with Apache HTTP Server and Tomcat Add-On installed. There's a default mod_jk.conf which is generated by Tomcat when starting it. But which file generates this mod_jk.conf file? How ...
0
votes
0answers
52 views

to set RequestHeader in apache httpd server is not working

I have a requirement, where I need to set the RequestHeader with a value retrieved from the querystring of the URI. Approach adopted is to write the RewriteCond and ReWriteRule where the condition ...
0
votes
1answer
22 views

Parse file and redirect from Apache config file

This is no doubt a no but has anyone has experienced reading and redirecting the request in apache based on a config rule? EG: <If "!%{REQUEST_URI} =~ m#files/cache/static/[A-Za-z_\-0-9]+.cache# &...
0
votes
0answers
23 views

Apache directive priorities: <Location /> vs <Files xmlrpc.php>

I am attempting to get the following 2 blocks of directives to work together, but for some reason the <Location> block is taking precedence over the <Files> block, regardless of what order ...
0
votes
0answers
23 views

apache 2.2 to 2.4 webdav write permissions

I am upgrading apache from 2.2 to 2.4 on a solaris machine and see weird behavior with webdav after the upgrade. I am trying to write to a folder without write permissions. On apache 2.2, i get the ...
4
votes
0answers
109 views

VirtualHost Defaulting to Wrong Deployment on Restart

We have a server running seven domains/subdomains. To try to go as minimal as possible here I'll include four of them. example.com www.example.com dwf.example.com chris.example.com The server ...
11
votes
2answers
10k views

difference between _default_:* and *:* in VirtualHost Context

I want to know the difference between "default:*" and "*:*" in VirtualHost Context. <VirtualHost _default_:*> #... ServerName host.example.com #... </VirtualHost> <...
0
votes
0answers
9 views

How to redirect everything to https with www? [duplicate]

I am using the following code in my .htaccess file RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$ RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] It ...
12
votes
4answers
1k views

Load time impact of htaccess

There are in general two possibilities of handling stuff on Apache: make configurations for folders one by one using htaccess file to fully resign htaccess and put all the rules into the httpd.conf ...
-2
votes
1answer
41 views

Apache Extended Logs of php files

I am using apache and I want to log each php or any script file with its location which runs for more than 30 seconds or so. I tried to find solutions extensively, but no luck has come true. Is this ...
0
votes
2answers
63 views

Subdomain redirection, URL Masking

My issue is simple but I can't seem to find the solution. I have a domain www.domain.com that has subdomains. www.domain.com 's document root is /home/domain/public_html Subdomains (excluding www) ...
0
votes
1answer
32 views

Masking URL, Subdomain redirection

We have hosted a Java web application for www.domain.com on Apache & Tomcat. I have two problems, as follows 1) Directory Index in Apache lists home.jsp ahead of redirect.jsp. For my domain.com ...
0
votes
1answer
87 views

Apache Keeps reverting to mpm_prefork (Apache 2.4.7 / Ubuntu 14.04.2)

I have had this problem for over a year now whereby each time there is a security update to Ubuntu and I have to reboot the server, Apache 2.4 decides to start using the mpm_prefork worker despite the ...
0
votes
2answers
53 views

Apache rewrite all URLs to lowercase if contains at least one uppercase

I have been trying to get Apache to rewrite all URL's that contain an uppercase character anywhere in it to be lowercase. All the solutions I have found do not work in my case for some reason. I am ...
45
votes
3answers
51k views

_default_ VirtualHost overlap on port 443, the first has precedence

I have two ruby on rails 3 applications running on same server, (ubuntu 10.04), both with SSL. Here is my apache config file: <VirtualHost *:80> ServerName example1.com DocumentRoot /home/me/...
1
vote
0answers
25 views

Is ScriptAlias needed in Apache 2 if the path is defined in conf.d?

I've installing apcupsd in a fresh installation of CentOS 7 that is running Apache/2.4.6 (CentOS). I installed the CGI status for apcupsd, but I continue to get the error message when attempting to ...
11
votes
7answers
21k views

Apache2 Proxy timeout

I have Apache2 with PHP + PHP-FPM configured according to: http://wiki.apache.org/httpd/PHP-FPM I am writing a script that will take a long time to execute on an internal Vhost, but keep getting ...
0
votes
1answer
26 views

fcgid configuration breaks Apache

I'm trying to include the following block of code on my site in order to run a fast-cgi script: # Create a directory for the iipsrv binary ScriptAlias /fcgi-bin/ "/home/USERNAME/SITENAME/fcgi-bin/" #...
0
votes
0answers
26 views

Apache vhosts redirect to www.domain.com:PortNumber/

I'm having the following problem with Apache 2.4. I have set httpd.conf file to listen to 2 more ports (8081 and 8082) like this: Listen 80 Listen 8081 Listen 8082 DocumentRoot "C:/xampp/htdocs1" &...
1
vote
1answer
31 views

httpd.conf (ProxyPass and ProxyPassReverse)

I would like to ask what is the difference between the following configurations below. application original URL/location: http://localhost:8080/MyServerApp/App_1 1st set-up/configuration ...
0
votes
0answers
7 views

apache2 not listening in ipv4 address in linux [duplicate]

I added Listen 0.0.0.0:80 in the end of apache2 configuration file /etc/apache2/apache2.conf. Then Restarted apache2 by using service apache2 restart. The netstat | grep apache command result is given ...
0
votes
1answer
36 views

Apache <VirtualHost> tag, do NOT redirect if client's IP = x… how to do that?

so I couldn't find an answer to this question anywhere... I am redirecting my clients from http to https when they're using http by having this in my httpd.conf <VirtualHost *:80> ServerName ...
0
votes
2answers
20 views

One site handles https request with no ssl correctly, other generates \x16\x03\x01 error

We have two sites, sub.example1.com and example2.com. Neither one is specifically configured to handle ssl requests. One site https:/sub.example1.com, handles a secure request to port 443 successfully ...
0
votes
1answer
31 views

Apache Main Server does not serve as default as stated in httpd.conf when virtual hosts are created- Why?

When setting up an Apache server the Main Server section states the following: # 'Main' server configuration # # The directives in this section set up the values used by the 'main' # server, which ...
1
vote
2answers
2k views

Virtual Host showing “Index of /” instead of displaying my site [closed]

So I just ran a clean install of Mountain Lion OSX 10.8 and am trying to get everything back up and running again. I uncommented the php module and vhosts in http.conf, added brew, mcrypt, autoconf ...
2
votes
3answers
40 views

How do I set up a toggle for an Apache RewriteRule?

I have the following Apache config, which displays a 503 Service Unavailable error to all visitors except for my IP address: ErrorDocument 503 /503.html RewriteEngine On RewriteCond %{REMOTE_ADDR} !^...
0
votes
0answers
25 views

HTTP Server on Windows that does SCGI over a named pipe

Is there a HTTP server that runs on Windows and can call SCGI over a named pipe? I'm asking because I created an SCGI server that uses TCP/IP (blocked to a local address) and it works OK, but as far ...
3
votes
1answer
41 views

Unable to connect to apache from the web

I have an apache instance running with vhost configured, here is the httpd.conf: #Listen {the_server_ip}:80 Listen 80 # <VirtualHost *:80> ServerAdmin webmaster@example.com DocumentRoot ...
0
votes
1answer
50 views

Moving cgi script from Apache 2.2 to 2.4 results in a 403 error

My configuration is as follows: #Include for LinuxStat (http://lstat.sf.net) Alias /lstat/ "/usr/local/lstat/www/" <Directory "/usr/local/lstat/www/"> #for execute CGI files Options ExecCGI ...
0
votes
0answers
12 views

apache filter to set response code

I have an apache configuration file when apache use that file I want to serve specific status code for all the response, Is there a filter way to do it ? this configuration file contains lots of Alias,...
0
votes
1answer
34 views

Cannot get application to use htaccess unless pointing to index.php

I am having difficulty getting one of my applications to use the htaccess file inside its path unless i point directly to index.php in the browser I have installed on my computer ubuntu: Distributor ...
1
vote
1answer
87 views

httpd - Increase number of concurrent requests

I have httpd server running on Centos7. The apache details - Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.4.16 I'm trying to load test a web application by starting to hit it with 100 users & ...
0
votes
1answer
43 views

How to read specific character out of request header in apache http.config

We are trying to read specific character out of http request header to determine the type of URL it needs to be forwarded it. E.g., Http header - HTTP_ACCEPT=version.ver1+xml In Httpd.config, we ...
1
vote
0answers
27 views

https://www.domain.com wont redirect to https://domain.com on vps

hello so i have this on my apache configure file: <VirtualHost *:80> other stuff here Redirect permanent / https://domain.com/ </VirtualHost> this works great it redirects all www....
2
votes
1answer
2k views

How add SSL/443 to Apache server without virtual host?

I have an apache server set up on CentOS. I am trying to add SSL. I was able to create the certificate and keys and then updated /etc/httpd/conf.d/ssl.conf to have the following configurations: /etc/...
5
votes
1answer
260 views

Apache (Linux) httpd listen on link-local IPv6 address

I would like Apache to listen on the link-local ipv6 address on a particular interface. I have the following line in my httpd.conf: Listen [fe80::a00:16ff:fe89:420f]:80 Which is based on the Apache ...
3
votes
3answers
17k views

Restarting the httpd service in RHEL returns “Stopping httpd: [FAILED]” - How do I fix this?

This is my first indication of an issue: $ sudo /sbin/service httpd restart Stopping httpd: [FAILED] Starting httpd: no listening sockets available, ...
3
votes
1answer
255 views

Passing Apache variable into SetHandler directive

I'm trying to have dynamically determined Unix socket used for different separated PHP "apps" (different sockets lead to different PHP-FPM pools) on my Apache (2.4.18) server (using mod_proxy_fcgi): &...
0
votes
3answers
1k views

Apache without any error page

How to set up apache to serve no error page content? I don't want the default behavior, blank or custom page. I want return no content except headers, that all browsers must display own native error ...
3
votes
3answers
8k views

How can I block a user agent from all sites on my server?

I originally this posted at webmasters.stackexchange.com, but was told I'd get a better reception here. For the last few days, I've been suffering from what appears to be a (presumably inadvertent) ...
0
votes
2answers
18 views

I need help setting up httpd.conf file to perform redirects to same site if accessed via http and https

I am pretty much a newb at http configuration, so please bear with me (I inherited support of this system). My web server is running behind an F5 which handles all of the https handshaking. If the ...