首页 > 解决方案 > How do I modify my host file so I can access my web page through a host name?

问题描述

Embedded YouTube video doesn't work on local server

I looked at this post and it says I have to edit my host file to run an embedded youtube video. I went on to the tutorial link and opened the host file via notepad, but I'm not sure what to change there (the tutorial does not say). I tried changing my local host address to dev-vm but I think I just made an error.

标签: htmlwindows

解决方案


You need to edit the host file and add a line like this:

127.0.0.1 mywebsite.com

And then access your website:

mywebsite.com:5000/


推荐阅读