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

My local Apache service is running perfectly fine. I am running WAMP.

I am trying to configure my .httpd file so that I can access specific projects as fully qualified domain names like: ( but resolves to something like localhost/myfoldername/).

I was able to get it working with a different port number like:


And localhost:80 is my root web dir.

Here is my current .httpd config:

listening: 80 (defined higher in the .httpd)

.... below was added to my .httpd





DocumentRoot "C:\wamp\www\symfony\jobeet\web"
  DirectoryIndex index.php
  <Directory "C:\wamp\www\symfony\jobeet\web">
    AllowOverride All
    Allow from All

  Alias /sf C:\wamp\www\symfony\jobeet\lib\vendor\symfony-1.4.8\data\web\sf
  <Directory "C:\wamp\www\symfony\jobeet\lib\vendor\symfony-1.4.8\data\web\sf">
    AllowOverride All
    Allow from All

And here is my Windows host file config:       localhost

If anyone has any ideas, please tell me! I've been on this for over 8 hours : ( thx.

share|improve this question
What is wrong?... ping netstat -n? open in boruser? – alvosu Jan 29 '11 at 20:01

1 Answer 1

up vote 1 down vote accepted

A hosts file only supports translations of IP addresses to names, so the :8080 is totally unnessesary.

Additionally, because the hosts file is not actually DNS at all, you don't enter any search suffixes, so you should only enter the entire domain name. SO dump the .localhost from it as well. It should read:       localhost

Of course, then you will lose all access to the REAL, but you can't have it both ways.

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.