This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wget http://www.openinfo.co.uk/apache/extract_forwarded-2.0.2.tar.gz | |
# tar zxf extract_forwarded-2.0.2.tar.gz | |
# cd extract_forwarded | |
# apxs -i -c -a mod_extract_forwarded.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# キャッシュ関連設定 | |
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=czone:4m max_size=50m inactive=120m; | |
proxy_temp_path /var/tmp/nginx; | |
proxy_cache_key "$scheme://$host$request_uri"; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header X-Forwarded-Server $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
NewerOlder