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

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



From: "Randall Clark" <wz297@xxxxxxxxxxxxxx>

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

You might note that putting the Include line at the top on a Raq 4 will cause all sorts of icky looking errors when you do a restart and httpd will die. Instead, put it just before the first NameVirtualHost in your file and then restart Apache.


Michelle
--

----|      TRANSCENA DESIGN  |----------------------------
Michelle A. Hoyle, VP Web Technologies, Canada
#801 T.D. Tower, Edmonton, Alberta, Canada  T5J 2Z1
N. America:  1-888-429-2363  |  UK:  020 7529 1465
International:  +1 780 429 2363
------------------|  internet design architects     |--------