Re: [Karrigell-main] Virtual Hosts on Karrigell
Brought to you by:
quentel
From: Andrew N. <an...@ni...> - 2004-01-26 10:47:44
|
Walter Miller wrote: >For example, www.my1sthostname.com mapped to >C:\Program >Files\Karrigell\vhosts\my1sthostname\index.pih so that >when users type www.my1sthostname.com/index.pih they >would not know it was hosted virtually. > It should be pretty straightforward on Apache (are you using this?): -- Add this onto the end of your httpd.conf file: -- NameVirtualHost 111.22.33.44 <VirtualHost 111.22.33.44> ServerName www.my1sthostname.com SetHandler python-program PythonPath sys.path+['C:\Program Files\Karrigell\vhosts\my1sthostname\'] PythonHandler ApacheHandler </VirtualHost> -- (Where 111.22.33.44 is your ip address) See http://httpd.apache.org/docs/vhosts/name-based.html for more details on virtualhosts. Currently though, you'll have to have karrigell installed in *each* place you are dishing files up from (ie. one for each virtualhost). I'll get round to fixing this. Hope this helps, Andy. |