Everything went well, I've run laravel new
, /etc/apache2/sites-available/laravel.example.com.conf
:
<VirtualHost *:80>
ServerName laravel.example.com
DocumentRoot /var/www/blog/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/blog>
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Then
a2ensite laravel.example.com
And reloaded apache and add "127.0.0.1 laravel.example.com" >> /etc/hosts
Now when I go to http://laravel.example.com the source code of index.php is printed