mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-02-01 15:23:03 +00:00
修改nginx.conf
This commit is contained in:
parent
1b40fbddb5
commit
325b9213fd
@ -4,14 +4,14 @@ server {
|
||||
index index.js index.html index.htm;
|
||||
root /Users/welefen/Develop/git/meinv.ueapp.com/www;
|
||||
|
||||
if (-f $request_filename/index.html){
|
||||
if ( -f $request_filename/index.html ){
|
||||
rewrite (.*) $1/index.html break;
|
||||
}
|
||||
if (!-f $request_filename){
|
||||
if ( !-f $request_filename ){
|
||||
rewrite (.*) /index.js;
|
||||
}
|
||||
location = /index.js {
|
||||
proxy_http_version 1.1;
|
||||
#proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user