Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ArchStanton's avatar

Vagrant virtualhost only shows root folder

I have followed the "Get off mamp" tutorial.

https://laracasts.com/lessons/get-off-mamp-now

I have 2 sites in the sites-available folder

000-default.conf new.conf

and have setup my hosts file but when I navigate to new local I still see the root folder

<VirtualHost *:80>

    ServerName new.local

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/new
    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

      <Directory /var/www/newt>
            Options -Indexes +FollowSymLinks
            AllowOverride All
            Require all granted
    </Directory>

The site is enabled is there any reason it would default to the root folder like this ?

0 likes
0 replies

Please or to participate in this conversation.