User Tools

Site Tools


servers:windows:nginx:custom:files

This is an old revision of the document!


Information

Prerequisites

Directory

MKDIR "%SystemDrive%\www\files"

freenginx Configuration

Server Block

notepad "%SystemDrive%\www\nginx\vhosts.d\files.conf"
server {
    listen "443" "ssl";
    http2 "on";
    server_name "files.realmofespionage.xyz";
    root "C:/www/files";
    index "index.html";

    include C:/www/nginx/default.d/headers.conf;

    add_header Content-Security-Policy "default-src 'self'" always;

#    access_log  logs/files-access.log;
#    error_log  logs/files-error.log;

}
"%SystemDrive%\www\scripts\freenginx\Reload.bat"

index.html

notepad "%SystemDrive%\www\files\index.html"
<a href=../>../</a>
<br>
<a href=https://www.startpage.com>StartPage</a>
<br>
<a href=URL1>NAME1</a>
<br>
<a href=URL2>NAME2</a>

Hidden

notepad "%SystemDrive%\www\files\index.html"
Zzz
/srv/www/wiki/data/attic/servers/windows/nginx/custom/files.1737257490.txt.gz · Last modified: by Sean Rhone