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

23
votes
2answers
19k 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 ...
10
votes
2answers
1k views

best way to handle thousands of permanent redirects

We've a list of 3000 301 redirects. We need assistance on What would the best place to put these? It seems putting these 3000 lines inside vhost in httpd.conf would be a mess. What are recommended ...
5
votes
2answers
5k views

How can I redirect any ServerAlias to the respective ServerName?

I want to 301 redirect all example.org to www.example.org. The following example is doing just that, but it's got a lot of noise to it and is thus hard to maintain and error prone: <VirtualHost ...
2
votes
2answers
2k views

Blocking by user-agent string in httpd.conf not effective

I'd like to block some spiders and bad bots by user-agent text string for all of my virtual hosts via httpd.conf but have yet to find success. Below are the contents of my http.conf file. Any ideas ...
2
votes
4answers
8k views

Cannot commit to SVN repository via http

When I try to import a project into my subversion repository via http, I get this error: Can't create directory '/usr/local/svn/myproj/db/transactions/0-1.txn': Permission denied I set the httpd ...
3
votes
2answers
37k views

Accessing localhost (xampp) from another computer over LAN network - how to? [closed]

I have just set up a wi-fi network at home. I have all my files on my desktop computer (192.168.1.56) and want to access localhost over there from another computer (192.168.1.2). On my desktop I can ...
9
votes
1answer
8k views

How to find out which httpd.conf apache is using at runtime

I've always struggled to find this: How can you ask apache which httpd.conf file it used to load up? It becomes difficult when you have a number of instances of apache running, or if you haven't ...
5
votes
2answers
8k views

What are the steps to setup git-http-backend w/ Apache on Windows?

I would like setup a Git server using the "Smart-HTTP" approach. However, I'm having difficulties getting it to work in Windows, and I'm new to Apache. My httpd.conf, in part: SetEnv ...
2
votes
3answers
8k 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, ...
2
votes
3answers
110 views

Can i set 443 as default web port which means it can only be accessed via https and no port 80

As title says, I want to set my apache to listen on 443, and will configure SSL. So, My Question is :- 1). Does that mean, i will not have port 80 or any other port which is no ssl ? 2). My site ...
2
votes
1answer
319 views

How can Apache serve as a Reverse Proxy for multiple sites?

I have my Apache Server running on port 80. I also have a Geoserver running in Jetty on port 8080. To avoid cross domain problems in JavaScript, I wish that any request that comes to ...
1
vote
2answers
2k views

Apache httpd LDAP integration

I am configuring a CollabNet Subversion integration. I have the following collabnet_subversion.conf file: <Location /svn> DAV svn SVNParentPath /mnt/svn/new_repos SVNListParentPath on ...
1
vote
3answers
387 views

Apache Performance analysis

I am having really difficult time with my web server. I have been tweaking things as per the suggestions on web, yet not able to find anything concrete. My Apache process was eating 450MB under ...
1
vote
3answers
779 views

httpd.conf / VirtualHost configuration problem for blog.example.com

I have a site located at /var/www/html/ which works fine. I'm now trying to setup "blog.example.com" by adding the following entry in httpd.conf Setup1 <VirtualHost *:80> DocumentRoot ...
1
vote
4answers
468 views

How can I make Apache look in 2 separate directories with one common url?

I wonder if anyone knows if there's a way to configure Apache so that the url http://myurl.com/clips/song1.mp3 makes Apache fetch song1.mp3 in either directory1 or directory2? Thanks in advance! ...
0
votes
1answer
173 views

Apache is serving from the first virtualhost for all subdomains and main domain

Objective: To have multiple sub-domains working successfully with a wildcard SSL certificate. The sub domains do not have separate dedicated cpanel account, and hence share the same dedicated IP ...
0
votes
2answers
91 views

Unable to get mod_rewrite to stop processing

This is linked to Rewriting subdomain.domain.com when other 'subdomains' exist I need mod_rewrite to 'stop' processing, but it seems to continue on. On my registrar, I've set A records as: ...
0
votes
1answer
173 views

Rewriting subdomain.domain.com when other 'subdomains' exist

My httpd.conf looks like this: NameVirtualHost 12.34.56.78:80 <VirtualHost 12.34.56.78:80> DocumentRoot /var/www/html/site ServerName www.example.com <IfModule mod_rewrite.c> ...
0
votes
1answer
428 views

Redirect port / port 10000 to https apache

I have been reading around and trying different configurations to get a request to my server on port 10000 to redirect a http to a https request. For some reason I can't figure out how to make it ...
0
votes
2answers
261 views

httpd.conf changes to allow www.mysite.com and www.mysite.com/mantis and phpmyadmin?

I've got a php application which I use to place in: ~/public_html/beta/ And mantis and phpmyadmin in: ~/public_html/mantis/ ~/public_html/phpmyadmin/ The application used to be accessed as: ...
0
votes
2answers
467 views

Multiple servers on the same port, using aws elastic load balancer

I've got this setup that works almost all right and, apparently, works the exact same way than this: UseCanonicalNames off <VirtualHost *:8888> RewriteEngine on RewriteCond %{HTTP_HOST} ...
0
votes
1answer
1k views

PHPMyAdmin 500 Internal Server Error

My home PHPMyAdmin was working fine a day or two ago. Now it's giving me a generic 500 Internal Server Error and suggesting I look at my server logs. The Apache log contains these error messages: ...
0
votes
6answers
676 views

Apache server not broadcasting to internet

I've installed Apache server on my machine. I've set it up and designated the root folder, etc. When I go to http://localhost/, it works fine, telling me that Apache is installed correctly. However, ...
0
votes
1answer
3k views

Apache problem reading network drive using alias in httpd.conf

I have Windows XP professional (SP3) running + XAMPP with Apache 2.2.12. Everything is properly installed and works fine with local drives. The problem is that I want to access network drive "U:/" ...
0
votes
1answer
994 views

Reference the matched directory inside an Apache DirectoryMatch directive

I am attempting to configure Apache to host multiple django sites via mod_wsgi. The mod_wsgi setup tutorial gives an example configuration for this scenario where each app is in the same directory: ...