default.conf 554 B

1234567891011121314151617181920
  1. server {
  2. listen 80 default_server;
  3. server_name localhost;
  4. root /usr/share/nginx/html/;
  5. location / {
  6. index index.html index.htm index.php;
  7. autoindex off;
  8. }
  9. location ~ \.php(.*)$ {
  10. root /var/www/html/;
  11. fastcgi_pass 172.17.0.3:9000;
  12. fastcgi_index index.php;
  13. fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
  14. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  15. fastcgi_param PATH_INFO $fastcgi_path_info;
  16. fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  17. include fastcgi_params;
  18. }
  19. }