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

From Whitespace (Hackerspace Gent)
Jump to: navigation, search
m
Line 1: Line 1:
* [[Abe]] did the setup
 
 
* Config at /etc/nginx/
 
* Config at /etc/nginx/
 +
* Virtualhost in sites-enabled/0x20-default
 +
* simulate Apache UserDir behaviour:
 +
<pre>
 +
    # simulate Apache UserDir behaviour.
 +
    # http://wiki.nginx.org/UserDir
 +
    location ~ ^/~(.+?)(/.*)?$ {
 +
        alias /home/$1/public_html$2;
 +
        index  index.html index.htm;
 +
        autoindex on;
 +
    }
 +
</pre>

Revision as of 18:40, 16 August 2011

  • Config at /etc/nginx/
  • Virtualhost in sites-enabled/0x20-default
  • simulate Apache UserDir behaviour:
    # simulate Apache UserDir behaviour.
    # http://wiki.nginx.org/UserDir
    location ~ ^/~(.+?)(/.*)?$ {
        alias /home/$1/public_html$2;
        index  index.html index.htm;
        autoindex on; 
    }