Been at this for a bit today, one vhost file is defaulting and  takes over 
and serves for both my URLs:


Example: ( server1 is serving for www.server2.com ??? )

www.server1.com

www.server2.com

vhost confs:

server1
<VirtualHost *:80>
        ServerName www.server1.com
        ErrorLog /.../apache/error.log

        AliasMatch ^/([^/]*\.css) /opt/ef/static/css/$1

<Directory "/.../apache">
Allow from all
</Directory>

Alias /media/ /...f/media/
Alias /static/ /...f/static/

<Directory /.../static>
Order deny,allow
Allow from all
</Directory>

<Directory /../media>
Order deny,allow
Allow from all
</Directory>

</VirtualHost>

WSGIScriptAlias / /...apache/server.wsgi

************server2
<VirtualHost *:80>
        ServerName www.server2.com
        ErrorLog /.../apache/error.log

        AliasMatch ^/([^/]*\.css) /opt/ef/static/css/$1

<Directory "/.../apache">
Allow from all
</Directory>

Alias /media/ /...f/media/
Alias /static/ /...f/static/

<Directory /.../static>
Order deny,allow
Allow from all
</Directory>

<Directory /../media>
Order deny,allow
Allow from all
</Directory>

</VirtualHost>

WSGIScriptAlias / /...apache/server.wsgi

To get my second site to work I have to disable the alphabetically earlier 
vhost.

Am I matching incorrectly?


Realtime apache logs show the right URL, but serving the wrong files!



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to