I'm working on a website and have WAMP setup for local testing. Usually I set up virtual hosts using httpd-vhosts + the hosts file without a hitch. All of a sudden, my virtual hosts are no longer working. I know that it's pointing to Apache because I get a '403 Forbidden' error, but that's about it. All of my previously working virtual hosts no longer work as well. Anybody know what's going on?

httpd-vhosts.conf

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "C:\Documents and Settings\kevin\Desktop\websites\fusion"
ServerName fusion
ErrorLog "logs/your_own-error.log"
CustomLog "logs/your_own-access.log" common
<directory "C:\Documents and Settings\kevin\Desktop\websites\fusion">
    Options Indexes FollowSymLinks
    AllowOverride all
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</directory>

hosts file:

127.0.0.1 fusion

And yes, I am including the virtual hosts file in my httpd.conf file:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf
link|improve this question
please post what your error_log says about the 403 – Mike Jan 17 '11 at 22:15
Thanks for your willingness to help. Both myself and my back-end programmer/server admin were a bit stumped, so I just decided to do it the windows way and reinstall (there was a new version of WAMP anyways), and wa-lah, all's fine now. – Kevin C. Jan 18 '11 at 19:06
feedback

2 Answers

The hostname in your hosts file should match your ServerName directive

ServerName ebrochures

127.0.0.1 fusion
link|improve this answer
Whoops, you're right about that, but I had caught that typo and fixed it shortly after posting the question, and it didn't fix anything. – Kevin C. Jan 18 '11 at 18:30
feedback

Try changing the \s to /s especially the DocumentRoot - I can break wamp by reversing this.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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