fix logformat for older apache versions
[basic-https-conf] / nginx-site
index 43f1aa9d74b864493a7d7fcc296e3227c783265e..e2c046fcb6e233d0285c0c2b67788ba1b6c3f9ea 100755 (executable)
@@ -20,6 +20,8 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
 usage() {
     cat <<EOF
 Usage: ${0##*/} [EXTRA_SETTINGS_FILE] DOMAIN
 usage() {
     cat <<EOF
 Usage: ${0##*/} [EXTRA_SETTINGS_FILE] DOMAIN
+Note: this is less tested and mature than the apache site script.
+
 Setup nginx config with https using
 ssl config provided by let's encrypt and my standard
 location for storing certs.
 Setup nginx config with https using
 ssl config provided by let's encrypt and my standard
 location for storing certs.
@@ -27,9 +29,7 @@ location for storing certs.
 EXTRA_SETTINGS_FILE can be - for stdin
 -p PORT    Proxy to PORT
 -h|--help  Print help and exit
 EXTRA_SETTINGS_FILE can be - for stdin
 -p PORT    Proxy to PORT
 -h|--help  Print help and exit
---         Subsequent arguments are never treated as options
 
 
-Note: options and non-options can be in any order.
 TODO: add https redir site.
 EOF
     exit $1
 TODO: add https redir site.
 EOF
     exit $1
@@ -124,6 +124,6 @@ EOF
 sudo tee -a /etc/nginx/sites-enabled/$h.conf <<EOF
 }
 EOF
 sudo tee -a /etc/nginx/sites-enabled/$h.conf <<EOF
 }
 EOF
-s mkdir -p /var/www/$h/html
-s chown -R ian:ian /var/www/$h
-ser restart nginx
+sudo mkdir -p /var/www/$h/html
+sudo chown -R ian:ian /var/www/$h
+sudo service nginx restart