Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upstream serverbackend {
- server unix:/var/run/php-fcgi-server.sock;
- }
- server {
- listen *:80 default;
- server_name dev-minecraft.local;
- root /home/server/public_html;
- location / {
- index index.html index.php;
- try_files $uri $uri/ @handler;
- expires 30d;
- }
- client_max_body_size 10M;
- location /. {
- return 404;
- }
- location @handler {
- rewrite / /index.php;
- }
- location ~ .php/ {
- rewrite ^(.*.php)/ $1 break;
- }
- location ~ .php$ {
- if (!-e $request_filename) { rewrite / /index.php break; }
- expires off;
- fastcgi_pass serverbackend;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement