Advertisement
Guest User

seo opencart for VPSSIM

a guest
Feb 1st, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. server {
  2. server_name www.anhba.com;
  3. rewrite ^(.*) http://anhba.com$1 permanent;
  4. }
  5. server {
  6. listen 80;
  7.  
  8. access_log off;
  9. error_log off;
  10. # error_log /home/anhba.com/logs/error.log;
  11. root /home/anhba.com/public_html;
  12. include /etc/nginx/conf/ddos2.conf;
  13. index index.php index.html index.htm;
  14. server_name anhba.com;
  15.  
  16. #///////////////////////////////////////////////////////
  17.  
  18. location / {
  19. try_files $uri @opencart;
  20. }
  21.  
  22. location @opencart {
  23. rewrite ^/(.+)$ /index.php?_route_=$1 last;
  24. }
  25.  
  26. location ~* (\.(tpl|ini))$ {
  27. deny all;
  28. }
  29. #Chay ta ca cac website. neu ban su dung rule cua ban, xoa dong duoi hoac comment (them dau # vao truoc) (AAA)
  30. #include /etc/nginx/conf/all.conf;
  31.  
  32. #Neu ban su dung rule cua minh, comment hoac xoa rule o tren. Sau do uncoment (bo dau # ba dong duoi) sau do them rule vao giua.
  33. #location / {
  34. #Uncomment 3 dong nay, sau do cho rule cua ban vao day!
  35. #}
  36.  
  37. # Rule cho wordpress + Plugin wp super cache. Neu ban su dung wordpress, uncomment dong duoi va comment hoac xoa dong AAA phia tren.
  38. #include /etc/nginx/conf/supercache.conf;
  39.  
  40. #Khong duoc xoa dong duoi neu khong chuc nang Quan ly Google Pagespeed cua VPSSIM se khong hoat dong!
  41. #include /etc/nginx/ngx_pagespeed.conf;
  42.  
  43. #Tang bao mat security, chong sql injection ....(uncoment neu ban muon su dung). Boi vi mot so code website khong su dung duoc voi rule nay, nen mac dinh VPSSIM de tat.
  44. #include /etc/nginx/conf/block.conf;
  45.  
  46.  
  47. location ~ \.php$ {
  48. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  49. include /etc/nginx/fastcgi_params;
  50. fastcgi_pass 127.0.0.1:9000;
  51. fastcgi_index index.php;
  52. fastcgi_connect_timeout 60;
  53. fastcgi_send_timeout 180;
  54. fastcgi_read_timeout 180;
  55. fastcgi_buffer_size 256k;
  56. fastcgi_buffers 4 256k;
  57. fastcgi_busy_buffers_size 256k;
  58. fastcgi_temp_file_write_size 256k;
  59. fastcgi_intercept_errors on;
  60. fastcgi_param SCRIPT_FILENAME /home/anhba.com/public_html$fastcgi_script_name;
  61. }
  62.  
  63. include /etc/nginx/conf/staticfiles.conf;
  64. #include /etc/nginx/conf/phpstatus.conf;
  65. include /etc/nginx/conf/drop.conf;
  66. #include /etc/nginx/conf/errorpage.conf;
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement