User Tools

Site Tools


servers:bsd:nginx:custom:403_forbidden

This is an old revision of the document!


Information

  • :!: 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/403-custom.conf' && service 'nginx' reload
server {
 listen '443' 'ssl';
 http2 'on';
 server_name 'realmofespionage.xyz';
 root '/usr/local/www/http-custom';
 index '403.html';

 error_page '403' '/usr/local/www/http-custom/403.html;
 internal;

 include '/usr/local/etc/freenginx/default.d/headers.conf';
}

# End
/srv/www/wiki/data/attic/servers/bsd/nginx/custom/403_forbidden.1783438888.txt.gz ยท Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki