Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name example.com; // This is normally the right url
- index index.php;
- root '/home/forge/default/testapp/public';
- try_files $uri $uri/ @rewrite;
- location @rewrite {
- rewrite ^/(.*)$ /index.php?_url=/$1;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_index index.php;
- include /etc/nginx/fastcgi_params;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_pat$
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_scr$
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- }
- error_log /var/log/nginx/default.log;
- }
- user = www-data
- group = www-data
- listen = /var/run/php5-fpm.sock
- listen.owner = www-data
- listen.group = www-data
- listen.mode = 0660
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement