Zane217
09-02-2003, 06:07 PM
Hi, I am well on my way to setting up apache 2.0.47
I Have 2 dyn. dns. from DynDns.org
Zane217.homeip.net
Zane217.homelinux.com
when i point my browser to
http://zane217.homeip.net it shows up correct
when i go to
http://zane217.homelinux.com it shows up correct
I think these two are found on my network not over the internet
when i goto
http://www.zane217.homeip.net it is correct
when i goto
http://www.zane217.homelinux.com i get the page for zane217.homeip.net
I know that the first page in your v-host is the default so i think that is where i am getting the incorrrect page from but how do i fix it.
here is the v-host part of my httpd.conf
#
# Use name-based virtual hosting.
#
NameVirtualHost *
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *>
DocumentRoot /home/web-pages/test1
ServerName zane217.homeip.net
</VirtualHost>
<VirtualHost *>
DocumentRoot /home/web-pages/test2
ServerName zane217.homelinux.com
</VirtualHost>
#<VirtualHost *>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
as you can see from the web pages i am just in the testing stages. they will be up today 9/2/03 and tommorow 9/3/03 you can try them out. or just hack into my box. its all going to be erased and i will start fresh anyway. thanks for your help.
Gary
I Have 2 dyn. dns. from DynDns.org
Zane217.homeip.net
Zane217.homelinux.com
when i point my browser to
http://zane217.homeip.net it shows up correct
when i go to
http://zane217.homelinux.com it shows up correct
I think these two are found on my network not over the internet
when i goto
http://www.zane217.homeip.net it is correct
when i goto
http://www.zane217.homelinux.com i get the page for zane217.homeip.net
I know that the first page in your v-host is the default so i think that is where i am getting the incorrrect page from but how do i fix it.
here is the v-host part of my httpd.conf
#
# Use name-based virtual hosting.
#
NameVirtualHost *
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *>
DocumentRoot /home/web-pages/test1
ServerName zane217.homeip.net
</VirtualHost>
<VirtualHost *>
DocumentRoot /home/web-pages/test2
ServerName zane217.homelinux.com
</VirtualHost>
#<VirtualHost *>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
as you can see from the web pages i am just in the testing stages. they will be up today 9/2/03 and tommorow 9/3/03 you can try them out. or just hack into my box. its all going to be erased and i will start fresh anyway. thanks for your help.
Gary