Forum Discussion
ispy_344504
Feb 13, 2018Nimbostratus
Hi Jie
we need host header because we don't use any https on nginx and apache, so we need to insert host:443 on F5, it works for apache server but nginx.
Hi Jie This is what we nginx configuration
server {
listen *:80;
server_name x.x.x.x
access_log /var/log/nginx/xxx_log main;
error_log /var/log/nginx/xxx.err_log error;
access_log off;
proxy_hide_header X-Powered-By;
include 001-share_conf/aio-thread;
include 001-share_conf/ad-rewrite;
location ~ \.php$ {
root /home/xxx;
include 001-share_conf/fastcgi;
include 001-share_conf/uuid/lt/bck-lt/uuid;
include fastcgi.conf;
}
+++++deny access to .htaccess files
location ~ /\.ht {
deny all;
}
error_page 404 /404.html;
redirect server error pages to the static page /50x.html
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /etc/nginx/html;
}
}