nginx.conf 427 B

12345678910111213141516171819
  1. server {
  2. listen 80;
  3. index index.php;
  4. server_name localhost;
  5. root /var/www/html/public;
  6. location / {
  7. if (!-e $request_filename){
  8. rewrite ^(.*)$ /index.php?s=$1 last; break;
  9. }
  10. }
  11. location ~ \.php$ {
  12. fastcgi_pass php74:9000;
  13. fastcgi_index index.php;
  14. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  15. include fastcgi_params;
  16. }
  17. }