I have the following in my apache httpd.conf file

<VirtualHost *:80>
        ServerName mastermac

        Alias /site_media/ /var/www/django_projects/master_mac_enterprise/
master_mac_enterprise/site_media/

        <Directory /var/www/django_projects/master_mac_enterprise/
master_mac_enterprise/site_media>
        Order deny,allow
        Allow from all
        Options -Indexes
        </Directory>

        WSGIScriptAlias / /var/www/django_projects/master_mac_enterprise/
master_mac_enterprise/apache/django.wsgi

        <Directory /var/www/django_projects/master_mac_enterprise/
master_mac_enterprise/apache>
        Order deny,allow
        Allow from all
        </Directory>
</VirtualHost>

<VirtualHost *:80>
        ServerName localhost/portfolio

        Alias /site_media/ /var/www/django_projects/portfolio/portfolio/
public/site_media/

        <Directory /var/www/django_projects/portfolio/portfolio/public/
site_media>
        Order deny,allow
        Allow from all
        Options -Indexes
        </Directory>

        WSGIScriptAlias / /var/www/django_projects/portfolio/portfolio/public/
django.wsgi

        <Directory /var/www/django_projects/portfolio/portfolio/public>
        Order deny,allow
        Allow from all
        </Directory>
</VirtualHost>

which works perfectly when I try to access the site locally using
http://mastermac and http://portfolio.

My question is how can I access these site from my external IP or when
using my local IP address from another machine? currently only the
first site is accessibly externally when I try to do this.

I tried WSGIScriptAlias /mastermac and WSGIScriptAlias /portfolio
which works until I try to load a new page, since the /mastermac is
being ignored on subsequent request form the application.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to