1234567891011121314151617181920212223242526272829303132333435363738 |
- server {
- listen 80;
- server_name queenabby.com;
- root /home/www/queenabby/appfront/web;
- server_tokens off;
- index index.php index.html index.htm;
- location ~ \.php$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include fastcgi.conf;
- }
- location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler
- rewrite ^(.*.php)/ $1 last;
- }
- location / {
- if (!-e $request_filename){
- rewrite ^/(.*)$ /index.php/$1 last;
- }
- }
- location /fr/ {
- index index.php;
- if (!-e $request_filename){
- rewrite . /fr/index.php last;
- }
- }
- location /cn/ {
- index index.php;
- if (!-e $request_filename){
- rewrite . /cn/index.php last;
- }
- }
- location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
- expires 30d;
- }
- location ~ .*\.(js|css)?$ {
- expires 12h;
- }
- }
|