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

Monday, May 16, 2022

[FIXED] How to create a private domain name?

 May 16, 2022     dns, domain-name, easyphp, subdomain, windows     No comments   

Issue

In order to debug some functionality of a website project I would like to know if it's possible on my local host to access my http://127.0.0.1/projectName/test1/public folder with a custom domain name and create other subdomain?

I'm working with easyPHP on Windows7.


Solution

HOSTS File: In Notepad (as Administrator) open the file:

C:\Windows\System32\drivers\etc\hosts

To make foo.bar.com resolve to 127.0.0.1 simply add the line

127.0.0.1       foo.bar.com

You can add as many as you like.



Answered By - Alex K.
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
  • 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