Adding server configuration
This commit is contained in:
parent
6910d9aaad
commit
02e1763715
3
jnf.me.conf
Normal file
3
jnf.me.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
location / {
|
||||||
|
return 301 https://www.jnf.me$request_uri;
|
||||||
|
}
|
25
jnf.me.sconf
Normal file
25
jnf.me.sconf
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
if ($host != www.jnf.me) {
|
||||||
|
return 301 https://www.jnf.me$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
try files $uri /index.html
|
||||||
|
}
|
||||||
|
|
||||||
|
location /lucy {
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
try files $uri /lucy.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
if (!-f $document_root$fastcgi_script_name) {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
|
fastcgi_pass unix:/run/php/php7.4-fpm-ptools.jaywll.co.sock;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include /etc/nginx/fastcgi_params;
|
||||||
|
include /home/jason/conf/web/ptools.jaywll.co/nginx.fastcgi_cache.conf*;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user