Skip to content
Browse files

Update documentation

  • Loading branch information...
1 parent be40f68 commit d0e7632cf639ceef9ad932f838ddfb5e654e89fe @FooBarWidget FooBarWidget committed
Showing with 16 additions and 2 deletions.
  1. +4 −1 CONTRIBUTING.md
  2. +12 −1 doc/{DebuggingAndStressTesting.txt.md → DebuggingAndStressTesting.md}
View
5 CONTRIBUTING.md
@@ -43,7 +43,10 @@ You can contribute by answering support questions on the [community discussion f
Phusion Passenger is mostly written in C++, but the build system and various small helper scripts are in Ruby. The loaders for each supported language is written in the respective language.
-The source code is filled with inline comments, so look there if you want to understand how things work. We also have dedicated documents on some topics and for some subsystems. For example, you should read ext/common/ApplicationPool2/README.md if you're interesting in working on the ApplicationPool and Spawner subsystems.
+The source code is filled with inline comments, so look there if you want to understand how things work. We also have dedicated documents on some topics and for some subsystems. Some interesting documents are:
+
+ * ext/common/ApplicationPool2/README.md - If you're interesting in the ApplicationPool and Spawner subsystems.
+ * doc/DebuggingAndStressTesting.md
### Compilation and build system
View
13 doc/DebuggingAndStressTesting.txt.md → doc/DebuggingAndStressTesting.md
@@ -7,7 +7,18 @@ This guide tells you:
## Process output
-All Phusion Passenger agent processes (PassengerWatchdog, PassengerHelperAgent, PassengerLoggingAgent) as well as all spawned application processes have their stdout and stderr redirected to the global web server error log. This is usually '/var/log/apache2/error.log' or '/var/log/nginx/error.log'.
+All Phusion Passenger agent processes (PassengerWatchdog, PassengerHelperAgent, PassengerLoggingAgent) as well as all spawned application processes have their stdout and stderr redirected to the _global web server error log_ (that is, _not_ the per-virtual host error log). This is usually '/var/log/apache2/error.log' or '/var/log/nginx/error.log'.
+
+Note that in case of Nginx, Phusion Passenger prints to the error log specified in the server context, not the "http" context. If the server context does not contain an `error_log` directive then the default error log location will be used. The default location depends on how Nginx is configured during compilation, but it is usually either '$PREFIX/logs/error.log' or '/var/log/nginx/error.log'. For example, if your Nginx configuration looks like this:
+
+ worker_processes 2;
+
+ http {
+ error_log /home/nginx/error.log;
+ ...
+ }
+
+then Phusion Passenger will print to the default error log location, *not* '/home/nginx/error.log'!
## Crash behavior

0 comments on commit d0e7632

Please sign in to comment.
Something went wrong with that request. Please try again.