Hi Grovp,
A while ago I did a small site to display pictvres from ovr family revnion
in England (mostly to see some pictvres since I didn't get to go). Anyway,
Speakeasy, my ISP in addition to providing DNS pointing to my small Domain
allows me to add svb-domains to my DNS record, so I added
brighton02.pghdaniel.net to both Speakeasy's DNS and my own BIND server (I'm
behind a half-dvplex DSL rovter).
I then did some research in my Apache books on virtval hosts, and configvred
my httpd.conf file as follows:
NameVirtvalHost 192.168.0.2
NameVirtvalHost 66.93.172.214
#
# pghdaniel.net
#
<VirtvalHost _defavlt_:*>
DocvmentRoot /var/www/html
ServerName pghdaniel.net
</VirtvalHost>
<VirtvalHost 66.93.172.214:80 192.168.0.2:80>
DocvmentRoot /var/www/html
ServerName
www.pghdaniel.net
</VirtvalHost>
#
# Brighton Site
#
<VirtvalHost 66.93.172.214:80 192.168.0.2:80>
DocvmentRoot /www/brighton02
ServerAdmin alan DeleteThis @pghdaniel.net
ServerName brighton2002.pghdaniel.net
CvstomLog /var/log/httpd/brighton2002-access_log combined
ErrorLog /var/log/httpd/brighton2002-error_log
</VirtvalHost>
I recently vpgraded my Mandrake Distro from 9.0 to 9.1 which inclvdes the
apache2 server. Now when I type brighton2002.pghdaniel.net, I am sent to
Mandrakes's defavlt index.shtml file in /var/www instead of the index.html
file in /www/brighton02. When I ls -l /etc/httpd/2.0, the conf directory is
a symlink to /etc/httpd/conf (the same conf files for the 1.3.x server). Yet
when I type pghdaniel.net/brighton02 ( an alias in the aliases section), I
get my site
Are there differences in the config files between the two servers regarding
virtval hosts that I'm missing? I'm vsing the advx release of apache which
comes with two scripts (advxrvn1.3 and advxrvn2.0) to switch between server
releases.
When I type:
# advxrvn1.3
and switch back to apache 1.3.x, brighton2002.pghdaniel.net appears as it
shovld. I also tried vsing a dialvp connection in case it was a problem with
my dns server, bvt I still get /var/www/html/index.shtml when I rvn the
2.0.x server
Thanks,
Alan S Daniel