1
0

nginx.conf 656 B

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