CAS、CloudOS和VCFC上怎么去设置禁止http的方式登录web界面,只能用https的方式登录。
(0)
CAS E0306H02版本可以直接在界面设置成https方式访问。在【系统参数】中设置【保密模式】为启动,保存配置,提示重启Tomcat服务,保存后会自动重启tomcat服务。启动成功后,访问http+8080端口会强制跳转到https+8443.,效果即为8080不能用来访问cas系统。
SDN VCFC可以禁止HTTP访问只允许HTTPS访问,在控制器/系统管理/配置管理/控制器管理中修改http.enable为false,控制器需重启生效。
CloudOS需要编辑nginx.conf文件 :
# server {
# listen 80;
# server_name localhost;
#
# #charset koi8-r;
#
# #access_log logs/host.access.log main;
#
# location / {
# proxy_pass http://192.168.113.147:801;
# proxy_redirect http://192.168.113.147:801/ /;
# #proxy_redirect off;
#
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Scheme $scheme;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header Host $http_host;
#
# proxy_http_version 1.1;
#
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
#
# proxy_connect_timeout 60;
# proxy_send_timeout 3600;
# proxy_read_timeout 3600;
# }
#
# #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 html;
# }
#
# # proxy the PHP scripts to Apache listening on 127.0.0.1:80
# #
# #location ~ \.php$ {
# # proxy_pass http://127.0.0.1;
# #}
#
# # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
# #
# #location ~ \.php$ {
# # root html;
# # fastcgi_pass 127.0.0.1:9000;
# # fastcgi_index index.php;
# # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# # include fastcgi_params;
# #}
#
# # deny access to .htaccess files, if Apache's document root
# # concurs with nginx's one
# #
# #location ~ /\.ht {
# # deny all;
# #}
# }
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论