I am running Ubuntu Gnome 14.04, I apt-get installed apache2, php and mysql. From there, localhost
was working fine, running from the /var/www/html/
directory.
I created a new file, /etc/apache2/sites-available/laravel.example.conf
, and mimicked the 000-default.conf
file that already existed in that folder:
<VirtualHost *:80>
ServerName laravel.example
ServerAlias www.laravel.example
ServerAdmin [email protected]
DocumentRoot /var/www/sites/laravel.example
ErrorLog ${APACHE_LOG_DIR}/laravel.example_error.log
CustomLog ${APACHE_LOG_DIR}/laravel.example_access.log combined
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
I created the folder at /var/www/sites/laravel.example
, added in 127.0.0.1 laravel.example
to /etc/hosts
, ran a2ensite laravel.example.conf
, restarted apache, but still just get Web page not available when I try load it. Any ideas?
http://laravel.example/
in your web browser?