| 12345678910111213141516171819202122232425262728293031 |
- # Default server definition
- server {
- listen 80;
- server_name _;
- root /var/www/html;
- index index.php index.html index.htm;
- location / {
- try_files $uri $uri/ /index.php?$args;
- }
- location ~ \.css {
- add_header Content-Type text/css;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico|woff|woff2|ttf|svg|otf|eot)$ {
- try_files $uri =404;
- expires 30d;
- add_header Cache-Control "public, no-transform";
- }
- location ~ \.php$ {
- include fastcgi_params;
- fastcgi_pass unix:/var/run/php-fpm.sock;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_script_name;
- }
- location ~ /\.ht {
- deny all;
- }
- }
|