Re: mod_wsgi configure problem

2009-12-01 Thread Graham Dumpleton
Read Apache documentation on virtual hosts.

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

Graham

On Dec 2, 3:29 am, knight  wrote:
> Hi,
>
> I need my django app to listen to port 80 and port .
>
> I have 2 servers. One is listening to both ports and one is not
> listening to .
> The first one's apache conf is:
>
> Listen 
> WSGIRestrictStdout Off
> WSGIPassAuthorization On
> LoadModule wsgi_module modules/mod-wsgi.so
> WSGIScriptAlias /peergw /home/user/mx30/django.wsgi
>
> 
>         Order deny,allow
>         allow from all
> 
>
> Alias /media/ "/var/www/media/"
> Alias /peergw/site_media/ "/var/www/site_media/"
>
> 
>         Order deny,allow
>         Allow from all
> 
>
> 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 ):
>
> Listen 
> WSGIRestrictStdout Off
> WSGIPassAuthorization On
> LoadModule wsgi_module modules/mod-wsgi.so
> WSGIScriptAlias /peergw /home/reeptv/mx30/django.wsgi
>
> 
>         Order deny,allow
>         allow from all
> 
>
> Alias /media/ "/var/www/media/"
> Alias /peergw/site_media/ "/var/www/site_media/"
>
> 
>         Order deny,allow
>         Allow from all
> 
>
> The main difference are the last 2 lines. Does anybody has an idea how
> can I make the last one listen to  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.




mod_wsgi configure problem

2009-12-01 Thread knight
Hi,

I need my django app to listen to port 80 and port .

I have 2 servers. One is listening to both ports and one is not
listening to .
The first one's apache conf is:

Listen 
WSGIRestrictStdout Off
WSGIPassAuthorization On
LoadModule wsgi_module modules/mod-wsgi.so
WSGIScriptAlias /peergw /home/user/mx30/django.wsgi


Order deny,allow
allow from all


Alias /media/ "/var/www/media/"
Alias /peergw/site_media/ "/var/www/site_media/"


Order deny,allow
Allow from all


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 ):

Listen 
WSGIRestrictStdout Off
WSGIPassAuthorization On
LoadModule wsgi_module modules/mod-wsgi.so
WSGIScriptAlias /peergw /home/reeptv/mx30/django.wsgi


Order deny,allow
allow from all


Alias /media/ "/var/www/media/"
Alias /peergw/site_media/ "/var/www/site_media/"


Order deny,allow
Allow from all



The main difference are the last 2 lines. Does anybody has an idea how
can I make the last one listen to  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.