Last active
September 3, 2019 16:10
-
-
Save RafikFarhad/0ca156ae46e9e9e370258d78a80b4892 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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