| 1234567891011121314151617181920212223242526272829 |
- #
- server {
- listen 80 default_server;
- root /opt/una;
- client_max_body_size 200M;
- location / {
- index index.html index.htm index.php;
- rewrite "^/page/(.*)$" /page.php?i=$1 last;
- rewrite "^/m/(.*)$" /modules/index.php?r=$1 last;
- rewrite "^/s/([a-zA-Z0-9_]+)/([a-zA-Z0-9\.]+)" /storage.php?o=$1&f=$2 last;
- if (!-e $request_filename) {
- rewrite ^/(.+)$ /r.php?_q=$1 last;
- break;
- }
- }
- index index.php index.html index.htm;
- location ~ \.php$ {
- fastcgi_pass php:9000;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
|