0
我正在使用windows和使用Winginx,修改conf文件夾下的nginx.conf文件。卡在nginx位置指令
server{
listen 127.0.0.1:80;
log_not_found off;
charset utf-8;
access_log logs/access.log main;
location /images/ {
root home/localhost/public_html;
index index.php index.html;
}
}
的圖片文件夾下的主文件夾中winginx並添加爲通過hostseditor域:我如下已經改變了服務器塊偵聽端口。但是,當我使用URL 時,出現404錯誤。
如果位置指令更改爲:
location/{
}
一切正常即可。除非我匹配'/',否則任何正則表達式都不起作用。我已閱讀位置指令,但找不到任何相關的原因。如果有人能指出錯誤,會有很大的幫助。謝謝。