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
![](https://www.devopsschool.com/blog/wp-content/uploads/2021/04/image-1.png)
“C:\Windows\System32\drivers\etc” and open “hosts” file and check this below line
127.0.0.1 localhost
::1 localhost
![](https://www.devopsschool.com/blog/wp-content/uploads/2021/04/image.png)
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>
if it code will be not available in this file the write this line as below
![](https://www.devopsschool.com/blog/wp-content/uploads/2021/04/image-2.png)
After update this file will be open your localhost as below
![](https://www.devopsschool.com/blog/wp-content/uploads/2021/04/image-3-1024x486.png)
Latest posts by Rajesh Kumar (see all)
- How to remove sensitive warning from ms office powerpoint - July 14, 2024
- AIOps and DevOps: A Powerful Duo for Modern IT Operations - July 14, 2024
- Leveraging DevOps and AI Together: Benefits and Synergies - July 14, 2024