开发者

Apache2 show localhost as mydomainname.com [closed]

开发者 https://www.devze.com 2023-03-18 04:47 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

开发者_如何学Python Improve this question

I want to record a screencast of a website but it is not live yet. Is it possible in Apache2 to temporarily change localhost to make it look like its the actual web address?


Add an entry in /etc/hosts that resolves to the localhost

http://en.wikipedia.org/wiki/Hosts_%28file%29

E.g. 127.0.0.1 localhost loopback whateverilike.com


Yep, you can use your hosts file to point the domain name to 127.0.0.1.

0

精彩评论

暂无评论...
验证码 换一张
取 消