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

Re: [cobalt-users] [RAQ4] Rewrite rule Help



Put the following line at the very top of your httpd.conf  file located in
/etc/httpd/conf
Include /etc/httpd/conf/httpd2.conf

Make a new file called httpd2.conf in the /etc/httpd/conf dir.
Put this in your new httpd2.conf file

# Included file for (httpd.conf)
#
#
#www.domain.com
<VirtualHost 000.000.000.000>
ServerAdmin user@xxxxxxxxxx
 DocumentRoot /home/sites/site#/users/username/web
ServerName www.domain.com
</VirtualHost>

#domain.com
<VirtualHost 000.000.000.000>
ServerAdmin user@xxxxxxxxxx
 DocumentRoot /home/sites/site#/users/username/web
ServerName domain.com
</VirtualHost>

Make sure you replace the IP address with your own IP address of the site.
You will see <VirtualHost 000.000.000.000>  make sure that the 0's are
replaced with your IP address.

Restart Apache using this  /./etc/rc.d/init.d/httpd restart

Randall Clark



----- Original Message -----
From: "John Cordeiro" <jcordeiro@xxxxxxxxxxxxxxx>
To: "Cobalt Users List" <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Wednesday, November 08, 2000 4:20 PM
Subject: [cobalt-users] [RAQ4] Rewrite rule Help


> I'm trying to create a rewrite rule in httpd.conf. I am trying to rewrite
> www.domain.com/~user to www.user.domain.com has anyone done this this way
or
> is there a better way to do this. I searched the apache docs but cant find
> the specifics. Any help
>
> Thanks.
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>