Pork Center

Nginx

De Hack-it.org.

 
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==
==Setup==
===Cacher la version===
===Cacher la version===
Ouvrir nginx.conf, rajouter <pre>server_tokens off;</pre> dans le http { }, puis reloader nginx.
Ouvrir nginx.conf, rajouter <pre>server_tokens off;</pre> dans le http { }, puis reloader nginx.
-
===Foutre php===
+
===PHP-FPM===
-
* http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian
+
* 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

Version actuelle en date du 18 juillet 2016 à 07:18