Difference between revisions of "Big pipe server/Services/nginx"

From Whitespace (Hackerspace Gent)
Jump to: navigation, search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
* Config at /etc/nginx/
 
* Config at /etc/nginx/
 
* Virtualhost in sites-enabled/0x20-default
 
* Virtualhost in sites-enabled/0x20-default
* simulate Apache UserDir behaviour:
+
* simulate Apache UserDir behaviour so users can use ~/public_html to serve files:
 
<pre>
 
<pre>
 
     # simulate Apache UserDir behaviour.
 
     # simulate Apache UserDir behaviour.
 
     # http://wiki.nginx.org/UserDir
 
     # http://wiki.nginx.org/UserDir
     location ~ ^/~(.+?)(/.*)?$ {
+
     location ~ ^/~?([A-Za-z0-9]+?)(/.*)?$ {
 
         alias /home/$1/public_html$2;
 
         alias /home/$1/public_html$2;
 
         index  index.html index.htm;
 
         index  index.html index.htm;
Line 11: Line 11:
 
     }
 
     }
 
</pre>
 
</pre>
 +
* SSL uses CAcert (www.cacert.org). SSL config in sites-enabled/0x20-default

Latest revision as of 00:55, 24 August 2011

  • Config at /etc/nginx/
  • Virtualhost in sites-enabled/0x20-default
  • simulate Apache UserDir behaviour so users can use ~/public_html to serve files:
    # simulate Apache UserDir behaviour.
    # http://wiki.nginx.org/UserDir
    location ~ ^/~?([A-Za-z0-9]+?)(/.*)?$ {
        alias /home/$1/public_html$2;
        index  index.html index.htm;
        autoindex on; 
    }
  • SSL uses CAcert (www.cacert.org). SSL config in sites-enabled/0x20-default