On Feb 2, 5:59 am, "Lukasz Szybalski" <[EMAIL PROTECTED]> wrote:
> On Feb 1, 2008 10:20 AM, manuhack <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi all,
>
> > I want to host two different websites using one address, is that
> > possible?  Right now I have bought two names and a static IP address.
> > If I point those two names to my IP address, what is the best way to
> > host them under apache?  Or any other better way to do it?
>
> > Those two websites are going to be using TG 1.04.
>
> Use apache and its virtual hosts for the two 
> sites.http://httpd.apache.org/docs/2.0/vhosts/examples.html
>
> and in each virtual host setting, set it to use your tg app via 
> mod_wsgihttp://lucasmanual.com/mywiki/TurboGears#head-36b7eef1526da4fe58c7373...

Except that am not sure that page actually shows an exact example of
what OP wants.

Anyway use something like:

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /www/example1
ServerName www.example1.com

WSGIDaemonProcess www.example1.com
WSGIProcessGroup www.example1.com

WSGIScriptAlias / /some/path/tg.wsgi

# Other directives here

</VirtualHost>

<VirtualHost *:80>
DocumentRoot /www/example2
ServerName www.example2.org

WSGIDaemonProcess www.example2.com
WSGIProcessGroup www.example2.com

WSGIScriptAlias / /some/path/tg.wsgi

# Other directives here

</VirtualHost>

Each TG app would be given its own mod_wsgi daemon process to run in.

See mod_wsgi site for more details on mod_wsgi setup.

Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to