apache - MAMP Apache2 new vhost 404 error

I'm trying to set up a new vhost like i did several times before. Im using a mac and mamp and usually configure like this:

/Applications/MAMP/conf/apache/extra/httpd-vhosts.conf i enter:

<VirtualHost *:80>
    DocumentRoot "/Users/riggi/PhpstormProjects/LaufschuhSilex/web“
    ServerName laufschuh.local

in /etc/hosts i enter:       laufschuh.local

then I restart apache. This usually works and still works for many (>20) other local websites. Only the 2 new sites I'm trying to add wont work and return 404.

Any hints on where to look?

1 Answer

  1. Denny- Reply


    I believe this is a quotation mark formatting issue. Look how the close quote at the end of your DocumentRoot is formatted differently from the opening quote. To make sure the formatting is correct just copy the correct quotation mark (the opening quotation mark) and paste over the closing mark. This is something that can happen when text is copy-pasted from one place to another.

Leave a Reply

Your email address will not be published. Required fields are marked *

You can use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>