[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Site Forwarding Issue
- Subject: [cobalt-users] Site Forwarding Issue
- From: "David Hayden" <dhayden@xxxxxxxxxxxxxxxx>
- Date: Tue Apr 16 05:21:05 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi,
I have a RAQ4 and am trying to forward one of the domains stored on the box
to a third party website, so that it keeps my domain name showing in the
browser window.
I was advised to change the httpd.conf to the following
<VirtualHost mydomain.com www.mydomain.com>
ServerName mydomain.com
ProxyRequests on
RewriteEngine on
RewriteRule ^/(.*) http://x.x.x.x/mywebsite/$1 [P,L]
</VirtualHost>
where x.x.x.x is their IP address
I found the section in the httpd.conf file that related to the domain in
question and changed it exactly as advised. However when the server was
rebooted (by my hosting co.) the server did not come back up correctly and
none of the domains were accessible. So had to change the file back and all
was OK.
Can someone let me know what changes I should have made to the httpd.conf
file or is there a way of doing thro' the Admin interface.
The httpd.conf file for this domain was originally as follows:-
<VirtualHost x.x.x.x>
ServerName www.mydomain.com
ServerAdmin admin
DocumentRoot /home/sites/site15/web
ServerAlias mydomain.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^x.x.x.x(:80)?$
RewriteCond %{HTTP_HOST} !^www.mydomain.com(:80)?$
RewriteRule ^/(.*) http://www.mydomain.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site15/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
</VirtualHost>
Any help would be appreciated.
Thanks in advance
David Hayden