queenabby.com.conf 971 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. server {
  2. listen 80;
  3. server_name queenabby.com;
  4. root /home/www/queenabby/appfront/web;
  5. server_tokens off;
  6. index index.php index.html index.htm;
  7. location ~ \.php$ {
  8. fastcgi_pass 127.0.0.1:9000;
  9. fastcgi_index index.php;
  10. include fastcgi.conf;
  11. }
  12. location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler
  13. rewrite ^(.*.php)/ $1 last;
  14. }
  15. location / {
  16. if (!-e $request_filename){
  17. rewrite ^/(.*)$ /index.php/$1 last;
  18. }
  19. }
  20. location /fr/ {
  21. index index.php;
  22. if (!-e $request_filename){
  23. rewrite . /fr/index.php last;
  24. }
  25. }
  26. location /cn/ {
  27. index index.php;
  28. if (!-e $request_filename){
  29. rewrite . /cn/index.php last;
  30. }
  31. }
  32. location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
  33. expires 30d;
  34. }
  35. location ~ .*\.(js|css)?$ {
  36. expires 12h;
  37. }
  38. }