We recommend deploying with Nginx, and this script interacts with
Nginx. The default Nginx configuration that Phusion ships runs as the
nginx user on these distros. Use that as the WWW_OWNER.
Ideally we want to move to a more sophisticated place where we
introspect the Web server configuration and use the same server it
does. But for now, this is an improvement.
No issue #, but discovered when working on #6940. I cleared this with
Ward.
set -e
if [ -e /etc/redhat-release ]; then
- WWW_OWNER=apache:apache
+ WWW_OWNER=nginx:nginx
else
# Assume we're on a Debian-based system for now.
WWW_OWNER=www-data:www-data
set -e
if [ -e /etc/redhat-release ]; then
- WWW_OWNER=apache:apache
+ WWW_OWNER=nginx:nginx
else
# Assume we're on a Debian-based system for now.
WWW_OWNER=www-data:www-data