up vote 1 down vote favorite
share [g+] share [fb]

I'm using Ubutnu 9.04, and XAMPP as a testing server for my websites. What I want to do is make my websites network-accessible. For now only the my-ip-address:80 is accessible and managed by XAMPP.
But I want to add more ports like my-ip-address:41100 for example and make it forwarding to a specific local host like (my-custom-domain.local) which I made by editing/configuring on /etc/hosts file and also /opt/lampp/etc/extra/httpd-vhosts.conf.

Thanks

link|improve this question

1  
Why do you want to change the ports? apache's vhost combined with /etc/hosts should allow you to associate my-custom-domain.local with /docs/local and my-custom-domain.remote with /docs/remote. I'm not getting the port angle. – DaveParillo Oct 6 '09 at 21:36
Bcus the goal is to make my local-virtual-host-names available on my network. – Omar Dolaimy Oct 8 '09 at 10:40
feedback

1 Answer

up vote 1 down vote accepted

Finally I found a solution:

  1. Make Apache listen to multiple ports like (44100, 44101, ..., 44199) because it's unused/unregistered ports. [you can edit httpd.conf of ports.conf to do this]

  2. Allow incoming connections to these ports.

  3. Add new virtual hosts and configure Apache to use these ports for those hosts (each host corresponds to one port).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.