Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a local webserver that is mapped to port 80 (Windows, XAMPP and a domain "" that directs to the local webserver's IP. Everything works nicely. Now I'm trying to set up another program with an inbuilt webserver that runs on port 8080.

Ideally I don't want to expose both port 80 & port 8080 on my router to this machine. I could, but what I want to do is enter or instead of Nice and clean, that way only port 80 needs to be forwarded. I have no idea how to do this or if it's even possible.

Open to all suggestions & apache/htaccess/php/perl/port forwarding tricks. My googlefu fails me.


share|improve this question

You need to configure a Virtual Host for your app. Within this one you can configure a reverse proxy.

share|improve this answer
Thanks for the reply. This looks like exactly what I need - cheers! – Zeromus Jan 11 '13 at 1:18

Why don't you just switch the ports? Let xampp run on port 8080 and the other webserver on port 80.

share|improve this answer
My aim is to only have 1 port open, thanks for the reply though! – Zeromus Jan 11 '13 at 1:20

Your Answer


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.