PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, July 14, 2022

[FIXED] How to enable SSL for Angular App in subdirectory?

 July 14, 2022     angular, ssl, typescript, web-deployment     No comments   

Issue

I have deployed an Angular Application to a subdirectory as www.mywebsite.com/my-app-here.

When the user enters www.mywebsite.com, I see the green lock as the SSL is enabled here. But when the user enters or navigates to /my-app-here, the lock dissapers and the page is "not secure".


Solution

Captain Kenpachi answered:

SSL is already enabled for your subdirectory. You just have to enforce it by redirecting all HTTP traffic to HTTPS. This is done in various ways depending on the hosting environment and platform the applications are built on.

I just had to redirect all http-requests to https-request for the specific route. (I ended up redirecting all routes).



Answered By - lefanous
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing