Laravel project in ubuntu 16.04 and with steps to create virtual host as mentioned but not working even serving on different port or without serve.
My system is ubuntu 16.04 with mode rewrite enabled and in apache2.conf allow override all at below location : /var/www/html/study/forum
Below is my project conf file :
<VirtualHost *:80>
ServerAdmin dipaks_id@yahoo.co.in
ServerName www.forum.dev
DocumentRoot /var/www/html/study/forum/public
<Directory /var/www/html/study/forum/public/>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
<FilesMatch \.php$>
# Change this "proxy:unix:/path/to/fpm.socket"
# if using a Unix socket
#SetHandler "proxy:fcgi://127.0.0.1:9000"
</FilesMatch>
</Directory>
ErrorLog ${APACHE_LOG_DIR}/myapp.com-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/myapp.com-access.log combined
</VirtualHost>
Below is my /etc/hosts file :
127.0.0.1 localhost
127.0.1.1 dipak-Inspiron-560s
127.0.1.1 www.forum.dev
192.168.0.7 www.forum.dev
Do you own the forum.dev
domain?
The .dev
domain is no longer able can be used in develop environment. Try using .local
or other domains.