SCRIPT_FILENAME relative or absolute

I have seen nginx.conf for linux systems and they start with a / which
means
its an absolute path.
For windows, is it absolute or relative.
same goes for the root directive is it absolute path or relative path

On Tue, Sep 15, 2009 at 10:27:27PM +0500, Ziyad S. wrote:

I have seen nginx.conf for linux systems and they start with a / which means
its an absolute path.
For windows, is it absolute or relative.
same goes for the root directive is it absolute path or relative path

In nginx/Windows
*) “c:/…” is absolute path,
*) “/…” is path relative path to drive where nginx was started,
*) anything else is path relative to directory where nginx was started.

so Igor should i use relative or absolute path for script_filename and
root

2009/9/16 Igor S. [email protected]

On Thu, Sep 17, 2009 at 02:59:19AM +0500, Ziyad S. wrote:

so Igor should i use relative or absolute path for script_filename and root

This is depends on your needs.

BTW, $script_filename is used in path for FastCGI process and

  1. it may be native Win32 binary,
  2. it may be Cygwin binary using own pathes,
  3. it may be even on another host, and the host may be Unix one.

In nginx/Windows
*) “c:/…” is absolute path,
*) “/…” is path relative path to drive where nginx was started,
*) anything else is path relative to directory where nginx was started.

A correction: path relative to

  1. drive or directory set in the “-p” switch,
  2. drive or directory where nginx was started.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs