View previous topic :: View next topic |
Author |
Message |
khunchris -
Joined: 07 May 2005 Posts: 1
|
Posted: Sat May 07, 2005 10:24 am Post subject: SIMPLE QUESTION |
|
|
I am a new user and have set up my website and everything is working really well.
Now I want to add a second website......How do I do this.
Do I create a seperate directory to htdocs add then add the additional home page....If I do this where do I add the path, and information to route requests from that domain name to the new directory?
Or do I do this a different way ?
Any pointers would be gratefully received.
thank you for your help
Chris |
|
Back to top |
|
 |
Tim1681 -
Joined: 17 Jan 2005 Posts: 160 Location: Bristol, CT, USA
|
Posted: Sat May 07, 2005 10:31 am Post subject: |
|
|
The way my server is set up is i have the main directory (in your case htdocs) empty except for an Index file which forwards them to a certain website if they try to log into my server with out a directory selected in the URL.
But for your question i would just move your website thats in your htdocs folder to another directory. So you would make a new folder in HTDOCS and call it Website1 lets say, then make another folder called Website2. Now When you would want to goto a certain site on ur server you would do:
http://xx.xx.xx.xx/Website1 -or- http://xx.xx.xx.xx/Website2 |
|
Back to top |
|
 |
jedimaster -
Joined: 03 May 2005 Posts: 23
|
Posted: Sat May 07, 2005 12:59 pm Post subject: |
|
|
good point , but there is another way. via a script(perl or php) |
|
Back to top |
|
 |
Tim1681 -
Joined: 17 Jan 2005 Posts: 160 Location: Bristol, CT, USA
|
Posted: Sat May 07, 2005 1:05 pm Post subject: |
|
|
Yea I forgot to mention it's a PHP Index file. I made it so if you do something like ?c=Website1 it will forward you to that site, and if you put nothing in the URL it will send you to the 'default' site. I like it since its like the first PHP script I made that actually does something useful. |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sat May 07, 2005 2:03 pm Post subject: |
|
|
I created a project website for Virtual Hosting on Abyss X1 but if you want true
Virtual Hosting than you will need to buy the Professional version. Check it out!
Virtual Host Creator: (PHP|Perl|Python)
http://vhc.trustabyss.com |
|
Back to top |
|
 |
|