[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] Viewing a virtual site before domain is



Peter,
 
> Can you advise what is incorrect? I'm trying to access the virtual site
> with http://cobalthost.my.domain/site/www.newsite.com as per your email.
> 
> Should the AliasMatch have gone in VirtualHost section of the virtual site
> I want to view?

To use your example - I've added that in the "cobalthost.my.domain"  section of 
the conf file (in my case host24.co.za).  There is no need to put it in the 
virtualhost section of each domain you want to view.

Rgrds,

Johan

Rest of your post:

> Have tried what you said but not understanding AliasMatch/ReWrite etc. I'm
> not able to debug!
> 
> this is the VirtualHost section for the Cobalt host:
> 
> <VirtualHost xxx.xxx.xxx.xxx>
> ServerName cobalthost.my.domain
> ServerAdmin admin
> DocumentRoot /home/sites/home/web
> RewriteEngine on
> RewriteCond %{HTTP_HOST}                !^xxx.xxx.xxx.xxx(:80)?$
> RewriteCond %{HTTP_HOST}                !^cobalthost.my.domain(:80)?$
> RewriteRule ^/(.*)                      http://cobalthost.my.domain/$1 [L,R]
> RewriteOptions inherit
> AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
> AliasMatch ^/site/([^/]+)(/(.*))? /home/sites/$1/web/$3
> AddHandler cgi-wrapper .cgi
> AddHandler cgi-wrapper .pl
> AddType application/x-httpd-php .php4
> AddType application/x-httpd-php .php
> </VirtualHost>
> 
> with your line in as the second AliasMatch.
> 
> Can you advise what is incorrect? I'm trying to access the virtual site
> with http://cobalthost.my.domain/site/www.newsite.com as per your email.
> 
> Should the AliasMatch have gone in VirtualHost section of the virtual site
> I want to view?
> 


---------------------------------------------
This message was sent using M-Web Airmail.
http://airmail.mweb.co.za/