Zentyal Forum, Linux Small Business Server

Zentyal Server => Other modules => Topic started by: mxfarooq on December 02, 2015, 07:48:41 pm

Title: "www" doesnot appear before the domain.(Solved)
Post by: mxfarooq 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
Title: Re: "www" doesnot appear before the domain.
Post by: jbahillo 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
Title: Re: "www" doesnot appear before the domain.
Post by: mxfarooq 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