0
我嘗試配置nginx與補品休息爲我的mac上的多個網站。 我的nginx在我的mac上作爲localhost運行。nginx conf用於補品與mac上的多個網站休息
我的根是/用戶/和Thorsten /站點
在根I HABE一些項目例如/ PROJECT1,/項目2
每個項目都有進補其餘文件夾/標準/休息...
在nginx.conf我嘗試
location /rest/ {
fastcgi_pass_header Authorization; # Pass the http authorization parameter to the PHP script
if (!-e $request_filename) {
rewrite ^/(.*)$ /rest/dispatch.php?/$1 last;
break;
}
}
沒有happend。 我是否需要每個項目的配置,或者我可以爲所有項目設置全局配置$項目/ REST/...?