Historically this is the main apache configuration file. In recent installations, the main file can also be called apache2.conf

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
4k 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 ...
2
votes
1answer
458 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
873 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
713 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: ...
1
vote
1answer
480 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
400 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
147 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
27 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
534 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
213 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
55 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
223 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
59 views

redirect all subdomains to www while setting environment variable

I've got a domain (example.com) pointed to an apache2 webserver. the root www folder looks like: www/ site/ app/ test/ The apache config should: send all requests to ...
0
votes
1answer
83 views

Apache 2.4 AliasMatch NotWorking

I used to Alias have as below for /CollabPortal14300 which was working fine Alias /CollabPortal14300 D:/Dev/Projects/CollabPortal/CollabPortal/target/CollabPortal/ Alias ...
0
votes
1answer
35 views

auto assign ip address to httpd.conf

I am building a cluster of servers in which new virtual machines will spin up as resources are needed. Is it possible in the apache config file to use a variable that will detect the servers ip ...
0
votes
1answer
39 views

redirect to subversion project after authorization

I am trying to figure out how to have apache redirect to a subversion repository after the requested URL is authorized for a user. After trying a lot of combinations the best result I can get is ave ...
0
votes
1answer
90 views

Apache not serving static content concurrently

When tried to open multiple pages from Codeigniter based custom CMS on different tabs, the first tab loads, while the subsequent tabs wait for the first tab to complete, then sequence follows ...
0
votes
1answer
70 views

Need help overriding a strict httpd.conf directory setting

Per requirements of a project I am working on, the apache httpd.conf must have the following restrictive setting as a security measure. <Directory /> Order Deny,Allow Deny from all ...
0
votes
1answer
69 views

not able to access xml file from webserver

when i am trying to aceess my html file of xml file after putting it in var/www/html i am not be able to access it from a browser. for example , i have stored crossdomain.xml file in var/www/html ...
0
votes
1answer
63 views

Multiple VirtualHost Configuration files in Apache2.

I have servers with RHEL-5, Apache-2.2.22, PHP-5.3.25 I know I can configure multiple virtualhost configurations in mutliple file by including these files in httpd.conf. Can Apache support this ...
0
votes
1answer
259 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
1answer
57 views

URL Rewrite http to https with www

I have a domain with several apps. All apps should be reached like this. https://www.website.com/app1/ https://www.website.com/app2/ https://www.website.com/app3/ The problem I'm having is with my ...
0
votes
1answer
301 views

Apache httpd.conf redirection. How to “balance” app

This is probably a simple problem but I just can't seem to solve it! I have a website running 2 Apache Tomcats on different ports (e.g. 8080, 8085). However since my customers cannot access specific ...
0
votes
1answer
161 views

htpasswd not working when set up in the httpd.conf file

My httpd.conf file looks like: <Directory "/path/to/mysite"> AuthType Basic AuthName "Restricted Files" AuthUserFile "/path/to/.htpasswd" Require user valid-user Options ...
1
vote
0answers
65 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
310 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
211 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
168 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
147 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
154 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
36 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
18 views

What's the easiest way to integrate Authy (two-factor) authentication with Apache httpd?

EDIT: Something similar to Authy would work too, if that service was i) hosted/SaaS and ii) able to send SMS messages. Most examples advocate RADIUS for two-factor authentication but I'm already ...
0
votes
0answers
34 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
45 views

amazon ec2 - opencart seo url not working

I have installed opencart on my amazon ec2 server. I am trying to activate the seo url feature but it is not working. I have renamed .htaccess.txt to .htaccess in folder directory ...
0
votes
0answers
106 views

Apache 2.4 git integration

After a long fight I managed to cleanup all Apache configuration and authentication errors, but remote access to repo still fails: mcon@ariag25:/tmp$ git clone ...
0
votes
0answers
37 views

VirtualDocumentRoot and ProxyPassMatch

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

Apache config for AllowOverride All in .conf file in conf.d not working

I have setup an Amazon EC2 LAMP server running Apache v2.2.29. I've loaded mod_rewrite and am trying to modify the entry to AllowOverride All. Rather than edit the httpd.conf file in the ...
0
votes
0answers
32 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 ...
0
votes
0answers
42 views

Apache HTTP server STIG rule

I am new to setting up Apache HTTP and have to STIG the Apache HTTP 2.2 I have running. (http://iase.disa.mil/stigs/app-security/web-servers/Pages/index.aspx). For one of the rules it says the ...
0
votes
0answers
426 views

“Pass phrase incorrect” in Apache SSL certificate after adjusting httpd.conf

On Friday I replaced an SSL certificate (purchased by my school's IT through Symantec and sent to me) in Server Admin for Mac OS X 10.6.8 Snow Leopard Server running on an Xserv. I serve a couple ...
0
votes
0answers
66 views

Apache on Windows: How to configure 1 process per client?

I've got a quite difficult problem which I don't know hoe to solve. We use a self created ISAPI module which is a "business server" running behind an Apache. From time to time a client app crashes ...
0
votes
0answers
69 views

CENTOS Apache: non-www alias not resolving when CGI executes

I'm setting up my first ever dedicated server, and copying over site files (mostly HTML code from a discussion board product) from another site to this new one. My issue is when I click on some links ...
0
votes
0answers
20 views

<Directory /> doesn't (always) apply its settings to NFS-mounted home directories

Two different machines, a production and a test machine, are running CentOS 6, with the CentOS Apache package installed, and both version 2.2.15. The configuration on the test machine is an exact ...
0
votes
0answers
67 views

Assistance required configuring /server-status on apache — keeps getting caught in redirects

Good Morning, I'm trying to configure server-status on my servers, so that I can connect them to Solar Winds monitoring. (No jokes, it's not my choice!) I thought that I could just drop a new .conf ...
0
votes
0answers
552 views

Apache2 - symbol gzopen64 version ZLIB_xxx not defined in libz.so.1 with link time reference?

I am not a pro in Apache2 httpd server configuration. The OS is a 64bit OpenSUSE 12.3 with built-in apache 2.2 64bit. I found an issue that I cannot explain why: Jul 19 10:07:18 linux-fho2.site ...
0
votes
0answers
185 views

X-Forwarded-For to log client ip is not working in apache

I have a load balancer in front of an apache httpd server which inturn forwards the requests to Tomcat6. The flow looks like below: Client -->Firewall System -->Load balancer -->Apache httpd ...
0
votes
0answers
24 views

How to using mod_rewrite under HTTPS

I'm write following configuration in httpd.conf. but, I can't start Apache when I turn on this setting. <VirtualHost *:443> ServerName www.example.com <IfModule mod_rewrite.c> ...
0
votes
0answers
82 views

Where do I specifiy custom HTTP range-header entities and the necessary logic behind an entitiy?

I have a large JSON file which consists of xyz records. I'm looking for a way to retrieve parts of the file and have been reading the http-specs on how to define HTTP range-headers in Apache. The ...