Author Topic: "www" doesnot appear before the domain.(Solved)  (Read 3721 times)

mxfarooq

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
"www" doesnot appear before the domain.(Solved)
« on: December 02, 2015, 07:48:41 pm »
Hi there,
my Apache2 configuration.
<VirtualHost *:80>

ServerAdmin wm@site1.com
ServerName www.site1.com
ServerAlias site1.com
DocumentRoot /var/www/site1.com/public_html
ErrorLog /var/www/site1.com/log/error.log
CustomLog /var/www/site1.com/log/access.log combined
</VirtualHost>

<VirtualHost *:80>

ServerAdmin wm@site2.com
ServerName www.site2.com
ServerAlias site2.com
DocumentRoot /var/www/site2.com/public_html
ErrorLog /var/www/site2.com/log/error.log
CustomLog /var/www/site2.com/log/access.log combined
</VirtualHost>
If i lookup site1.com & site2.com they work fine. however, when i try to lookup www.site1.com & www.ste2.com
I get the following error.
Check the address for typing errors such as ww.example.com instead of www.example.com
Firefox can't find the server at www.site1.com.

plese help
Regards
mxfarooq
« Last Edit: December 05, 2015, 08:28:51 pm by mxfarooq »

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: "www" doesnot appear before the domain.
« Reply #1 on: December 03, 2015, 12:50:41 pm »
Hello:

Please check that your DNS servers are able to resolve www.site1.com and www.site2.com. Apache config looks ok

mxfarooq

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: "www" doesnot appear before the domain.
« Reply #2 on: December 05, 2015, 04:02:05 pm »
I resolved it by enabling the wild card in the no-IP.com host management section. Since I have a plus domain & hosting two domain DNS records. Every thing seems to working beautiful. I am so happy to have wonderful help here.
regards,
mFarooq
P.S Please marked this topic as resolved. both domains are working.
site1.com also www.site1.com &&& site2.com also www.site2.com