Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name localhost;
  4.  
  5. root /srv/myapp/src/www;
  6. index index.php;
  7.  
  8. location / {
  9. try_files $uri $uri/ /index.php;
  10. }
  11.  
  12. location ~ .php$ {
  13. fastcgi_pass 127.0.0.1:9000;
  14. fastcgi_index index.php;
  15. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  16. include fastcgi_params;
  17. }
  18. }
  19.  
  20. location /plugins/movies {
  21. alias /srv/myapp/plugins/movies/www;
  22. try_files $uri /plugins/movies/index.php?$args;
  23. }
  24.  
  25. 2016/12/09 15:12:25 [error] 20491#0: *534 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.17.42.1, server: localhost, request: "GET /plugins/movies/index.php?id=12 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement