in the 10-simple-vhost.conf file
add:
------------------------------------------------------------------
server.modules += ( "mod_simple_vhost" )
$HTTP["host"] =~ "blog\.xxx\.(com|cn)" {
server.document-root = "/home/blog/"
simple-vhost.server-root = "/home/"
simple-vhost.default-host = "xxx.com"
simple-vhost.document-root = "blog"
fastcgi.server = ( "/code.py" =>
(( "socket" => "/tmp/fastcgixp.socket",
"bin-path" => "/home/xx/code.py",
"max-procs" => 1,
"bin-environment" => (
"REAL_SCRIPT_NAME" => ""
),
"check-local" => "disable"
))
)
url.rewrite-once = (
"^/robots.txt$" => "/static/robots.txt",
"^/sitemap.xml$" => "/static/sitemap.xml",
"^/favicon.ico$" => "/static/favicon.ico",
"^/css/(.*)$" => "/static/css/$1",
"^/js/(.*)$" => "/static/js/$1",
"^/images/(.*)$" => "/static/images/$1",
"^/static/(.*)$" => "/static/$1",
"^/(.*)$" => "/code.py/$1"
)
}
-------------------------------------
hope it works for you.
On 2月24日, 下午8时34分, geekbuntu <[email protected]> wrote:
> i want to host more than one domain in my vps
>
> everything is mapped directly to the original domain
>
> i copied the information for the original domain and made a duplicate
> set of entries pointing to the new folder/domian name
>
> the fast-cgi - is mapped to the original domain to.
>
> i'll gladly dbase/pastbin any conf files if you know which you need to
> see or if you know of a tut i could try.
>
> tia,
> greg
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.