【发布时间】:2015-11-28 10:59:39
【问题描述】:
我购买了 VPS 并在其上安装了 Laravel,主页运行正常,我得到副标题“Laravel 5”,但是当我在路由文件中创建测试页面时:
Route::get('/test', function() {
return 'test' ;
});
我明白了:
Not Found
The requested URL /test was not found on this server.
Apache/2.4.7 (Ubuntu) Server at plerp.net.pl Port 80`
我在 777 上 chmod 存储文件夹。
`
ServerName www.plerp.net.pl
DocumentRoot /var/www/laravel/public
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/laravel>
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
`
【问题讨论】:
-
您是否启用了
mod_rewrite模块?
标签: php webpage laravel-5.1 vps