Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name localhost;
- root /srv/myapp/src/www;
- index index.php;
- location / {
- try_files $uri $uri/ /index.php;
- }
- location ~ .php$ {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
- location /plugins/movies {
- alias /srv/myapp/plugins/movies/www;
- try_files $uri /plugins/movies/index.php?$args;
- }
- 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