filmov
tv
Custom 404 error page in nginx
Показать описание
Custom error page in nginx
1. /usr/share/nginx/html
3. Add content of your html file
4. sudo vim /etc/nginx/sites-enabled/default
5. add error handling code:
root /usr/share/nginx/html;
internal;
}
7. nginx -t
8. sudo service nginx restart
Voilà ! xx
1. /usr/share/nginx/html
3. Add content of your html file
4. sudo vim /etc/nginx/sites-enabled/default
5. add error handling code:
root /usr/share/nginx/html;
internal;
}
7. nginx -t
8. sudo service nginx restart
Voilà ! xx
Комментарии