【发布时间】:2019-04-25 03:15:44
【问题描述】:
ubuntu 16.04 中的 Laravel 项目,并按照上述步骤创建虚拟主机,但即使在不同端口上提供服务或不提供服务也无法正常工作。
我的系统是启用了模式重写的 ubuntu 16.04,并且在 apache2.conf 中允许在以下位置覆盖所有内容: /var/www/html/study/论坛
下面是我的项目配置文件:
<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>
下面是我的 /etc/hosts 文件:
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
【问题讨论】:
标签: laravel ubuntu-16.04 hosting installation-package