Quackers Posted August 15, 2007 Posted August 15, 2007 We have a box just for a joomla site, and i wanted to host another one on the same box, which works fine. The original site is in the www root, so i just created another folder for the additional joomla site called cyc in the www root. How do i get the domain to point to the /cyc of the webserver?
Geoff Posted August 15, 2007 Posted August 15, 2007 Make an index.php with the following in it. header( 'Location: http://www.yoursite.com/cyc/' ) ; ?>
Iain Posted August 15, 2007 Posted August 15, 2007 Are you using Apache? If so, you can just use name based virtual hosts. Iain
Quackers Posted August 15, 2007 Author Posted August 15, 2007 Yeah its apache, do you have any simple instructions as to what i need to do, i'm an IIS person, its only Joomla and Moodle that run apache here, rest is IIS.
Guest Guest Posted August 15, 2007 Posted August 15, 2007 Its all in your httpd.conf Its very well documented on the apache website
Iain Posted August 15, 2007 Posted August 15, 2007 Sure, to set up name based virtual hosts you'll need to edit your httpd.conf file. First make sure it contains the directive NameVirtualHost *:80 Then add your existing site as a virtual host with (assuming your document root is /var/www/html) ServerName [url]www.firstdomainname.com[/url] DocumentRoot /var/www/html Then add your new site with ServerName [url]www.seconddomainname.com[/url] DocumentRoot /var/www/html/cyc As has been said, more detailed information can be found on the apache website. Hope this is of some help, Iain.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now