diff options
| author | elliottcable | 2009-12-13 22:16:24 -0800 |
|---|---|---|
| committer | Max Howell | 2010-01-13 15:09:28 +0000 |
| commit | 314c105ab4dd4ed16e7ca8bd843a4a72bf6b6cbb (patch) | |
| tree | ad63bdbdbd5a5fb075743f3510e746c350653e57 /Library | |
| parent | 64226cef902f77f8f3af2baa4665bc91d1e29b2c (diff) | |
| download | homebrew-314c105ab4dd4ed16e7ca8bd843a4a72bf6b6cbb.tar.bz2 | |
Re-configuring NginX to work closer to out-of-the-box, and without `sudo`
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/nginx.rb | 27 |
1 files changed, 25 insertions, 2 deletions
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; |
