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

Friday, February 11, 2022

[FIXED] Apache sites do not have http:// prefix in address bar

 February 11, 2022     apache, lamp, url     No comments   

Issue

I've setup 4 sites on a LAMP stack and pointed a number of domains at the server. Everything is running nicely but for some reason, none of the sites have the http:// prefix.

It isn't a massive problem but down-the-line, these sites are going to run https on secure areas and I want visitors to be able to differentiate.

Why would Apache NOT display the http:// prefix? I'm using named virtual hosts and have modified my /etc/hosts file to point the relevant domains to my server's IP.


Solution

It's most likely the browser hiding the http:// prefix. It should be happening on every other web site you visit with that browser, too.

enter image description here

You can't control this with Apache - but don't worry, in https mode, the browser will make sure the user sees the difference.



Answered By - Pekka
  • 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