Hi, i am making a virtualhost in Apache, but did not work when i type www.example .net, only work example.net. What is wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi, i am making a virtualhost in Apache, but did not work when i type www.example .net, only work example.net. What is wrong?

15th Jul 2017, 4:53 PM
Ivan Mitic
Ivan Mitic - avatar
4 Answers
+ 3
Sounds like you need to add the www prefix to your CNAME in your DNS manager.
15th Jul 2017, 5:31 PM
ChaoticDawg
ChaoticDawg - avatar
+ 3
Actually was thinking you were using a web host, but you may be able to fix it by editing your hosts file. 127.0.0.1 example.net www.example.net
15th Jul 2017, 5:53 PM
ChaoticDawg
ChaoticDawg - avatar
0
Thanks, but do you now where is this cname, i am working in ubuntu ?
15th Jul 2017, 5:43 PM
Ivan Mitic
Ivan Mitic - avatar
0
Thank you very much
15th Jul 2017, 5:55 PM
Ivan Mitic
Ivan Mitic - avatar