| 123456789101112131415161718192021222324252627 |
- #
- server {
- listen 80 default_server;
- root /opt/una;
- 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;
- }
- }
|