-1
我有這個網址:http://example.com/resources/app/app.css如何重寫url以匹配根目錄?
和文件是在我的文件系統:/home/neuquino/www/app/app.css
所以,我想有這樣的事情:
location /resources(.*) {
root /home/neuquino/www;
}
如何使這個重寫在Nginx上工作?
注意:創建/ home/neuquino/www/resources目錄不是我的選擇。
http://nginx.org/r/alias –