Search code examples
phpapachesslhttpsxampp

Why the connection appear to be "not secure" on my PHP webapp depolyed on my local XAMPP Apache web server?


I am not so into PHP and I have the following problem.

After that I reinstalled XAMPP each time that I access to a website containing a form into the form field I have something like this:

enter image description here

The warning message says something like that "the connection is not secure. The inserted credential could be vulnerable."

And in the browser URL bar I can see something like:

enter image description here

In this case my application is under a virtual host configured in this way into the C:\xampp\apache\conf\extra\httpd-vhosts.conf file:

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/BeTrivius-Panda"
    ServerName panda.dev
</VirtualHost>

I really don't know if I have to put something related the certificate also into the virtual host configuration or if there could be something else missconfigured on my Apache.

What could be the problem? What am I missing? How can I try to solve it?


Solution

  • Chrome and Firefox are alerting, if there is no HTTPS, in the newest versions on pages with a login form.

    To avoid this, you have to create a Self Signed SSL Certificate and enable SSL in your XAMPP Installation.