Read Apache documentation on virtual hosts.

http://httpd.apache.org/docs/2.2/vhosts/

Graham

On Dec 2, 3:29 am, knight <alexar...@gmail.com> wrote:
> Hi,
>
> I need my django app to listen to port 80 and port 7777.
>
> I have 2 servers. One is listening to both ports and one is not
> listening to 7777.
> The first one's apache conf is:
>
> Listen 7777
> WSGIRestrictStdout Off
> WSGIPassAuthorization On
> LoadModule wsgi_module modules/mod-wsgi.so
> WSGIScriptAlias /peergw /home/user/mx30/django.wsgi
>
> <Directory /home/user>
>         Order deny,allow
>         allow from all
> </Directory>
>
> Alias /media/ "/var/www/media/"
> Alias /peergw/site_media/ "/var/www/site_media/"
>
> <Directory "/var/www">
>         Order deny,allow
>         Allow from all
> </Directory>
>
> WSGIScriptAlias /peergw_test /home/user/test/mx30/django.wsgi
> Alias /peergw_test/site_media/ "/var/www/site_media_test/"
>
> The second one is (The one that doesn't listen to 7777):
>
> Listen 7777
> WSGIRestrictStdout Off
> WSGIPassAuthorization On
> LoadModule wsgi_module modules/mod-wsgi.so
> WSGIScriptAlias /peergw /home/reeptv/mx30/django.wsgi
>
> <Directory /home/reeptv>
>         Order deny,allow
>         allow from all
> </Directory>
>
> Alias /media/ "/var/www/media/"
> Alias /peergw/site_media/ "/var/www/site_media/"
>
> <Directory "/var/www">
>         Order deny,allow
>         Allow from all
> </Directory>
>
> The main difference are the last 2 lines. Does anybody has an idea how
> can I make the last one listen to 7777 and 80?
>
> Regards,
> Arshavski Alexander.

--

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