Page 1 of 1

How to allow different ports access different pages

PostPosted: 28. July 2009 18:12
by dragon_master_mokuba
Im trying to have multiple ports open to different pages.

Code: Select all
IE:
http://localhost:80 is main page.
http://localhost:50 is file manager.
http://localhost:2020 is phpMyAdmin.


I know how to change the default port, but not how to add more. Do I need to have different apache servers for each port?
Help?

Thanks,
Zach

Re: How to allow different ports access different pages

PostPosted: 28. July 2009 19:55
by Wiedmann
Im trying to have multiple ports open to different pages.

http://httpd.apache.org/docs/2.2/vhosts/ip-based.html

Re: How to allow different ports access different pages

PostPosted: 29. July 2009 09:13
by Nobbie
dragon_master_mokuba wrote:Im trying to have multiple ports open to different pages.


Even if it works this is a very unusual way of working with a webserver. You should supply different host names instead, for example:

http://localhost is your main page
http://filemanager.localhost is file manager
http://phpmyadmin.localhost is phpmyadmin

Standard HTML Requests are usually executed via port 80 (and https via 443) and you should not change that without the need for this. You may collide with routers (which have to be configured as well in case you want to expose your server), firewalls or other TCPIP-based applications.