Okay, for some reason my name server doesn't resolve the name properly.
I'm using RH 7.2 w/apache 1.3. Below are my config files. For reference,
www.AAA.org is the internally hosted website I want our main webserver to proxy/virtual host.
www.BBB.com is our main webserver's domain name (also virtually hosted).
I figured I could tell our name server to send all requests for AAA.org to the same location as BBB.com. The db named file for BBB.com then uses an alias of AAA.org. That means they both go to the same address, and hands off all port 80 requests to apache. Apache then proxy serves BBB.org by sending all requests for that to the internal 192.168.0.152. However all I get from traceroute is "unknown host:
www.AAA.org". Where is my thinking flawed? (more than 1 answer is allowed.
).
www.BBB.com works fine, but now
www.AAA.org can't even be seen internally.
..........
LoadModule proxy_module modules/libproxy.so
..........
AddModule mod_proxy.c
..........
<VirtualHost *>
ServerName
www.AAA.org
DocumentRoot /var/www/html
ProxyRequests Off
ProxyPass /
http://192.168.0.152
ProxyPassReverse /
http://192.168.0.152
</VirtualHost>
This is what's in /etc/named.conf:
.....................
zone "BBB.com" in {
type master;
file "db.BBB.com";
};
zone "AAA.org" in {
type master;
file "db.BBB.com";
};
....................
And this is what's in /var/named/db.BBB.com:
$TTL 3h
BBB.com. IN SOA ns1.BBB.com. root.BBB.com. (
2 ; Serial
3h ; Reresh after 3 hours
1h ; Retry after 1 hour
1w ; Expire after 1 week
1h ) ; Negative caching TTL of 1 day
;
; Name servers
;
BBB.com. IN NS ns1.BBB.com.
BBB.com. IN NS ns2.BBB.com.
;
; Addresses for the canonical names
;
localhost.BBB.com. IN A 127.0.0.1
ns1.BBB.com. IN A 12.170.Y.Z0
ns2.BBB.com. IN A 12.170.Y.Z1
grandpa.BBB.com. IN A 12.170.Y.Z2
BBB.com. IN MX 1 grandpa.BBB.com.
;
; Aliases
;
mail.BBB.com. IN CNAME grandpa.BBB.com.
ftp.BBB.com. IN CNAME grandpa.BBB.com.
www.BBB.com. IN CNAME grandpa.BBB.com.
www.AAA.org. IN CNAME grandpa.BBB.com.