Welcome! Log In Create A New Profile

Advanced

Re: [1.4.1] Finding docroot directory?

Francis Daly
May 13, 2013 07:20AM
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
Subject Author Posted

[1.4.1] Finding docroot directory?

Shohreh May 13, 2013 06:56AM

Re: [1.4.1] Finding docroot directory?

Shohreh May 13, 2013 07:02AM

Re: [1.4.1] Finding docroot directory?

openletter May 13, 2013 07:08AM

Re: [1.4.1] Finding docroot directory?

Francis Daly May 13, 2013 07:20AM

Re: [1.4.1] Finding docroot directory?

Francis Daly May 13, 2013 07:26AM

Re: [1.4.1] Finding docroot directory?

Shohreh May 13, 2013 07:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 309
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready