www_apache2
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
www_apache2 [2012/04/22 15:40] – thierry | www_apache2 [2012/05/10 20:49] (Version actuelle) – thierry | ||
---|---|---|---|
Ligne 429: | Ligne 429: | ||
=== nginx === | === nginx === | ||
+ | |||
+ | FIXME : Un exemple, mais je n'ai pas tout compris... | ||
+ | |||
+ | server { | ||
+ | listen 443; | ||
+ | server_name .thierry-jaouen.fr .tjaouen.fr; | ||
+ | | ||
+ | ssl on; | ||
+ | ssl_certificate / | ||
+ | ssl_certificate_key / | ||
+ | | ||
+ | keepalive_timeout 60; | ||
+ | | ||
+ | location / { | ||
+ | proxy_pass http:// | ||
+ | access_log off; | ||
+ | | ||
+ | proxy_next_upstream error timeout invalid_header http_500 http_502 http_503; | ||
+ | | ||
+ | ### Set headers #### | ||
+ | proxy_set_header Host $host; | ||
+ | proxy_set_header X-Real-IP $remote_addr; | ||
+ | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
+ | |||
+ | ### Most PHP, Python, Rails, Java App can use this header ### | ||
+ | proxy_set_header X-Forwarded-Proto https; | ||
+ | |||
+ | ### By default we don't want to redirect it #### | ||
+ | proxy_redirect | ||
+ | } | ||
+ | | ||
+ | } | ||
+ | |||
+ | Le " | ||
+ | |||
+ | **MAIS** , entre **'' | ||
+ | |||
+ | C'est pour cela que le flag " | ||
+ | |||
+ | Ainsi, pour vos règles de **'' | ||
+ | |||
+ | Remplacer: | ||
+ | | **'' | ||
+ | par | ||
+ | | **'' | ||
===== Apache HA ===== | ===== Apache HA ===== | ||
Ligne 615: | Ligne 660: | ||
- | ====== evasive ====== | + | ====== |
- | Protection contre | + | Protection contre |
- | Lien: http:// | + | Liens: |
+ | *http:// | ||
+ | *http:// | ||
====== webalizer ====== | ====== webalizer ====== |
www_apache2.1335109215.txt.gz · Dernière modification : 2012/04/22 15:40 de thierry