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

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 ...
3
votes
1answer
610 views

mod_rewrite in .htaccess causes header not to be applied - why?

Excerpt from <VirtualHost *:80> section in httpd.conf (goal: set Cache-Control for all JavaScript files): <LocationMatch "\.js"> Header set Cache-Control "max-age=290304000, public" ...
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 ...
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 ...
1
vote
1answer
31 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
781 views

DocumentRoot Directory Apache httpd

I want to make changes over my httpd.conf file of Apache running in Windows, but I want to know why need to use (or declare) the same root twice. DocumentRoot "C:/Apache/htdocs" <Directory /> ...
1
vote
1answer
621 views

Apache AllowOverride Options Directive

I am trying to understand the following configuration (specific to FollowSymlinks and SymlinksIfOwnerMatch directives) in Directory section of an httpd.conf file: <Directory "/home"> Options ...
1
vote
1answer
190 views

How to disable access to www.example.com, but make laptop.example.com active

My website's two major sections can be accessed using: www.example.com for general content laptop.example.com for more specific content The laptop section is ready and deployed. User can access it ...
1
vote
1answer
32 views

Apache log for 301

How can i create a log file for 301 redirects, based on response header? I know that i can use SetEnvIf with CutsomLog, but it seems SetEnvIf has access just for request, no for response.
1
vote
1answer
828 views

Virtual Host forces to download files

I have been struggling with this for more than 5 hours now, and I can't seem to find the fix to my problem. Basically, I set up virtual host on my Fedora Core server (on custom port 55555). Any time I ...
1
vote
1answer
221 views

Will private dirty RSS used by mod_php ever be made available to other processes?

I've got PHP processes running that occasionally have to briefly use large amounts of RAM. After PHP uses the large amount of RAM, the httpd process seems to keep the same private dirty RSS ...
1
vote
1answer
65 views

Apache configuration for two web apps

I have two web applications that run on the same server. Each require a different port number, but only one port is open to the public. My company would rather avoid opening another port up but still ...
1
vote
1answer
224 views

Configuring httpd.conf to handle both a website and subversion

I am trying to set up an Apache2 server on Suse10. It currently serves pages for an internal website. I've installed Subversion and have the source for the internal website in version control and ...
0
votes
1answer
35 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
1answer
22 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
1answer
49 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
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 ...
0
votes
1answer
65 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 ...
0
votes
1answer
46 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 ...
4
votes
0answers
316 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 ...
1
vote
0answers
15 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 ...
1
vote
0answers
24 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 ...
1
vote
0answers
42 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 ...
1
vote
0answers
26 views

Need advice on Apache 2.2.22 Win Server 2003, memory leak

I'm running Apache 2.2.22 on Windows Server 2003 I'm serving some tutorial videos on the webpage to some registered users. The webpage has up to 30 users at a time, I know this because of analytics. ...
1
vote
0answers
201 views

VirtualDocumentRoot and ProxyPassMatch

I have the following Apache configuration: ServerName localhost UseCanonicalName Off LogLevel debug <VirtualHost *:8080> ServerName _default_ VirtualDocumentRoot ...
1
vote
0answers
114 views

suPHP usergroup reset to default at midnight in httpd.conf, how to avoid this?

I have 3 domains that need to point to the same public_html folder. So I've setup a http.conf for those domains. Let's say that I have user/group : master slave1 slave2 slave3 All slaves should ...
1
vote
0answers
410 views

Configuring dnsmasq to properly work with mod_rewrite on Mac OS X Mountain Lion

I desperately need help. I read an article on the echoditto blog (http://www.echoditto.com/blog/never-touch-your-local-etchosts-file-os-x-again) and followed the recommendations for setting up ...
1
vote
0answers
31 views

Rewrite not functioning in httpd.conf

My httpd.conf has: <Directory "/var/www/site"> AllowOverride All RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^site.com [NC] RewriteRule ^(.*)$ ...
1
vote
0answers
487 views

set up apache http server in windows as proxy to access another domain

I know this should be very basic and simple in theory, but I need to complete this task, I'm new to this and for some reason I can't find a suitable example that works for me. I am running apache 2.2 ...
1
vote
0answers
185 views

Apache configuration with proxy and location

I want to map these domains to these ports. How can I do it? http://test1.example.com/phpmyadmin/ example.com:80/phpmyadmin/ http://test1.example.com/app1/ example.com:8080/app1/ ...
1
vote
0answers
167 views

Apache2 ScriptAlias seems to be ignored

I have two vhosts configured on my Apache2 server. One contains the API and the other a mobile version of my app. Since the mobile version needs to access the API from its own domain, I decided to ...
1
vote
0answers
166 views

Can't find the correct configuration of apache on Centos 5.6 for Trac 0.12.2

I've been trying to get Apache to serve Trac on CentOS 5.6 for the past few days. The missing link is almost certainly the Apache configuration. I know this because I can get trac to run locally with ...
1
vote
0answers
37 views

Odd Behaviour with wildcard sub domain

I am trying to get wild card sub domains working on my project here and it does seem to be working but i have come across some very odd behaviour here, every time i try to visit any subdomain instead ...
0
votes
0answers
22 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" ...
0
votes
0answers
23 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 ...
0
votes
0answers
9 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 ...
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.
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
56 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
0answers
144 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 ...
0
votes
0answers
57 views

How to implement gzip compression in such a way that the files compressed path is stored as relative path rather than absolute path?

I am trying to implement gzip compression in my Application server machine but when it is served through the proxy(different machine) to the front end the css files are getting broken due to the mixed ...
0
votes
0answers
81 views

Apache 24 on windows 2008 stops responding to some clients

I have deployed a South Tactic (python) web server using apache. Tactic runs more than one python processes for multi-threading on the server, which apache uses for load balancing. The problem is ...
0
votes
0answers
367 views

CGI document downloads instead of executing on Apache2 Mac OS X

I am new to manually configuring Apache servers and I'm trying to set up a an Apache 2.4 server on a Mac OS X. I am experimenting with a C++ and CGI and I'm trying to generate an html page via the C++ ...
0
votes
0answers
224 views

How to enable CORS when connecting Jira to Nuxeo Roadmap (CentOS 6.5 & Apache)

After doing research into how to enable CORS, I have followed these suggestions to my httpd.conf and ssl.conf files. And it does not work no matter how many times I've tried. ...
0
votes
0answers
45 views

Combining .htaccess with http.conf to set https and direct all routes to index.php

I'm sure this question has been asked before, and I have tried to understand many of the answers given, however none of them seem to work with my particular set up. If the question can be answered ...
0
votes
0answers
34 views

Dynamically adjust MaxClients on Apache server

Tuning MaxClients is a pain. It depends on activity on the server. It depends on how efficient the application is with memory. It depends on how many different applications you're running and what ...
0
votes
0answers
289 views

Apache Allow Override Not Working with Docker Container

To sum it up; I can't get httpd.conf AllowOverride to work inside a CentOS:6.6 Docker Container. It completely hides the alias directory to any browser. I know it is not permissions and it is not ...
0
votes
0answers
22 views

Apache throwing error “The requested operstion has failed!”

I use Apache 2.2 and ColdFusion. The apache server was up and running fine till yesterday. But suddenly today when I tried to start the server it throwing an error message The requested operstion has ...
0
votes
0answers
67 views

Apache swapping virtual host entries each request

I have the following httpd.conf. Based on the different domain, it should route the request to the appropriate entry showing a different site based on a similar code base. The problem is that it ...
0
votes
0answers
50 views

simple conditional mod_rewrite for redirecting wrong urls

I have an assignment to add storeId parameter to wrong urls. It should behave like this: If url has directorystore/a in it like www.example.com/store/a - the next directory in path has to be ...