mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
commit
4bd3d8f677
@ -1,21 +1,22 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
server_name stikked.domain.tld;
|
||||||
server_name stikked;
|
|
||||||
root /var/www/stikked/htdocs;
|
root /var/www/stikked/htdocs;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
# access_log /var/log/nginx/localhost.access_log combined;
|
# access_log /var/log/nginx/localhost.access_log combined;
|
||||||
# error_log /var/log/nginx/localhost.error_log info;
|
# error_log /var/log/nginx/localhost.error_log info;
|
||||||
|
|
||||||
if ($request_uri !~* ^/(static|favicon\.ico|robots\.txt))
|
location / {
|
||||||
{
|
try_files $uri /index.php;
|
||||||
rewrite ^/(.*)$ /index.php?/$1 last;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* \.php$ {
|
location ~ \.php$ {
|
||||||
|
return 444;
|
||||||
|
}
|
||||||
|
|
||||||
|
location = /index.php {
|
||||||
|
# fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
|
||||||
fastcgi_pass 127.0.0.1:9000;
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
fastcgi_index index.php;
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user