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
1k 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 ...
2
votes
1answer
652 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 ...
2
votes
1answer
3k 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 ...
1
vote
1answer
85 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
159 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
158 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
25 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
370 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
363 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" ...
1
vote
1answer
204 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
46 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
218 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
16 views

How do I allow access to a directory in apache that is actually a RewriteRule match?

We have a server with a lot of domains. Each domain will have one or more of the following admin areas that we wish to secure by IP: domain.tld/admin (admin area) domain.tld/blog/wp-admin (wordpress ...
0
votes
1answer
35 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
39 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
45 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
166 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
98 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 ...
0
votes
1answer
464 views

PHP 5.4 Apache 5.4.4 Installation error in Windows

While I am trying to install Apache with command httpd -k install I am getting an error: C:\Program Files\Apache24\bin>httpd -k install Installing the Apache2.4 service The Apache2.4 service is ...
0
votes
1answer
301 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
1answer
39 views

Seting up folder from Apache root directory in other hdd and allow php to write on it

please need help... [LINUX] I'm trying to set up a big photos folder in a new hdd over apache. Before it was: /htdocs/photos now I'm trying to create a virtual directory: <IfModule ...
0
votes
1answer
61 views

Apache(httpd) virtual host configuration

I am trying to configure virtual host on local web server What i want is when i go to localhost or server IP i want to see the default centos page and when i go to the other websites that are ...
0
votes
1answer
483 views

ssl_error_bad_cert_domain when accessing site by its ip address on https

i finally got my certificate verified from a trusted CA. now, i have edited my etc/httpd/conf.d/ssl.conf to locate my new certificate. i already included the ssl.conf in my etc/httpd/conf/httpd.conf. ...
0
votes
1answer
213 views

How do I enable Clean URLs on Zend Server CE?

I installed Zend Server CE followed by Drupal. I would like to enable clean urls for the local site but I am not able. How do I do that? Also, any changes being made to the httpd.conf file are not ...
1
vote
0answers
16 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
62 views

403 error from 403 ErrorDocument

I've the following configuration script in my Apache 2.4.7 installation: <Directory "/www"> Options Indexes FollowSymLinks AllowOverride All <RequireAll> Require all ...
1
vote
0answers
192 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
87 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
142 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
121 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
146 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
35 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
82 views

403 Forbidden error on apache 2.2.2 under ElementaryOS Luna

I've installed latest lampp in my ElementaryOS install. All went ok until I begun getting access problems in some files, so I went through: created a new group www and added my user to it, then ...
0
votes
0answers
56 views

Where do I put the CacheEnable, CacheRoot directives in httpd.conf? Not working currently

I am not using a VirtualHost and I added the following to httpd.conf right after the DocumentRoot declaration (not the one that's an XML node): CacheEnable disk / CacheRoot /var/www/cache ...
0
votes
0answers
140 views

Difference between default ServerName and UseCanonicalName DNS

For the Apache HTTP Server (2.2) configuration, the default value for ServerName looks equivalent to UseCanonicalName DNS. Is that true? This is confusing considering the default value of ServerName ...
0
votes
0answers
122 views

Disabling Wordpress 404 and Replacing with Default Apache Error Document

We currently have Apache installed on CentOS. We have run into a problem with one of our sites, in that since we have blocked access to wp-admin bots try and find it somewhere else therefore over ...
0
votes
0answers
61 views

Collabnet_subversion installed and using httpd. Log rotation?

A system admin pointed out to me that Collabnet httpd was holding deleted log files open, and that was taking up room on the disk. Doing an /etc/init.d/collabnet_subversion graceful solved the ...
0
votes
0answers
62 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
338 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
23 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
75 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 ...
0
votes
0answers
32 views

Error configuring virtual hosts

i Have a problem using my virtual hosts: When i try to connect to my server on direct ip adress, for example http://111.11.11.111/ in apache error log i see following error: script ...
0
votes
0answers
53 views

Three apps going through apache. How to configure apache httpd?

I have a quick question but I've been struggling to find the best solution: I have two java webapps and wordpress (php) that I need to serve through my Prod website: App #1 should be accessed when ...
0
votes
0answers
156 views

Plesk 10 VPS - Site on extra port?

I'm building my own custom content management system for a my websites. I want the content management-site to be available through another port so I can do this: www.mysite.com:8844. The server I use ...
0
votes
0answers
604 views

Apache 2 Settings for high traffic webserver

Hey all and thanks in advance, this is an easy one for alot of you on here. I have a 2 server setup a web server and database backend. Well I am having issues optimizing my apache settings and don't ...
0
votes
0answers
180 views

Server Connection Defaulting to HTTPS in Firefox

I recently added SSL to my server using a self-signed certificate. The goal was to access phpMyAdmin without sending my credentials over the Internet in plain text. This works great for phpMyAdmin, ...
0
votes
0answers
296 views

Apache configuration mpm

Good morning. I have a problem with my server. Am I study the different "response times" of an apache server. The main thing I do is change the MaxClient. For this use: Laptop windows 7 core i3. ...
0
votes
0answers
47 views

redirect a domain to a cathegory of another domain

Let's say that I have www.cathegory-one.com and I wish to redirect it to www.mydomain.com/cathegory-one. How can be achieved this? Using a html redirect it is not a clean solution( i think). ...
0
votes
0answers
131 views

Setting up blog at blog.example.com (httpd.conf issue)

I installed WordPress on my dedicated server, but had a bit of trouble getting httpd.conf to play nice... I tried adding the following lines: <VirtualHost *:80> DocumentRoot /var/www/html/blog ...