4
當我訪問127.0.0.1:6789它工作正常,但是當我嘗試訪問像127.0.0.1:6789/busca.html?q=a這樣的東西時,我得到500內部服務器錯誤nginx 500內部服務器錯誤
這是我的nginx的配置文件
server {
listen 88;
root /vagrant/rizqcursosonline/rizqcursosonline/frontend/wwwpublic;
index index.php index.html index.htm;
server_name example.com;
location/{
try_files $uri $uri/ /index.html;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /vagrant/rizqcursosonline/rizqcursosonline/frontend/wwwpublic/;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
nginx的日誌錯誤
2014/04/12 18:16:32 [error] 4165#0: *5 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 10.0.2.2, server: example.com, request: "GET /busca.html?q=a HTTP/1.1", host: "127.0.0.1:6789", referrer: "http://127.0.0.1:6789/"
2014年4月12日18時16分32秒[錯誤] 4165#0:* 7重寫或內部重定向循環而內部重定向到「/index.html」,客戶端:10。 0.2.2,服務器:example.com,請求: 「GET /favicon.ico HTTP/1.1」,主機: 「127.0.0.1:6789」
你怎麼聽港口88,但訪問您的網站在港口6789? –