Skip to content

Instantly share code, notes, and snippets.

@RafikFarhad
Last active September 3, 2019 16:10
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 RafikFarhad/0ca156ae46e9e9e370258d78a80b4892 to your computer and use it in GitHub Desktop.
Save RafikFarhad/0ca156ae46e9e9e370258d78a80b4892 to your computer and use it in GitHub Desktop.
server {
listen 50;
listen localhost:50;
server_name _;
root /var/www/pmad;
index index.php index.html index.htm;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}
location ~* (.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
expires 2M;
access_log off;
add_header Cache-Control "public";
}
location ~* \.(?:css|js|ttf|woff|woff2)$ {
expires 2M;
access_log off;
add_header Cache-Control "public";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment