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

I have a server with a static, public IP address. I also have a registered domain name.

For the sake of illustration, let's suppose they are

  • IP Address:
  • Domain Name:

I have a single machine on which I am running the following:

  1. A website (over IIS7) available locally at localhost:80
  2. A JetBrains TeamCity instance (over Tomcat) available locally at localhost:1234
  3. A VisualSVN Server instance (over Apache) available locally at localhost:5678/svn

I have set up an A record for and the following CNAME records:


I would like to configure Tomcat and Apache such that:

  • if I point my browser at, I end up at the JetBrains TeamCity instance and,
  • if I point my browser at, I end up at the VisualSVN Server instance.

I thought I could configure the Apache to vhost to point to and added the following lines to the Apache httpd.conf file

Listen 5678

NameVirtualHost *:5678

<VistualHost *:5678>
  DocumentRoot /svn

That broke the VisualSVN instance, so I had to revert that to

Listen 5678


share|improve this question
typo alert: you have <VistualHost *:5678> with an s instead of an r. –  ramruma Mar 25 '12 at 7:05

1 Answer 1

You can use the apache server as a proxy, blindly forwarding the requests to the sites. To configure the apache server to act as a proxy, you need something like this in the config file:

LoadModule proxy_module modules/
LoadModule proxy_http_module modules/

<Proxy *>
    Order deny,allow
    Allow from


    ProxyPass        / http://localhost:5678/svn/
    ProxyPassReverse / http://localhost:5678/svn/
share|improve this answer

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.