Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|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
add comment

1 Answer 1

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).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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