dyndns.org

Kenazo

Lifer
Sep 15, 2000
10,429
1
81
ok, so here's the question;
Say I have two different dyndns.org domains that are both redirected to my computer, (DSL, so it's a dynamic).
let's assume I'm hosting two different webpages, and I want domain "a" to call up the right webpage, page "a" and not page "b" which of course my domain "b" is supposed to call up. how would I go about doing this, since they both are linked to the same ip address?

I've figured out everything else so far, now i've hit a wall. :)
 

WarmAndSCSI

Banned
Jun 4, 2001
1,683
0
0
Just make two virtual servers on your webserver and give each one a different hostname. I can be more detailed if you give me the HTTP server you're running.
 

skyking

Lifer
Nov 21, 2001
22,618
5,723
146
This is at the very end of httpd.conf, regarding virtual hosting.
This is in apache2:

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 *>
ServerAdmin service@xxx.com
DocumentRoot /usr/local/www/xxxdocs
ServerName www.xxx.com
# ErrorLog /var/log/dummy-host.example.com-error_log default lines, commented out if not used
# CustomLog /var/log/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost *>
ServerAdmin service@xxx.com
DocumentRoot /usr/local/www/yyydocs
ServerName www.yyy.com

</VirtualHost>

Replace xxx and yyy with the right values and paths, and you are good to go.