I have installed Nginx from Homebrew on my Mac running 10.8.3 (it's not a server), and Nginx test is fine if it's executed as root
Angelas-MacBook-Pro:nginx angelawang$ sudo nginx -t
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Angelas-MacBook-Pro:nginx angelawang$ nginx -t
nginx: [warn] the
from where is /etc/nginx/webapps.conf get created?
it is not in the custombuild/configure/nginx, and it seems like nginx.conf already contains all of the webapps (regardless of the settings in option.conf)
also, new conf files in custombuild/custom/nginx do net get copied to /etc/nginx on ./build rewrite_confs
nginx: [warn] the "user" directive makes sense only if the master process runs with super- user privileges, ignored in /home/zxr/nginx/conf/nginx.conf:2
nginx: [emerg] open() "/home/zxr/nginx/logs/access.log" failed (13: Permission denied)
so can I run nginx without sudo?, or automatically enter passwd?
I'm running a webserver and streaming video server on the same ubuntu box. I have the resources on the box to handle everything and in time will probably use two boxes but I don't want the overhead of two boxes right now.
I would like to run two versions of nginx, one with the rtmp module compiled in and one with out.
Is it possible to specify root path relative to the containing conf file?
We are developing a web app and keep app-nginx.conf file with app-specific configuration in the project's directory. I want to be able to include this file into main nginx.conf and have root path properly referencing required project's sub-directory.