Forum Discussion
ispy_344504
Nimbostratus
Feb 12, 2018http to https not working with nginx
Hi,
I have a problem about F5 iRule, i set the irule on F5 "
when_HTTP_REQUEST {
HTTP::host [HTTP::host]:443;
} " and it's working perfectly.
but when i changed my database from apache to ngin...
ispy_344504
Nimbostratus
Feb 13, 2018Hi 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;
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
