+ Post New Thread
Results 1 to 9 of 9
Wireless 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, ...
  1. #1
    Quackers's Avatar
    Join Date
    Jan 2006
    Posts
    1,408
    Thank Post
    43
    Thanked 153 Times in 128 Posts
    Rep Power
    55

    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?

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,820
    Thank Post
    110
    Thanked 590 Times in 511 Posts
    Blog Entries
    1
    Rep Power
    226

    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/' ) ;
    ?>

  3. #3
    Quackers's Avatar
    Join Date
    Jan 2006
    Posts
    1,408
    Thank Post
    43
    Thanked 153 Times in 128 Posts
    Rep Power
    55

    Re: domain name to point to subfolder on webserver.

    and save this file where?

  4. #4
    mrforgetful's Avatar
    Join Date
    May 2006
    Posts
    1,639
    Thank Post
    7
    Thanked 15 Times in 15 Posts
    Rep Power
    23

    Re: domain name to point to subfolder on webserver.

    Ahh IIS...

  5. #5
    Iain's Avatar
    Join Date
    Oct 2006
    Location
    Warwickshire
    Posts
    190
    Thank Post
    28
    Thanked 94 Times in 54 Posts
    Rep Power
    32

    Re: domain name to point to subfolder on webserver.

    Are you using Apache? If so, you can just use name based virtual hosts.

    Iain

  6. #6
    Quackers's Avatar
    Join Date
    Jan 2006
    Posts
    1,408
    Thank Post
    43
    Thanked 153 Times in 128 Posts
    Rep Power
    55

    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.

  7. #7

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,820
    Thank Post
    110
    Thanked 590 Times in 511 Posts
    Blog Entries
    1
    Rep Power
    226

    Re: domain name to point to subfolder on webserver.

    Quote Originally Posted by Quackers
    and save this file where?
    Your document root.

  8. #8


    Join Date
    Oct 2006
    Posts
    3,414
    Thank Post
    184
    Thanked 356 Times in 285 Posts
    Rep Power
    149

    Re: domain name to point to subfolder on webserver.

    Its all in your httpd.conf

    Its very well documented on the apache website

  9. #9
    Iain's Avatar
    Join Date
    Oct 2006
    Location
    Warwickshire
    Posts
    190
    Thank Post
    28
    Thanked 94 Times in 54 Posts
    Rep Power
    32

    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)
    Code:
    <VirtualHost *:80>
    ServerName www.firstdomainname.com
    DocumentRoot /var/www/html
    </VirtualHost>
    Then add your new site with
    Code:
    <VirtualHost *:80>
    ServerName www.seconddomainname.com
    DocumentRoot /var/www/html/cyc
    </VirtualHost>
    As has been said, more detailed information can be found on the apache website.

    Hope this is of some help,

    Iain.

SHARE:
+ Post New Thread

Similar Threads

  1. Point to point network speed test tools
    By tarquel in forum Wireless Networks
    Replies: 15
    Last Post: 26th February 2013, 10:49 PM
  2. Webserver & PHP site advice
    By FN-GM in forum Web Development
    Replies: 17
    Last Post: 2nd December 2007, 12:58 AM
  3. Point to Point Bandwidth Test
    By ICTNUT in forum How do you do....it?
    Replies: 1
    Last Post: 10th September 2007, 01:14 PM
  4. My WebServer Died :'(
    By fooby in forum Hardware
    Replies: 13
    Last Post: 16th February 2006, 12:30 PM
  5. Which Webserver Installation Kit?
    By in forum Web Development
    Replies: 16
    Last Post: 15th November 2005, 10: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
  •