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

0
votes
1answer
1k 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 ...
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
0answers
19 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" ...
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 ...
1
vote
1answer
27 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 ...
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 ...
3
votes
2answers
5k 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
0answers
6 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
26 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 ...
-1
votes
0answers
22 views

OpenBSD httpd.conf conditionals [migrated]

Note: this question is about the built-in OpenBSD http server named httpd and its configuration. It does not apply to any other web servers. Is it possible to make runtime conditional configurations ...
0
votes
2answers
18 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
23 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
35 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
22 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
39 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
48 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
6 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 ...
-1
votes
1answer
29 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
60 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
21 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 ...
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: ...
5
votes
1answer
138 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 ...
2
votes
3answers
16k 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
149 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
7k 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
15 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 ...
0
votes
1answer
64 views

How to test conditions in apache configuration?

I want to test a configuration in apache. How can I "debug" the configuration file ? For example, let's say that I have : <IfModule mod_geoip.c> GeoIPEnable On GeoIPDBFile ...
0
votes
1answer
192 views

Moved the Apache directory. Now it doesn't work. What should I do?

I am working on Linux (Ubuntu). I've installed apache to /var/local/ and I've moved the Apache directory to /usr/local/. Now it can't start. I've edited the httpd.conf file changing all /var/local ...
9
votes
6answers
18k 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
55 views

How to Retain Proxy URL for all request using Apache load balancer

I am trying to serve the requests to my Site through Proxy machine using Load balancer. When i try to access the Site by hitting http://PROXYSERVER.com, the HomePage comes up fine retaining the ...
2
votes
1answer
121 views

Hyperlinks disabled when ProxyHTMLEnable is Set to ON

I am using an application behind a reverse proxy (proxypass and proxypassreverse). I don't understand why hyperlinks are disabled (unclickable) when I set ProxyHTMLEnable to ON. Please note that the ...
-3
votes
2answers
48 views

Server not recognizing that wget is installed on OS X Yosemite [closed]

I'm trying to install some software (called Prohits, used for mass spectrometry data management) on a localhost server I set up. One of the requirements for the install is that I have wget installed. ...
1
vote
0answers
40 views

Apache using all cpu and cause OOM killer

I have an Xen-VPS CentOS 6.5 64 Bit with 2GB memory and 4 GB Ram, I have application with php, in my application lot of pages need to image which generated by php_imagick extension, here is apache ...
0
votes
0answers
13 views

process 8705 command line error

Would anyone happen to know how to resolve a proc/8705/cmdline error? I'm not even sure what that is but it's stopping my httpd client from running.
1
vote
1answer
30 views

Using network drive as alias in Apache 2.2 is not working

OS is Windows 7 Appache is installed in "C:\AppServ\Apache2.2" In httpd.conf for documentroot DocumentRoot "C:/Program Files (x86)/myweb" for alias: alias /link/ ...
1
vote
1answer
125 views

Apache - Multiple sites - One Server - Different Ports - Linux

Currently I have an Apache2 listening on Port 80. This is configured in /etc/apache2/listen.conf In /etc/apache2/conf.d I have the normal configuration files and: site1.conf, site2.conf and ...
1
vote
1answer
105 views

php is not working with apache after upgrading from 5.3.3 to 5.6

I have a vps with bigrock which had php version 5.3.3 installed. I have recently upgraded php to version 5.6 because some php functions were not working. Now after removing old php and installing ...
0
votes
0answers
15 views

How to stop cloud server crashes

I have had this ongoing problem with my server hosting this domain http://www.independentlondon.com, a dedicated cloud server i'm trying to manage myself. It just keeps crashing despite many changes ...
0
votes
0answers
48 views

Apache. Substitute pattern with dollar sign

I am trying to configure Apache 2.4.9 (Windows) to use mod_substitute module. But when apache meets this line Substitute "s#${_STRING_TO_REPLACE}#http://something#nq" It says Config variable ...
0
votes
1answer
44 views

CentOS 6.5 Apache redirect to 127.0.0.1

I have to install a new CentOS Server v6.5 I already install httpd and want to access Apache Welcome Page by serverIP. But I get a timeout, so I stop iptables service for a moment. Now I get an 301 ...
44
votes
2answers
49k 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 ...
0
votes
3answers
60 views

allow domain in httpd.conf file block rule

I have a "rule" in httpd.conf to pop-up a windows if somebody tries to access wp-admin section of any domain where wordpress is installed. With this rule I prevent boots for accessing wp-admin folder ...
1
vote
0answers
11 views

Turning off Hostnamelookup in shared hosting [closed]

I have a linux shared hosting account with cpanel for a drupal website. While optimizing the site (with the help of information from tools.pingdom.com), I found considerable waiting time of about ...
0
votes
1answer
40 views

How to do digest authentication in Apache?

I have an apache2 server running on Ubuntu. I'm new to Apache, so forgive me I say something illogical. I have basic authentication working, so I thought I'd just replicate the directives for digest ...
-1
votes
1answer
32 views

RewriteRule running after Require test failed which rewrites 403.shtml to website content instead of error message

When a request gets denied due to require all denied, it first gets routed to the ErrorDocument 403.shtml but then that gets rewritten rather than stopping there and the site content actually gets ...
0
votes
2answers
514 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> ...
0
votes
0answers
138 views

Setting php.ini extension_dir with httpd.conf SetEnv

I'm trying to have a single point of configuration for a portable dev environment. I am using Apache 2.4 and PHP 5.6.14 on Windows. This is defined in my httpd.conf: Define ROOT ...