servers:bsd:nginx:custom:403_forbidden
This is an old revision of the document!
Table of Contents
Information
- 403 Forbidden page
WIP
Prerequisites
index.html
su -
mkdir -p '/usr/local/www/http-custom' && chown -R 'www':'www' '/usr/local/www/http-custom'
su -m 'www' -c "ee '/usr/local/www/http-custom/403.html'"
<!DOCTYPE html> <html> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Realm of Espionage</title> </head> <body> Test </body> </html> <!--End-->
nginx Configuration
Server Block
su -
ee '/usr/local/etc/freenginx/vhosts.d/main-custom.conf' && service 'nginx' reload
server {
listen '443' 'ssl';
http2 'on';
server_name 'realmofespionage.xyz';
root '/usr/local/www/http-custom';
index '403.html';
include '/usr/local/etc/freenginx/default.d/headers.conf';
}
# End
/srv/www/wiki/data/attic/servers/bsd/nginx/custom/403_forbidden.1783438366.txt.gz ยท Last modified: by Sean Rhone
