0

I have created a virtual host on my windows machine but whenever I enter the link I get an HSTS error: enter image description here

I am using XAMPP to run the PHP server. My configuration is as follows :

  1. The hosts file in C:\WINDOWS\System32\drivers\etc :

enter image description here

  1. The httpd conf file of XAMPP C:\xampp\apache\conf\extra\httpd-vhosts.conf

enter image description here

I have also tried this one :

enter image description here

PS: I have changed the port to 8080 before and I can connect to the application by using localhos:8080

Starnec
  • 551
  • 1
  • 5
  • 15
  • 1
    You tend to get that with self-signed CA certs. So you'd need to include your cert in your certmgr setup. – ewokx May 10 '22 at 01:56
  • 1
    You know that `.dev` is a valid TLD, right? My recommendation is the same as [this](https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/), pick a TLD that is not routable for local testing. – Chris Haas May 10 '22 at 03:23
  • I have changed the TLD from .dev to .test and .cw and now I get a new error HTTP ERROR 404, although I have an index file in the folder – Starnec May 10 '22 at 09:55

0 Answers0