Hi Everyone,
I am running SUSE 9.1 with apache2. I have my domain Liviam.ca registered and Public DNS has propagated it. Here is a partial of my zone file; notice that I have a www canonic record that points the the A record of Liviam.ca.
www CNAME 216.221.85.75
mail A 216.221.85.75
@ A 216.221.85.75
(there is more in the zone, but I only included a what was required for this post)
If I use a remote computer (outside of my private network) and type liviam.ca in the address bar, my browser navigates to the opening page. However, if I type
www.liviam.ca then it can't find the opening page.
I have to date been using WebMin to administrate apache2 and have tried all sorts of different configurations to get this to work. Currently I have Liviam.ca set as my default site. here are some of the other settings:
Global Settings:
name virtual servers:
liviam.ca:80
liviam.com:80
liviam.ca
Listen on addresses ALL
Listen on port 80
Networking and Addresses for default server:
Server Hostname: liviam.ca
Document Options:
Document root: /srv/www/htdocs
User www directory /srv/www/htdocs
Directory Indexing for default server:
Directory index files:
Liviam_Construction.htm
I also have set Per-Directory Options:
Directory/
Directory /user/share/apache2/error
Directory /user/share/apache2/icons
Directory /srv/www/cgi-bin
Directory /srv/www/htdocs
Directory
/usr/share/apache2/manual
Files regexp ^\.ht
I am very new to apache as I spawned fro the IIS world
Needless to say that I am stumped as to why the domain is resolving by name but not the canonic www + domain. I have checked the DNS to ensure that it is configured properly and it is. I only have one static IP so I am using port forwarding through my firewall, but if it can resolve liviam.ca then it should be able to resolve
www.liviam.ca. - I don't think the firewall is having any effect. The only area of murkiness is apache2; therefore this is likely where the error is located.
I would really appreciate any suggestions you might have on how to troubleshoot or resolve this issue.
BTW: When I attempt to start apache2 using Webmin I get the following error:
' Failed to start apache :
Starting httpd2 (prefork) [warn]
NameVirtualHost liviam.ca:0 has no VirtualHosts
NameVirtualHost liviam:80 has no VirtualHosts
..done'
However when I open YaST and select /network services/HTTP Server it shows that the server is running. I restarted it here each time I made a configuration change in webmin - kinda a pain in the arse, but it seemed to work.
I also tried using an editor and changed: httpd.conf and then restarted the HTTP Server but again to no avail.
I hope that some of you have some suggestions that can help me get through this.
Truly,
ServerStorm