【发布时间】:2014-10-30 06:56:56
【问题描述】:
我想转换这个 .htaccess 文件:
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
进入 nginx.conf 文件。到目前为止,我的 nginx.conf 文件如下所示:
server {
listen 80;
server_name _;
root /var/www/app;
index index.php;
location / {
try_files $uri /index.php;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:8080;
fastcgi_index index.php;
include fastcgi_params;
}
}
我收到 502 bad gateway 错误。
【问题讨论】:
标签: .htaccess nginx url-routing