воскресенье, 1 сентября 2013 г.

Redirect from nginx /index.html to /

If you have not set index.html page on your app, you will see 404 error or, according to default nginx settings, this:


In our nginx configuration file use this code:
     location = /index.html {
        return 301 $scheme://$host;
      }
To read:
Nginx docs (location)

Комментариев нет:

Отправить комментарий