Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Nginx - invalid variable + directive is not allowed here

$
0
0
Debug

server {
#other config
error_log /var/logs/nginx/mysitecom.log debug;
#other config
}


full http://pastebin.com/AC5itJxf

Refresh main site.

Ngnix site trying to use "/" "/var/www/html/" and forwarding(?) to /usr/share/nginx and error 404.

(...)
2016/07/12 22:04:31 [debug] 16736#16736: *8 trying to use file: "/" "/var/www/html/"
2016/07/12 22:04:31 [debug] 16736#16736: *8 http script var: "/"
2016/07/12 22:04:31 [debug] 16736#16736: *8 trying to use dir: "/" "/var/www/html/"
2016/07/12 22:04:31 [debug] 16736#16736: *8 try file uri: "/"
2016/07/12 22:04:31 [debug] 16736#16736: *8 content phase: 14
2016/07/12 22:04:31 [debug] 16736#16736: *8 content phase: 15
2016/07/12 22:04:31 [debug] 16736#16736: *8 open index "/var/www/html/index.php"
2016/07/12 22:04:31 [debug] 16736#16736: *8 internal redirect: "/index.php?"
2016/07/12 22:04:31 [debug] 16736#16736: *8 rewrite phase: 2
2016/07/12 22:04:31 [debug] 16736#16736: *8 test location: "/"
2016/07/12 22:04:31 [debug] 16736#16736: *8 test location: "robots.txt"
(...)
2016/07/12 22:04:31 [debug] 16736#16736: *8 http script var: "/index.php"
2016/07/12 22:04:31 [debug] 16736#16736: *8 trying to use file: "/index.php" "/usr/share/nginx/html/index.php"
2016/07/12 22:04:31 [debug] 16736#16736: *8 trying to use file: "=" "/usr/share/nginx/html="
2016/07/12 22:04:31 [debug] 16736#16736: *8 trying to use file: "404" "/usr/share/nginx/html404"
2016/07/12 22:04:31 [debug] 16736#16736: *8 internal redirect: "404?"
(...)
2016/07/12 22:04:31 [debug] 16736#16736: *8 http filename: "/usr/share/nginx/html404"
2016/07/12 22:04:31 [debug] 16736#16736: *8 add cleanup: 00000000008AEB48
2016/07/12 22:04:31 [error] 16736#16736: *8 open() "/usr/share/nginx/html404" failed (2: No such file or directory), client: 31.183.115.252, server: localhost, request: "GET / HTTP/1.1", host: "mywebsite.com"
2016/07/12 22:04:31 [debug] 16736#16736: *8 http finalize request: 404, "404?" a:1, c:3
2016/07/12 22:04:31 [debug] 16736#16736: *8 http special response: 404, "404?"
2016/07/12 22:04:31 [debug] 16736#16736: *8 http set discard body
2016/07/12 22:04:31 [debug] 16736#16736: *8 HTTP/1.1 404 Not Found
Server: nginx/1.10.1
Date: Tue, 12 Jul 2016 20:04:31 GMT

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>