Hosting mutiples sites need imput

 
Post new topic   Reply to topic    Aprelium Forum Index -> Networking Issues
View previous topic :: View next topic  
Author Message
puertoblack2003
-


Joined: 08 Oct 2006
Posts: 87

PostPosted: Sat Nov 11, 2006 6:09 am    Post subject: Hosting mutiples sites need imput Reply with quote

good day guys,

i have a little problem which i hope is minor.

I'm hosting multiple sites with different domain names .I have cable modem no router with static ip address now on the one site i'm able to view but not the other two i'm unable to view and all port 80 is open.
I followed the instructions to go to system 32 host file and add the domain but still no luck can someone point me to the right direction so i'm able to view all 3 sites.

Or should i add a different port number?

thanks in advance.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sat Nov 11, 2006 6:44 am    Post subject: Reply with quote

How is your hosts file setup? Can others access your three websites?
Back to top View user's profile Send private message Visit poster's website
puertoblack2003
-


Joined: 08 Oct 2006
Posts: 87

PostPosted: Sat Nov 11, 2006 1:14 pm    Post subject: Reply with quote

TRUSTAbyss wrote:
How is your hosts file setup? Can others access your three websites?


ok i see the domain is pointing to it but it'll take it to a blank page but when i put the extension like index,php then it'll show. i check the dir root but it won't allow me to add the index.php just where the folders dir. is
Back to top View user's profile Send private message
TheAgent
-


Joined: 25 Nov 2006
Posts: 3

PostPosted: Sat Nov 25, 2006 1:07 am    Post subject: Reply with quote

I use a nice little PHP script to do this. you can set it up on different dns names so that depending on what DNS the other party types, they will be directed to a different page.

Code:

<?php

//get domain entered in browser
if ($_SERVER['HTTP_HOST'] == "forum.DNS1.com") {

//forward to appropriate page
header("Location : forum/index.php");
exit;

}
if ($_SERVER['HTTP_HOST'] == "dns1.com") {

header("Location : /home/index.htm");
exit;

}
//duplicate from here for more addresses
if ($_SERVER['HTTP_HOST'] == "DNS2.com") {

header("Location : /home/index.htm");
exit;

}
//end duplicating, insert below.


//else show error page
else {

header("Location : /404.htm");
exit;

}

?><title>Opening Your Page ::</title>


Put the above in a file named index.php on the server root and then set up new indexes in subdirectories. Change the file above to reflect these subdirectories, and there you go.
_________________
Running AbyssX1 with:
PHPbb forums
bBlog site blog
PHP, MySQL
on:
P4 2.4Ghz, 1Gb Ram 2x 120Gb Seagate HDD's
Windows XP Pro SP2
Back to top View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Networking Issues All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group