Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: [1.4.1] Finding docroot directory?

$
0
0
On Mon, May 13, 2013 at 06:56:11AM -0400, Shohreh wrote:

Hi there,

> I'm running Nginx 1.4.1 on an appliance running Debian 6, and can't find
> from which directory Nginx is serving files.

If "nginx -V" doesn't tell you, and the log files don't tell you, then
you can do something like

location = /docroot-test {
return 200 "docroot is $document_root\n";
}

followed by

curl -i http://localhost/docroot-test

You'll need to make sure that the new location{} is in the server{}
that will handle this request, of course, but it's hard to argue with
asking the server itself what directory it is looking in.

Any *other* location{} block might have a different "root" or "alias"
defined, but that should be clear from the config file.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 53287

Trending Articles



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