User Tools

Site Tools


servers:bsd:nginx:custom:403_forbidden

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
servers:bsd:nginx:custom:403_forbidden [2026/07/07 11:41] Sean Rhoneservers:bsd:nginx:custom:403_forbidden [2026/07/07 11:44] (current) – removed Sean Rhone
Line 1: Line 1:
-====== Information ====== 
- 
-  * 403 Forbidden page 
-  * [[information:realm_of_espionage|Realm of Espionage]] 
- 
-  * :!: WIP 
- 
-===== Prerequisites ===== 
- 
-  * [[bsd:server:arm:freebsd_16.0|FreeBSD 16.0]] 
-  * [[servers:bsd:freenginx_php_php-fpm|freenginx]] 
-  * [[servers:bsd:nginx:lets_encrypt|Certbot (Let's Encrypt)]] 
- 
-====== 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'" 
- 
-<code> 
-<!DOCTYPE html> 
-<html> 
-<meta name="viewport" content="width=device-width, initial-scale=1" /> 
-<title>Realm of Espionage</title> 
-</head> 
-<body> 
-Test 
-</body> 
-</html> 
-<!--End--></code> 
- 
-====== nginx Configuration ====== 
- 
-===== Server Block ===== 
- 
-  su - 
- 
-  ee '/usr/local/etc/freenginx/vhosts.d/403-custom.conf' && service 'nginx' reload 
- 
-<code> 
-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</code> 
  

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