I'm working on getting a development environment setup on Arch Linux. My virtual hosts all seem to work when I comment out the other virtual hosts in the file but if they are all in there only the first one work when I point my browser to the ServerName.
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# <VirtualHost *:80>
# DocumentRoot "/home/rich97/Webroot/cakephp1x"
# ServerName cakephp1x
#
# <Directory "/home/rich97/Webroot/cakephp1x">
# Options FollowSymLinks
# AllowOverride All
# </Directory>
#
# ErrorLog "/var/log/httpd/cakephp1x-error_log"
# CustomLog "/var/log/httpd/cakephp1x-access_log" common
# </VirtualHost>
#
<VirtualHost *:80>
ServerName django
Alias /robots.txt /home/rich97/Webroot/django_test/static/robots.txt
Alias /favicon.ico /home/rich97/Webroot/django_test/static/favicon.ico
AliasMatch /([^/]*\.css) /home/rich97/Webroot/django_test/static/styles/$1
Alias /media/ /home/rich97/Webroot/django_test/static/media/
<Directory /home/rich97/Webroot/django_test/static>
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias / /home/rich97/Webroot/django_test/django.wsgi
WSGIDaemonProcess django_test processes=1 threads=10
WSGIProcessGroup django_test
<Directory /home/rich97/Webroot/django_test/scripts>
Order allow,deny
Allow from all
</Directory>
ErrorLog "/var/log/httpd/django-error_log"
CustomLog "/var/log/httpd/django-access_log" common
</VirtualHost>
In this case, if I uncomment cakephp1x then pointing the browser to localhost cakephp1x or django will all result in the cakephp application being displayed. If it's left commented localhost cakephp1x and django all show the django landing page.
Any ideas?