servers:linux:nginx:dokuwiki
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| servers:linux:nginx:dokuwiki [2026/04/30 23:20] – [PHP-FPM Socket] Sean Rhone | servers:linux:nginx:dokuwiki [2026/07/10 20:54] (current) – [Server Block] Sean Rhone | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| - | * [[linux: | + | * [[linux: |
| * [[servers: | * [[servers: | ||
| * [[servers: | * [[servers: | ||
| Line 17: | Line 17: | ||
| * https:// | * https:// | ||
| - | sudo zypper install php8-bz2 php8-gd php8-intl php8-mbstring php8-sodium php8-zlib | + | sudo zypper install php8-bz2 php8-gd php8-intl php8-mbstring |
| ====== Download Source ====== | ====== Download Source ====== | ||
| Line 45: | Line 45: | ||
| pm.process_idle_timeout = " | pm.process_idle_timeout = " | ||
| - | php_value[log_errors] = "Off" | + | php_value[log_errors] = "0" |
| php_value[error_reporting] = " | php_value[error_reporting] = " | ||
| - | php_value[display_errors] = "Off" | + | php_value[display_errors] = "0" |
| - | php_value[display_startup_errors] = "Off" | + | php_value[display_startup_errors] = "0" |
| - | php_value[html_errors] = "Off" | + | php_value[html_errors] = "0" |
| php_value[session.save_path] = "/ | php_value[session.save_path] = "/ | ||
| Line 61: | Line 61: | ||
| < | < | ||
| - | location ' | + | location ' |
| - | fastcgi_split_path_info ' | + | |
| - | fastcgi_intercept_errors ' | + | |
| - | fastcgi_index ' | + | |
| - | include ' | + | |
| - | fastcgi_param ' | + | |
| - | fastcgi_param ' | + | |
| - | fastcgi_param ' | + | |
| - | fastcgi_pass ' | + | |
| - | } | + | } |
| + | |||
| + | # End</ | ||
| + | |||
| + | ===== Deny Directives ===== | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | sudo -e '/ | ||
| + | |||
| + | < | ||
| + | # Web Access Security | ||
| + | location = '/ | ||
| + | deny ' | ||
| + | } | ||
| + | |||
| + | location ' | ||
| + | deny ' | ||
| + | } | ||
| + | |||
| + | location ' | ||
| + | | ||
| + | } | ||
| # End</ | # End</ | ||
| Line 88: | Line 110: | ||
| | | ||
| | | ||
| - | + | # include | |
| - | | + | |
| | | ||
| Line 95: | Line 116: | ||
| # access_log '/ | # access_log '/ | ||
| # error_log '/ | # error_log '/ | ||
| - | |||
| - | # location = '/ | ||
| - | # deny ' | ||
| - | # } | ||
| - | |||
| - | # location ' | ||
| - | # deny ' | ||
| - | # } | ||
| - | |||
| - | # location ' | ||
| - | # internal; | ||
| - | # } | ||
| | | ||
| Line 134: | Line 143: | ||
| * The width of the full site: '' | * The width of the full site: '' | ||
| - | ===== nginx Server Block Deny Directives | + | ===== nginx Deny Directive |
| - | * Uncomment | + | * Uncomment |
| * Do after initial setup | * Do after initial setup | ||
| Line 281: | Line 290: | ||
| ===== Files ===== | ===== Files ===== | ||
| - | |||
| - | **** | ||
| sudo tar -czf ~/' | sudo tar -czf ~/' | ||
| ===== scp ===== | ===== scp ===== | ||
| - | |||
| - | **** | ||
| scp espionage724@192.168.1.152: | scp espionage724@192.168.1.152: | ||
| Line 295: | Line 300: | ||
| ===== scp ===== | ===== scp ===== | ||
| - | |||
| - | **** | ||
| scp ~/' | scp ~/' | ||
| ===== Stop nginx ===== | ===== Stop nginx ===== | ||
| - | |||
| - | **** | ||
| sudo systemctl stop ' | sudo systemctl stop ' | ||
| ===== Remove Existing Files ===== | ===== Remove Existing Files ===== | ||
| - | |||
| - | **** | ||
| ls ~/' | ls ~/' | ||
| ===== Restore Files ===== | ===== Restore Files ===== | ||
| - | |||
| - | **** | ||
| sudo tar -xzf ~/' | sudo tar -xzf ~/' | ||
| Line 355: | Line 352: | ||
| ===== Start nginx ===== | ===== Start nginx ===== | ||
| - | |||
| - | **** | ||
| sudo systemctl start ' | sudo systemctl start ' | ||
| ===== Clean-up ===== | ===== Clean-up ===== | ||
| - | |||
| - | **** | ||
| rm -fv ~/' | rm -fv ~/' | ||
| Line 368: | Line 361: | ||
| ====== TODOs ====== | ====== TODOs ====== | ||
| - | | + | ===== Find Orphaned Pages ===== |
| - | | + | |
| + | | ||
| + | |||
| + | sudo su ' | ||
| + | |||
| + | cd '/ | ||
| + | |||
| + | | ||
| + | |||
| + | exit | ||
/usr/local/www/wiki/data/attic/servers/linux/nginx/dokuwiki.1777605603.txt.gz · Last modified: by Sean Rhone
