I am trying to tunnel a clients site in my sites directory using "ngrok http -host-header = client1.dev 80", I get 404 when accessing the url. After some experimentation, if I put the index.html file in my home directory, it will display that file. You do not know why the file in the home directory works, but the files in the site directory do not. I must have something missing here. Any ideas?
Directory structure
:
www |home |sites | client1 | client2 ...
vhost.conf:
<Directory "/www"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> <Virtualhost *:80> VirtualDocumentRoot "/Users/myname/www/home/wwwroot" ServerName home.dev UseCanonicalName Off </Virtualhost> <Virtualhost *:80> VirtualDocumentRoot "/Users/myname/www/sites/%1/wwwroot" ServerName sites.dev ServerAlias *.dev UseCanonicalName Off </Virtualhost>
source share