Jump to content

Recommended Posts

Posted

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?

Posted
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.
Posted

Its all in your httpd.conf

 

Its very well documented on the apache website

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...