Server { listen 80; server_name centreon.xxxxx.NET ; location / { proxy_pass http://192.168.1.7/centreon/; } proxy_set_header Host $host; proxy_set_header Accept-Encoding ""; proxy_set_header X-Real-IP $remote_addr; proxy_set_header[b] X-Forwarded-For $proxy_add_x_forwarded_for[/b];}
<Directory "/var/www/html/centreon"> Options Indexes Options FollowSymLinks Options SymLinksIfOwnerMatch AllowOverride all Order allow,deny Allow from all</Directory> RPAFenable On RPAFsethostname On [b]RPAFproxy_ips 172.49.1.4 [/b] RPAFheader X-Forwarded-For