windows:servers:nginx:grav
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| windows:servers:nginx:grav [2024/06/29 17:05] – external edit 127.0.0.1 | windows:servers:nginx:grav [2024/08/13 18:42] (current) – removed Sean Rhone | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Information ====== | ||
| - | |||
| - | * Grav ((https:// | ||
| - | * develop ((https:// | ||
| - | * [[Information: | ||
| - | * https:// | ||
| - | |||
| - | ===== Screenshots ===== | ||
| - | |||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | |||
| - | ===== Notes ===== | ||
| - | |||
| - | * 2024/06/29: Grav is // | ||
| - | |||
| - | ===== Prerequisites ===== | ||
| - | |||
| - | * [[windows: | ||
| - | * [[windows; | ||
| - | * [[windows; | ||
| - | |||
| - | ====== 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 ===== | ||
| - | |||
| - | * :?: This expects '' | ||
| - | |||
| - | CD " | ||
| - | |||
| - | ===== Grav CLI ===== | ||
| - | |||
| - | * :?: This expects '' | ||
| - | |||
| - | 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; | ||
| - | }</ | ||
| - | |||
| - | ===== 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 ===== | ||
| - | |||
| - | * This is using a sort-of hard-coded path for PHP instead of assuming it's in PATH | ||
| - | |||
| - | notepad++ " | ||
| - | |||
| - | < | ||
| - | CD " | ||
| - | |||
| - | SET PHP_FCGI_MAX_REQUESTS=" | ||
| - | SET PHP_FCGI_CHILDREN=" | ||
| - | |||
| - | START "Main PHP-CGI" | ||
| - | |||
| - | :: End</ | ||
| - | |||
| - | " | ||
/srv/www/wiki/data/attic/windows/servers/nginx/grav.1719695154.txt.gz · Last modified: by 127.0.0.1
