Nginx
De Hack-it.org.
T2 (discuter | contributions) |
T2 (discuter | contributions) |
||
Ligne 1 : | Ligne 1 : | ||
* http://wiki.nginx.org/NginxFr | * http://wiki.nginx.org/NginxFr | ||
* http://wiki.nginx.org/NginxChsHttpCoreModule#error_page | * http://wiki.nginx.org/NginxChsHttpCoreModule#error_page | ||
+ | * http://svn.nicolargo.com/debianpostinstall/trunk/nginxautoinstall.sh | ||
+ | ==Setup== | ||
+ | ===Cacher la version=== | ||
+ | Ouvrir nginx.conf, rajouter <pre>server_tokens off;</pre> dans le http { }, puis reloader nginx. | ||
+ | ===PHP-FPM=== | ||
+ | * Pour Debian : http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian | ||
+ | * squeeze http://www.codernotes.com/2011/7/install-nginx-and-php-fpm-on-debian-6-squeeze-2/ | ||
- | == | + | ==Vhosts== |
- | + | * Enable directory listing | |
+ | autoindex on; | ||
- | ==URL Rewriting== | + | ===URL Rewriting=== |
http://wiki.nginx.org/NginxHttpRewriteModule | http://wiki.nginx.org/NginxHttpRewriteModule | ||
+ | * Da ligne pour rewriter wordpress : | ||
+ | # catch all | ||
+ | error_page 404 /index.php; | ||
+ | |||
+ | ===?=== | ||
+ | * naxsi |