servers:linux:nginx:custom:test_page
Table of Contents
Information
Prerequisites
index.html
sudo mkdir -p '/srv/www/test-custom' && sudo -e '/srv/www/test-custom/index.html' && sudo chown -R 'wwwrun':'www' '/srv/www/test-custom' && sudo chmod -R '0755' '/srv/www/test-custom'
<!DOCTYPE html> <html> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>RoE | Test</title> </head> <body> If you can read this, cool! </body> </html> <!--End-->
nginx Configuration
Server Block
sudo -e '/etc/nginx/vhosts.d/test-custom.conf' && sudo systemctl reload 'nginx'
server {
listen '443' 'ssl';
http2 'on';
server_name 'test.realmofespionage.xyz';
root '/srv/www/test-custom';
index 'index.html';
include '/etc/nginx/default.d/headers.conf';
}
# End
/srv/www/wiki/data/pages/servers/linux/nginx/custom/test_page.txt · Last modified: by Sean Rhone
