Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 site written in PHP and it is served by Apache installed on Linux. To say, its url is and it has subfolders audio, games, photo, so user point to it as

Now I'm writing new features (for example, ability to view films) in ASP.Net and would like it to be accessible by users as And IIS to serve it is istalled on another server which is not visible from internet (only Apache has straight access to internet) but it easily can be reached from apache through intranet.

User sessions are not important!

How should I configure it to work efficiently? Possibly I need to install some more software?

I posted my solution which as far as I understand is what Farseeker means, but I'd like to hear other advices if there are any.

share|improve this question
up vote 1 down vote accepted

You've gone and tagged the question "reverse-proxy", so you've got that much right :)

I take it that Apache is your default listener on :80 for your public IP? If this is the case, then you will need to configure Apache's mod_proxy module, and configure it to rewrite requests for to IISSERVER/video

If your default listener is IIS, then the idea is the same, but you will need to use a commercial product like ISAPI Rewrite to do this.

share|improve this answer
I would like to thank you for your reply and I close question because I didn't het any other idea. – flashnik Jan 5 '10 at 22:20

Yes, Apache is the default listener on public ip on 80 port. I used ProxyPass and ProxyPassReverse adding in virtualhost following lines:

ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
ProxyPass /video http://iis_ip:iis_port
ProxyPassReverse /video http://iis_ip:iis_port

But I'm in doubt that I chose best solution. One of the alternatives I see is to install ngin and make it default. Then forward requests from nginx to Apacge and IIS.Maybe there other variants, so I don't close question yet.

share|improve this answer

I'm new here, so I can't vote-up Farseeker's answer. But that does the trick - Apache reverseproxy is what you're asking for. You can use many different products to do this, but given what you've said that you have, that's probably the best answer.

share|improve this answer
As far as I understand that is what I've done, yes? I described it in my answer – flashnik Jan 5 '10 at 2:46
Welcome mfinni, enjoy your stay! – Mark Henderson Jan 5 '10 at 2:53
Flashnik - yes, you said you'd done that, and then said you don't think you picked the best solution. Until/unless you describe what you want, that mod_proxy is lacking, we can't give you a better suggestion. – mfinni Jan 5 '10 at 5:38
Well, I meant that I'm not sure that it is the best solution. I'm new to web development since before I had a background only in a desktop programming. – flashnik Jan 9 '10 at 5:59

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.