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 ...
2
votes
1answer
768 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
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 ...
1
vote
1answer
423 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
374 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
279 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
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
467 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
419 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
210 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
51 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
221 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
46 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
27 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
28 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
68 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
74 views

Setting up IPv6 on Apache2

Currently I have the "ports.conf" with the following content: NameVirtualHost *:80 Listen 80 <IfModule mod_ssl.c> Listen 443 NameVirtualHost *:443 </IfModule> <IfModule ...
0
votes
1answer
53 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
52 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
50 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
246 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
149 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
610 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
440 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
47 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
71 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
594 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
223 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 ...
0
votes
1answer
42 views

Apache Detects files as directories

I have a file 'result.txt' in my documentroot, now when I access: http://localhost/result/first It's accessing this instead: http://localhost/result.txt/first What could have I incorrectly ...
0
votes
1answer
539 views

Apache on Lion Server with two IP addresses

I'm trying to run Apache and nginx on the same machine, on different IP addresses. It's a Mac Mini with one ethernet card. I configured two eth network devices. I tried to change the apache ...
1
vote
0answers
50 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
287 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
146 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
153 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
140 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
150 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
18 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
120 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
41 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
39 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
15 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
161 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
96 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
64 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
479 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
81 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 ...
-2
votes
0answers
32 views

change documentroot of a subdirectory in directadmin

I have a directory in public_html named is "forum." /home/user1/domains/domain1.com/public_html/forum I need this URL: www.domain1.com/forum To be read from another user directory like: ...