Php Laravel生产服务器
尝试将我的laravel应用程序放在生产服务器上时出错。我已在服务器上启用mod_rewrite,并更改了应用程序/存储的权限 “异常处理程序中出错” 这是我的.htaccess文件Php Laravel生产服务器,php,apache,.htaccess,mod-rewrite,laravel,Php,Apache,.htaccess,Mod Rewrite,Laravel,尝试将我的laravel应用程序放在生产服务器上时出错。我已在服务器上启用mod_rewrite,并更改了应用程序/存储的权限 “异常处理程序中出错” 这是我的.htaccess文件 <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase /escrow/ RewriteCond %{REQUEST_FILENAME} !-d RewriteC
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /escrow/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
选项-多视图
重新启动发动机
基础/代管/
重写cond%{REQUEST_FILENAME}-D
重写cond%{REQUEST_FILENAME}-F
重写规则^index.php[L]
这是我的虚拟主机文件:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/laravel/public/
<Directory />
Options FollowSymLinks
AllowOverride all
</Directory>
<Directory /var/www/laravel/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride all
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
服务器管理员webmaster@localhost
DocumentRoot/var/www/laravel/public/
选项如下符号链接
允许超越所有
选项索引跟随符号链接多视图
允许超越所有
命令允许,拒绝
通融
ScriptAlias/cgi-bin//usr/lib/cgi-bin/
允许超越所有
选项+执行CGI-多视图+符号链接所有者匹配
命令允许,拒绝
通融
ErrorLog${APACHE_LOG_DIR}/error.LOG
#可能的值包括:调试、信息、通知、警告、错误、临界值、,
#警惕,埃默格。
日志级别警告
CustomLog${APACHE\u LOG\u DIR}/access.LOG组合
试试这个
选项-多视图
重新启动发动机
#重定向尾部斜杠。。。
重写规则^(.*)/$/$1[L,R=301]
#处理前控制器。。。
重写cond%{REQUEST_FILENAME}-D
重写cond%{REQUEST_FILENAME}-F
重写规则^index.php[L]
可能在您的apache.conf中。这在我的apache.conf中工作
选项-索引+FollowSymLinks
允许超越所有
要求所有授权
我看到的不是前面的错误,而是“内部服务器错误服务器遇到内部错误或配置错误,无法完成您的请求。”嗯,这很奇怪。。您重新启动了apache服务吗?