nebukad

OpenCart.conf

Apr 15th, 2016
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.50 KB | None | 0 0
  1. server {
  2.         #listen       80;
  3.         server_name  dev.enterlocal.com;
  4.  
  5.         root /Users/ororimac/Site/enter;
  6.  
  7.         error_log       /usr/local/etc/nginx/logs/enter.error.log;
  8.         access_log      /usr/local/etc/nginx/logs/enter.access.log;
  9.  
  10.         location / {
  11.             #root  /Users/ororimac/Site/enter;
  12.             #try_files  $uri  $uri/  /index.php?$args ;
  13.             #index  index.php;
  14.             try_files $uri @opencart;
  15.         }
  16.  
  17.         location @opencart {
  18.             rewrite ^/(.+)$ /index.php?_route_=$1 last;
  19.         }
  20.  
  21.         location /admin {
  22.                 index index.php;
  23.         }
  24.  
  25.         rewrite ^/sitemap.xml$ /index.php?route=feed/google_sitemap last;
  26.         rewrite ^/googlebase.xml$ /index.php?route=feed/google_base last;
  27.         rewrite ^/download/(.*) /index.php?route=error/not_found last;
  28.  
  29.  
  30.         # configure *.PHP requests
  31.  
  32.         location ~ \.php$ {
  33.             #root  /Users/ororimac/Site;
  34.             try_files  $uri  $uri/  /index.php?$args ;
  35.             index  index.html index.htm index.php;
  36.             fastcgi_param PATH_INFO $fastcgi_path_info;
  37.             fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  38.             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  39.  
  40.             fastcgi_pass 127.0.0.1:9000;
  41.             fastcgi_index index.php;
  42.             fastcgi_split_path_info ^(.+\.php)(/.+)$;
  43.             fastcgi_intercept_errors on;
  44.             include fastcgi_params;
  45.         }
  46. }
Add Comment
Please, Sign In to add comment