Skip to content

Instantly share code, notes, and snippets.

@catharsis96
Created April 17, 2021 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save catharsis96/71235de611eccd312e8d1c1532d6c7f4 to your computer and use it in GitHub Desktop.
Save catharsis96/71235de611eccd312e8d1c1532d6c7f4 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name pek http://129.159.246.200/;
root /var/www/pek;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment