When Showing this type error in xampp localhost at running localhost using xampp server. Then First You will go to in file location as below

“C:\Windows\System32\drivers\etc” and open “hosts” file and check this below line
127.0.0.1 localhost
::1 localhostCode language: CSS (css)

After that open file location as below
“C:\xampp\apache\conf\extra” and open “httpd-vhosts.conf” and check below line
<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs"
ServerName localhost
ServerAlias www.localhost.co
<Directory "c:/xampp/htdocs">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Code language: HTML, XML (xml)
if it code will be not available in this file the write this line as below

After update this file will be open your localhost as below

I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals