How to host multiple sites on one port

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Computer-Pro
-


Joined: 14 Dec 2005
Posts: 111

PostPosted: Sun Jan 22, 2006 5:45 am    Post subject: How to host multiple sites on one port Reply with quote

How do I host multiple sites on one port?

Thanks,
Computer-Pro
_________________
Compu-Geek.org coming back soon
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sun Jan 22, 2006 6:15 am    Post subject: Reply with quote

I see you have X2, so you can either buy extra domains or add subdomains
to your existing domain. Then, just add the new hosts in your console...
http://www.aprelium.com/data/doc/2/abyssws-win-doc-html/hosts-add.html
Back to top View user's profile Send private message Visit poster's website
Computer-Pro
-


Joined: 14 Dec 2005
Posts: 111

PostPosted: Sun Jan 22, 2006 6:38 am    Post subject: Reply with quote

Moxxnixx wrote:
I see you have X2, so you can either buy extra domains or add subdomains
to your existing domain. Then, just add the new hosts in your console...
http://www.aprelium.com/data/doc/2/abyssws-win-doc-html/hosts-add.html


That I know but can you have two domains on the same port with differnt documents directories? I am running out of port forwarding boxes in my router config.
_________________
Compu-Geek.org coming back soon
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sun Jan 22, 2006 6:39 am    Post subject: Reply with quote

Yes you can. I have 9.
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Jan 22, 2006 10:26 am    Post subject: Reply with quote

Computer-Pro wrote:
Moxxnixx wrote:
I see you have X2, so you can either buy extra domains or add subdomains
to your existing domain. Then, just add the new hosts in your console...
http://www.aprelium.com/data/doc/2/abyssws-win-doc-html/hosts-add.html


That I know but can you have two domains on the same port with differnt documents directories? I am running out of port forwarding boxes in my router config.



With X2 you can have unlimited domains/subdomains on port 80 with the same or different directories. You only need to port forward port 80 once if you do this. That leaves plenty of room on your routers config.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Jan 22, 2006 1:16 pm    Post subject: Reply with quote

Computer-Pro,

With virtual hosting (which is fully supported by Abyss Web Server X2) you can have several domain names pointing to the same IP and using the same port 80 (or any other port). The server running on this IP will distinguish for which host each request was made and will serve it accordingly.

Here is a small tutorial explaining how to declare a new host using a domain name.

* Create a directory in your hard drive where the files of the site should to be stored. In this example, we'll assume that you will create a new directory called website1 inside C:\sites .
* In Abyss Web Server console, press Add in the Hosts table.
* Enter 80 in the port field.
* Enter the name of the new host in the Host name field (for example
www.myhost.com ).

www.myhost.com must be a valid registered domain name. Using your registrar
tools, you configure it to (A record) point to your computer's IP address
(for example 111.112.113.114). You don't need to have your DNS server for
this. Your registrar usually offers this service for you when buying the
domain names. If it doesn't, there are some companies that provide the same
service such as http://www.zoneedit.com (free for 5 domain names). You can
also use a free domain name such those provided by No-IP or DynDNS.

You should also ensure that your firewall (if you have one) accepts
connections made to port 80. You should also configure your router to
forward connections made to its external port 80 to the port 80 of the
computer where Abyss Web Server is running. This is called port forwarding
and the detailed steps to do that are explained in
http://www.portforward.com (choose your router brand/model there for the
exact instructions).

* Enter C:\sites\website1 in Documents Path (or press Browse and locate the directory where the files of the site are.)
* Enter for example log\website1.log in Log File
* Select the configuration you want to duplicate for the current host in "Copy Configuration From". If you want to start with the default parameters, select Default configuration.

Press OK. The new host will be created. All you have to do now is to put the site files in C:\sites\website1 (using Explorer or FTP.) Do not forget to start the new host (press Start in its corresponding row in the Hosts table.)

Now to see if it works, use an external site such as http://www.proxify.com to test if http://www.myhost.com is accessible from the rest of the Internet. Notice that you cannot test it locally as most routers doesn't know how to do loopback.

To test your site locally using its domain name, we suggest using this tip:
For example, let's say you want to test the host http://www.myhost.com
locally. In the computer where you used to browse http://127.0.0.1 to get
the web site (which doesn't work anymore since the host has a name), open with Notepad (or any text editor) the file:

C:\WINNT\system32\drivers\etc\hosts (if you are using Windows NT, 2000, or XP Pro)
or
C:\WINDOWS\system32\drivers\etc\hosts (if you are using Windows XP Home or 2003)
or
C:\WINDOWS\hosts (if you are using Windows 95,98, or ME)

and add for each of your hosts at the end of that file a line of the form:

127.0.0.1 www.mysite.com

You can also add another line for another host name if you want:

127.0.0.1 www.mysecondsite.com

Save the file and browse http://www.mysite.com locally . You should see
the web site.

This file act like a local domain names database. The system does a lookup in it before contacting an external DNS server to resolve the domain name requested in the browser.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Computer-Pro
-


Joined: 14 Dec 2005
Posts: 111

PostPosted: Sun Jan 22, 2006 10:44 pm    Post subject: Reply with quote

I now get a listioning error Andy helped me but is stumped.

EDIT- Nevermind I fixed the problem. I had the bind IP set to * instead of my local IP.

Edit2- Can I use web forward now so I don't have to type in the port at the end since its port 8080?
_________________
Compu-Geek.org coming back soon
Back to top View user's profile Send private message Visit poster's website MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jan 23, 2006 2:27 pm    Post subject: Reply with quote

Computer-Pro wrote:
Edit2- Can I use web forward now so I don't have to type in the port at the end since its port 8080?


You can always use web forwarding with the server (there is no limitation for that).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Computer-Pro
-


Joined: 14 Dec 2005
Posts: 111

PostPosted: Thu Jan 26, 2006 1:07 am    Post subject: Reply with quote

aprelium wrote:
Computer-Pro wrote:
Edit2- Can I use web forward now so I don't have to type in the port at the end since its port 8080?


You can always use web forwarding with the server (there is no limitation for that).


OK thanks. I forgot to efid again saying I found out how with Zone Edit since I use them anyway..
_________________
Compu-Geek.org coming back soon
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions 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