Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Christian NGUYEN on March 25, 2003, 03:29:01 PM

Title: Hosting multiple Website on local machine
Post by: Christian NGUYEN on March 25, 2003, 03:29:01 PM
Hello,

I want to host 2 websites on my local network on 2 local pcs, but I want to know if these websites can be reach externally by internet?

ex:
mydomain1.com to the SME 5.5 gateway-server main Webserver
mydoman2.com to an local PC 192.168.0.14 forum serveur
mydomain3.com to a local PC 192.168.0.15 production server

Thanks for your help! :)
Title: Re: Hosting multiple Website on local machine
Post by: Bill Talcott on March 25, 2003, 06:06:52 PM
You'd need to forward ports from the SME to the other PCs. Then you'd have to have the domain name pointing at the non-standard port. A link has been posted before, that describes how to set up your DNS to accomplish this.
Title: Re: Hosting multiple Website on local machine
Post by: Christian NGUYEN on March 25, 2003, 06:18:10 PM
thks for replying!

I have already installed port forwarding entry for SME 5.5:
prot. Ext port  dest IP Adress    destination Port
TCP    81       192.168.x.x.20       80

Is it correct or not??
Title: Re: Hosting multiple Website on local machine
Post by: Bill Talcott on March 25, 2003, 06:40:10 PM
Christian NGUYEN wrote:
>
> thks for replying!
>
> I have already installed port forwarding entry for SME 5.5:
> prot. Ext port  dest IP Adress    destination Port
> TCP    81       192.168.x.x.20       80
>
> Is it correct or not??

Yes, that will forward incoming requests on port 81 to 192.168.x.20:80. http://www.yourdomain.com:81 should now bring up the website running on 192.168.x.20.
Title: Re: Hosting multiple Website on local machine
Post by: Christian NGUYEN on March 25, 2003, 06:53:10 PM
Bill Talcott wrote:
>
> Christian NGUYEN wrote:
> >
> > thks for replying!
> >
> > I have already installed port forwarding entry for SME 5.5:
> > prot. Ext port  dest IP Adress    destination Port
> > TCP    81       192.168.x.x.20       80
> >
> > Is it correct or not??
>
> Yes, that will forward incoming requests on port 81 to
> 192.168.x.20:80. http://www.yourdomain.com:81 should now
> bring up the website running on 192.168.x.20.

Thks again, now I'm sure that the problem comes from the redirection of the domain. : ;)
Title: Re: Hosting multiple Website on local machine
Post by: Andrej Fercic on March 25, 2003, 11:28:45 PM
OK I go for solution like this:

1. Page goes normal on SME
2. Set virtual domain on SME which point on ibay, enable PHP and replace index.html with index.php in which you put lines for redirection
3. Set another ibay and virtual domain and do the same as in point 2.

Cheers,

Andrej
Title: Re: Hosting multiple Website on local machine
Post by: Christian NGUYEN on March 26, 2003, 01:56:22 PM
Andrej Fercic wrote:
>
> OK I go for solution like this:
>
> 1. Page goes normal on SME
> 2. Set virtual domain on SME which point on ibay, enable PHP
> and replace index.html with index.php in which you put lines
> for redirection
> 3. Set another ibay and virtual domain and do the same as in
> point 2.
>
> Cheers,
>
> Andrej

ok thks andrej for replying, have you got somes examples to do this I'm a newbie on php coding. Have you got some how-to dealing with this subject!

Read you soon!