no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | nginx [2014/06/13 17:24] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== nginx ====== | ||
+ | * [[OpenBSD nginx]] | ||
+ | |||
+ | * [[http:// | ||
+ | |||
+ | === Server Blocks === | ||
+ | |||
+ | * [[http:// | ||
+ | |||
+ | < | ||
+ | server { | ||
+ | |||
+ | listen 80; | ||
+ | listen [::]:80; | ||
+ | server_name sub.domain.com; | ||
+ | root / | ||
+ | index index.html index.htm index.php; | ||
+ | |||
+ | } | ||
+ | </ | ||
+ | |||
+ | === Directory Indexes === | ||
+ | |||
+ | Add '' | ||
+ | |||
+ | < | ||
+ | autoindex on; | ||
+ | </ | ||
+ | |||
+ | Add '' | ||
+ | |||
+ | < | ||
+ | location /somedir { autoindex on; } | ||
+ | </ |