【发布时间】:2016-04-11 07:16:48
【问题描述】:
我已经尝试安装和重新安装并尝试了几十种可能的解决方案,但都没有奏效。
我将 Laravel 4.2 安装到 /var/www/project。
然后我创建了一个新的虚拟主机:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/project/public
<Directory /var/www/project/public>
# Don't show directory index
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
并通过以下方式启用它:
sudo a2ensite project.conf
然后重新启动 apache2。但是,当我转到我的域时,我得到的只是 404:
Not Found
The requested URL / was not found on this server.
我做错了什么?
【问题讨论】:
-
试试 /index.php 能行吗?
-
@Artisan72 不,仍然得到 404。