[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] 2nd domain on same web dir
- Subject: Re: [cobalt-users] 2nd domain on same web dir
- From: "manitu" <manitu@xxxxxxxxxx>
- Date: Fri Mar 10 02:05:19 2000
> Now the costumer can access the domain using subdomain.ourdomainname.com .
> It works perfect...well, almost perfect. Because when I try to run
> CGI-scripts or use SSI, they don't work!
>
> Does anybody know how to solve this problem?
Yes! No Problem. Add the following directives to the new virtual host:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^IP.NU.MB.ER(:80)?$
RewriteCond %{HTTP_HOST} !^www.domain2.com(:80)?$
RewriteRule ^/(.*) http://www.domain2.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/siteX/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/siteX/users/$1/web/$3
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
Please note the following. While using "cgi-script" the program "CGI Wrap"
which ensures some security on the RaQ is not active. CGI scripts are
executed classically (see previous postings in this list). Using "cgi-wrap"
instead of "cgi-script" does *NOT* work due to a compilation "error" (I
think it is intended but..) in the cgi wrapper.
SHTML (SSI), PHP3 etc. works fine. I would like to recommend you to allow
your customers NOT to use cgis on the second (sub-) domain, but it's your
decision...
Manuel