Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- #listen 80;
- server_name dev.enterlocal.com;
- root /Users/ororimac/Site/enter;
- error_log /usr/local/etc/nginx/logs/enter.error.log;
- access_log /usr/local/etc/nginx/logs/enter.access.log;
- location / {
- #root /Users/ororimac/Site/enter;
- #try_files $uri $uri/ /index.php?$args ;
- #index index.php;
- try_files $uri @opencart;
- }
- location @opencart {
- rewrite ^/(.+)$ /index.php?_route_=$1 last;
- }
- location /admin {
- index index.php;
- }
- rewrite ^/sitemap.xml$ /index.php?route=feed/google_sitemap last;
- rewrite ^/googlebase.xml$ /index.php?route=feed/google_base last;
- rewrite ^/download/(.*) /index.php?route=error/not_found last;
- # configure *.PHP requests
- location ~ \.php$ {
- #root /Users/ororimac/Site;
- try_files $uri $uri/ /index.php?$args ;
- index index.html index.htm index.php;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_intercept_errors on;
- include fastcgi_params;
- }
- }
Add Comment
Please, Sign In to add comment