From 314c105ab4dd4ed16e7ca8bd843a4a72bf6b6cbb Mon Sep 17 00:00:00 2001 From: elliottcable Date: Sun, 13 Dec 2009 22:16:24 -0800 Subject: Re-configuring NginX to work closer to out-of-the-box, and without `sudo` --- Library/Formula/nginx.rb | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/nginx.rb b/Library/Formula/nginx.rb index 6f7f5c98c..b572ed117 100644 --- a/Library/Formula/nginx.rb +++ b/Library/Formula/nginx.rb @@ -38,7 +38,20 @@ class Nginx < Formula system "./configure", *configure_args system "make install" - end + + # FIXME: This fails, for an unknown reason + #(prefix+'logs').mkdir + end + + def caveats + <<-CAVEATS +You need to create a logs folder before you can run NginX. Also, in the +interest of allowing you to run `nginx` without `sudo`, the default port is +set to localhost:8080; if you want to host pages on your local machine to the +public, you should probably change that to localhost:80, and run `nginx` with +`sudo`. + CAVEATS + end end __END__ @@ -67,4 +80,14 @@ __END__ if [ $ngx_found = yes ]; then CORE_DEPS="$CORE_DEPS $REGEX_DEPS" CORE_SRCS="$CORE_SRCS $REGEX_SRCS" - +--- a/conf/nginx.conf ++++ b/conf/nginx.conf +@@ -33,7 +33,7 @@ + #gzip on; + + server { +- listen 80; ++ listen 8080; + server_name localhost; + + #charset koi8-r; -- cgit v1.2.3