Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- root /var/www/geekube;
- index index.php index.html index.htm;
- server_name geekube.com www.geekube.com;
- location / {
- try_files $uri $uri/ /index.php?q=$uri&$args;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- }
- location = /favicon.ico {
- log_not_found off;
- access_log off;
- }
- location = /robots.txt {
- allow all;
- log_not_found off;
- access_log off;
- }
- location ~ /\. {
- deny all;
- }
- location ~* /(?:uploads|files)/.*\.php$ {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement