简体   繁体   中英

Securing or https for a page isn't working

The website has properties to secure pages at complete site level and individual page level. If the site level property is set true, all the pages urls change to "https". The problem I have is one of the pages isn't secured and this occurs in only production environment. Securing works fine in my local dev and test environment. What are the other ways to secure a page?

You ask a very general question so I'll provide a general answer. Securing pages or subsets of pages can be handled in a several ways.

  1. You can do it the simple and far less secure way with .htaccess files assuming you are running a server that has .htaccess support enabled.

  2. You can use a framework that is appropriate for your development language: java: Spring, Struts 2 php: Laravel, Yii javascript: angular

Each framework has its own learning curve and you should consult the documentation.

  1. You can host your site somewhere that has integrated security like Google App Engine and AWS.

If you have a systems team you should defer to them or if you are doing this on your own then I strongly recommend you do not try and roll your own security and instead host someplace that provides security as an integrated feature.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM