0
我通過在應用程序目錄中「推送」一個nginx.conf文件來使auth工作,所以我知道該文件有效,但/ app不會觸發/app/php.index。我無法使用php在我的vista筆記本電腦上運行nginx,但我無法編輯dotCloud實例中的/etc/nginx/nginx.conf,因爲dotCloud通過不給根目錄而使生活變得困難。dotCloud nginx.conf:如何讓「index index.php」指令起作用?
(請注意,.htpasswd是相對於ngnix.conf文件位置,很好)。
server {
location/{
index index.php;
}
location /admin {
auth_basic "enter password";
auth_basic_user_file .htpasswd;
index index.php;
}
}