2017-02-18 10 views

答えて

1

強制することがあなたと一緒に:私は別のウェブサイトを持っている場合、それは競合が

location/{ 
      proxy_pass http://127.0.0.1:10000; 
      proxy_set_header Host $host; 
      proxy_set_header X-Real-IP $remote_addr; 
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
      proxy_set_header X-Forwarded-Proto $scheme; 
    } 

location ~ ^/(images/|img/|javascript/|js/|css/|stylesheets/|flash/|media/|static/|robots.txt|humans.txt|favicon.ico) { 
     root /root/of/your/public/assets; 
     access_log off; 
     expires max; 
    } 
+0

ではありません? –

+0

サーバーブロックを作成し、サーバーブロック構成内に配置するだけです。 – regex

関連する問題