Virtual Hosts Using Ports
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: May 10, 2008 02:07PM

Hi i would like to show you a simple way to set up mutiple websites over the web when port 80 is blocked by your ISP and you have a dynamic IP IS so set each website on its own port then you can redirect people to your IP address + port of the site they want to see


In your httpd.conf file set apache to listen to more then one more, for this example im having 3 sites , 1 is Sub Domain of another


Listen 80
Listen 81
Listen 82



Now in your httpd-vhosts file put this


NameVirtualHost *:80
NameVirtualHost *:81
NameVirtualHost *:82


<VirtualHost *:80 >
DocumentRoot C:/wamp/www/
</VirtualHost>

<VirtualHost *:81 >
DocumentRoot C:/wamp/www/website2
</VirtualHost>

<VirtualHost *:82 >
DocumentRoot C:/wamp/www/subdomain
</VirtualHost>



As you can see this is a very easy way to set them up,

Then use a program such as FreeDNS or DynDNS to update your IP and set up your urls.

If Anyone needs a setup on this, just drop me a mail.

I am writing a complete manual on namebased , ipbased and portbased Virtual Hosts, will be finished it soon

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 05/10/2008 02:09PM by stevenmartin99.

Options: ReplyQuote
Re: Virtual Hosts Using Ports
Posted by: yfastud (Moderator)
Date: May 10, 2008 04:08PM

Good job, Steven; however, I suggest to use name based since it's not convenient to include port port in url :-(

Check my easy guide here:

[guides.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.