How to allow different ports access different pages

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to allow different ports access different pages

Postby dragon_master_mokuba » 28. July 2009 18:12

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
dragon_master_mokuba
 
Posts: 1
Joined: 28. July 2009 17:56

Re: How to allow different ports access different pages

Postby Wiedmann » 28. July 2009 19:55

Im trying to have multiple ports open to different pages.

http://httpd.apache.org/docs/2.2/vhosts/ip-based.html
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: How to allow different ports access different pages

Postby Nobbie » 29. July 2009 09:13

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.
Nobbie
 
Posts: 8780
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 54 guests