1
0

nginx.conf 688 B

1234567891011121314151617181920212223242526272829
  1. #
  2. server {
  3. listen 80 default_server;
  4. root /opt/una;
  5. client_max_body_size 200M;
  6. location / {
  7. index index.html index.htm index.php;
  8. rewrite "^/page/(.*)$" /page.php?i=$1 last;
  9. rewrite "^/m/(.*)$" /modules/index.php?r=$1 last;
  10. rewrite "^/s/([a-zA-Z0-9_]+)/([a-zA-Z0-9\.]+)" /storage.php?o=$1&f=$2 last;
  11. if (!-e $request_filename) {
  12. rewrite ^/(.+)$ /r.php?_q=$1 last;
  13. break;
  14. }
  15. }
  16. index index.php index.html index.htm;
  17. location ~ \.php$ {
  18. fastcgi_pass php:9000;
  19. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20. include fastcgi_params;
  21. }
  22. }