Networks Thread, domain name to point to subfolder on webserver. in Technical; We have a box just for a joomla site, and i wanted to host another one on the same box, ...
-
15th August 2007, 09:53 AM #1 domain name to point to subfolder on webserver.
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?
-
-
IDG Tech News
-
15th August 2007, 10:12 AM #2 Re: domain name to point to subfolder on webserver.
Make an index.php with the following in it.
Code:
<?php
header( 'Location: http://www.yoursite.com/cyc/' ) ;
?>
-
-
15th August 2007, 10:26 AM #3 Re: domain name to point to subfolder on webserver.
and save this file where?
-
-
15th August 2007, 10:43 AM #4 Re: domain name to point to subfolder on webserver.
-
-
15th August 2007, 11:07 AM #5 Re: domain name to point to subfolder on webserver.
Are you using Apache? If so, you can just use name based virtual hosts.
Iain
-
-
15th August 2007, 11:40 AM #6 Re: domain name to point to subfolder on webserver.
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.
-
-
15th August 2007, 11:51 AM #7 Re: domain name to point to subfolder on webserver.

Originally Posted by
Quackers and save this file where?
Your document root.
-
-
15th August 2007, 11:53 AM #8 Re: domain name to point to subfolder on webserver.
Its all in your httpd.conf
Its very well documented on the apache website
-
-
15th August 2007, 12:15 PM #9 Re: domain name to point to subfolder on webserver.
Sure, to set up name based virtual hosts you'll need to edit your httpd.conf file.
First make sure it contains the directive
Code:
NameVirtualHost *:80
Then add your existing site as a virtual host with (assuming your document root is /var/www/html)
Then add your new site with
As has been said, more detailed information can be found on the apache website.
Hope this is of some help,
Iain.
-
SHARE:
Similar Threads
-
By tarquel in forum Networks
Replies: 13
Last Post: 10th May 2010, 12:59 PM
-
By FN-GM in forum Web Development
Replies: 17
Last Post: 2nd December 2007, 01:58 AM
-
By ICTNUT in forum How do you do....it?
Replies: 1
Last Post: 10th September 2007, 01:14 PM
-
By fooby in forum Hardware
Replies: 13
Last Post: 16th February 2006, 01:30 PM
-
By in forum Web Development
Replies: 16
Last Post: 15th November 2005, 11:36 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules