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

I am setting up apache on my windows 2008 server at my home. It will serve 2 functions.

  1. Subversion hosting to allow me and some others to manage company documents with version control
  2. Local website hosting for web development. Will need to run several websites since I generally work on more then one site at a time.

Heres what I have done so far.

  • I set up subversion and apache 2.2 using some walk troughs.
  • I changed the default port to 1337. (im a nerd)
  • Using I created a domain to forward to my home ip which is dynamic. (
  • I then went into my DNS for my and added a record to point to
  • At this point people who need access to my file repository can access by going to which is good so far.

My question comes on the next step, setting up virtual hosts with apache. Ideally I would like to have my local website be viewable by some others in the company from their homes. So, say I am working on site1, I would like to have them be able to view this by going At the same time, I would like to have go to his local setup for site10.

What I have done for this:

  • I went into my DNS for and added a record to point to (which translates to my ip).
  • I added code to my httpd-vhosts.conf (listed at bottom)
  • I added code to my host file (listed at bottom)

Hah, so of course this doenst work as excepted.. going to doesnt bring up my test1 site. Could anyone point me where I may be going wrong? Thanks!

hosts:       localhost
::1             localhost


<VirtualHost *:80>
    DocumentRoot "F:/Current Projects/"
    ErrorLog "logs/"
    CustomLog "logs/" common
share|improve this question

closed as off topic by MDMarra, sysadmin1138 Nov 15 '12 at 12:38

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

+1 - I wish everyone gave this much relevant detail in their questions – Mark Henderson Mar 30 '10 at 21:06
Home-server setup is now off-topic per the FAQ. – sysadmin1138 Nov 15 '12 at 12:38

2 Answers 2

I am in no way an expert in this but in my vhosts.conf (on windows) the path to documentroot looks a bit different;

<VirtualHost *:80>  
    DocumentRoot /HOMEPAGES/  
    ErrorLog logs/  
    CustomLog logs/ common  

then in the httpd.conf the following line is added/modified:
DocumentRoot "W:/HOMEPAGES"

share|improve this answer

I went into my DNS for and added a record to point to (which translates to my ip).

You've got that mostly right. If you want to be forwarded, you need to add a wildcard DNS entry, for * - otherwise, ONLY will resolve.

share|improve this answer

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