Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

Re: [PHP] redirecting a domain From: php3 <email protected>
Date: 07/15/00

Addressed to: Sam Carleton <scarleton <email protected>>
              php <php-general <email protected>>

** Reply to note from Sam Carleton <scarleton <email protected>> Fri, 14 Jul 2000 22:26:05 -0400
>
> I have an apache question and I have NO idea where to post it. Is
> there a newsgroup or mailing list simply for apache?
>
> I have multipal domain names: domain.net & domain.org. I would like to
> configure apache such that when someone goes to www.domain.org, they
> are "redirect" to www.domain.net. They are both the exact same web
> site, I simply want the domain name to show up as www.domain.net. Any
> thoughs on how to do that?

Do it in DNS.

domain.net.zone
---------------

www IN A 1.1.1.1

domain.org.zone
---------------

www IN A 1.1.1.1

1.1.1.zone
----------

1.1.1.1 IN PTR www.domain.net

httpd.conf
----------

<VirtualHost 1.1.1.1>
ServerName www.domain.net

# This virtual host serves www.domain.net and www.domain.org, using
# only one IP address...
#
# Reverse DNS, and the ServerName of both appear as www.domain.net.
#

</VirtualHost>

Rick Widmer
Internet Marketing Specialists
www.developersdesk.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>