windows:servers:nginx:grav
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
windows:servers:nginx:grav [2024/06/29 15:40] – Sean Rhone | windows:servers:nginx:grav [2024/08/13 18:42] (current) – removed Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Information ====== | ||
- | |||
- | * Grav ((https:// | ||
- | * develop ((https:// | ||
- | * [[Information: | ||
- | * https:// | ||
- | |||
- | ===== Prerequisites ===== | ||
- | |||
- | * [[windows: | ||
- | * [[windows; | ||
- | * [[windows; | ||
- | |||
- | ===== Notes ===== | ||
- | |||
- | * 2024/06/29: Grav is // | ||
- | |||
- | ====== Dependencies ====== | ||
- | |||
- | * https:// | ||
- | |||
- | ===== Git ===== | ||
- | |||
- | * https:// | ||
- | * Last tested: '' | ||
- | |||
- | * Git from the command line and also from 3rd-party software | ||
- | |||
- | ===== Composer ===== | ||
- | |||
- | * https:// | ||
- | * Last tested version: '' | ||
- | |||
- | ====== Download Source ====== | ||
- | |||
- | git clone --branch " | ||
- | |||
- | explorer " | ||
- | |||
- | ====== Environment ====== | ||
- | |||
- | ===== PHP ===== | ||
- | |||
- | notepad++ " | ||
- | |||
- | < | ||
- | [PHP] | ||
- | extension_dir = " | ||
- | extension=" | ||
- | extension=" | ||
- | extension=" | ||
- | extension=" | ||
- | extension=" | ||
- | |||
- | [Date] | ||
- | date.timezone = " | ||
- | |||
- | ===== Composer ===== | ||
- | |||
- | **** | ||
- | |||
- | CD " | ||
- | |||
- | ===== Grav CLI ===== | ||
- | |||
- | **** | ||
- | |||
- | CD " | ||
- | |||
- | ====== nginx + PHP-CGI Configuration ====== | ||
- | |||
- | ===== PHP-CGI ===== | ||
- | |||
- | * https:// | ||
- | |||
- | notepad++ " | ||
- | |||
- | < | ||
- | # PHP-CGI | ||
- | location ~ \.php$ { | ||
- | fastcgi_pass 127.0.0.1: | ||
- | fastcgi_split_path_info ^(.+\.php)(/ | ||
- | fastcgi_index index.php; | ||
- | include fastcgi_params; | ||
- | fastcgi_param SCRIPT_FILENAME $document_root/ | ||
- | fastcgi_intercept_errors on; | ||
- | fastcgi_param PATH_INFO $fastcgi_path_info; | ||
- | fastcgi_param HTTPS on; | ||
- | }</ | ||
- | |||
- | ==== Process ==== | ||
- | |||
- | ===== Server Block ===== | ||
- | |||
- | notepad++ " | ||
- | |||
- | < | ||
- | server { | ||
- | listen " | ||
- | http2 " | ||
- | server_name " | ||
- | root " | ||
- | index " | ||
- | |||
- | include C:/ | ||
- | include C:/ | ||
- | |||
- | client_max_body_size " | ||
- | |||
- | # add_header Content-Security-Policy " | ||
- | |||
- | # access_log | ||
- | # error_log | ||
- | |||
- | location / { | ||
- | try_files $uri $uri/ / | ||
- | } | ||
- | |||
- | location ~* / | ||
- | location ~* / | ||
- | location ~* / | ||
- | location ~ / | ||
- | |||
- | }</ | ||
- | |||
- | " | ||
- | |||
- | ====== Initial Setup ====== | ||
- | |||
- | * https:// | ||
- | |||
- | ====== Pages ====== | ||
- | |||
- | ===== Home ===== | ||
- | |||
- | notepad++ " | ||
- | |||
- | < | ||
- | --- | ||
- | title: Home | ||
- | body_classes: | ||
- | --- | ||
- | |||
- | Welcome! At Realm of Espionage, I offer unique computer optimization services, and present my wealth of knowledge of self-hosting websites and services on my wiki, [RoE | Wiki](https:// | ||
- | |||
- | This website is an active work in-progress ([notes](https:// | ||
- | |||
- | ====== CSS ====== | ||
- | |||
- | notepad++ " | ||
- | |||
- | < | ||
- | /* Link Color */ | ||
- | body a { | ||
- | color: #3D8BFF; | ||
- | } | ||
- | |||
- | /* Header */ | ||
- | /* Blue background */ | ||
- | #header { | ||
- | background: # | ||
- | } | ||
- | |||
- | /* Header */ | ||
- | /* White text (links) */ | ||
- | #header a { | ||
- | color: # | ||
- | } | ||
- | |||
- | /* Header */ | ||
- | /* Hide logo (desktop) */ | ||
- | #header .logo svg { | ||
- | visibility: hidden; | ||
- | } | ||
- | |||
- | /* Header */ | ||
- | /* Hide logo (mobile) */ | ||
- | .mobile-logo svg { | ||
- | visibility: hidden; | ||
- | } | ||
- | |||
- | /* Footer */ | ||
- | /* Dark-gray background */ | ||
- | .bg-gray { | ||
- | background: # | ||
- | } | ||
- | |||
- | /* End */</ | ||
- | |||
- | ====== Batch Files ====== | ||
- | |||
- | ===== PHP-CGI ===== | ||
- | |||
- | notepad++ " | ||
- | |||
- | < | ||
- | CD " | ||
- | |||
- | SET PHP_FCGI_MAX_REQUESTS=" | ||
- | SET PHP_FCGI_CHILDREN=" | ||
- | |||
- | START "Main PHP-CGI" | ||
- | |||
- | :: End</ | ||
- | |||
- | " | ||
C:/www/wiki/data/attic/windows/servers/nginx/grav.1719690038.txt.gz · Last modified: by Sean Rhone