Hi,
I have a box with Centos 5.2 and Virtualmin GPL in a near default configuration. I have added one hosted site, www.choked.ca. The nameservers are ns1.bcwebinc.com and ns2.bcwebinc.com. After a conversation today with my registrar the appropriate records for web pages and email were set to ip address 142.179.54.37.
Before this was done keying that ip into the address line of a browser gave the default page at /var/www/html. Since the change was made the url www.choked.ca doesn’t resolve, but the ip address gives the html at /home/choked/public_html.
I don’t understand why this takes place. I’ve copied out the virtualhosts section of httpd.conf below in the hopes that someone with sharper eyes than mine may see a problem. It looks ok to me.
Ideas?
Dave
<VirtualHost 192.168.0.253:80>
SuexecUserGroup #501 #502
ServerName choked.ca
ServerAlias www.choked.ca
ServerAlias lists.choked.ca
DocumentRoot /home/choked/public_html
ErrorLog /home/choked/logs/error_log
CustomLog /home/choked/logs/access_log combined
ScriptAlias /cgi-bin/ /home/choked/cgi-bin/
ScriptAlias /awstats /home/choked/cgi-bin
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/choked/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/choked/cgi-bin>
allow from all
</Directory>
Alias /dav /home/choked/public_html
Alias /pipermail /var/lib/mailman/archives/public
<Location /dav>
DAV On
AuthType Basic
AuthName choked.cabcwebinc.com
AuthUserFile /home/choked/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
Satisfy All
</Location>
<Files awstats.pl>
AuthName "choked.ca statistics"
AuthType Basic
AuthUserFile /home/choked/.awstats-htpasswd
require valid-user
</Files>
RedirectMatch /cgi-bin/mailman/([^/])(.) https://choked.ca:10000/virtualmin-mailman/unauthenticated/$1.cgi$2
RedirectMatch /mailman/([^/])(.) https://choked.ca:10000/virtualmin-mailman/unauthenticated/$1.cgi$2
PerlRequire /etc/webmin/virtualmin-google-analytics/apachemod.pl
PerlOutputFilterHandler Virtualmin::GoogleAnalytics
PerlSetVar AnalyticsID root
</VirtualHost>