You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Roger B.A Klorese" <ro...@queernet.org> on 2003/07/16 01:14:30 UTC
RE: [users@httpd] Re: Name resolution
> -- snip ---
> I´d use
>
> ServerAlias xyz.com *.xyz.com
>
> inside the virtual host directive.
>
>
> Regards,
>
> Alfonso
>
> -- snip ---
>
> Alfonso,
>
> I tried that it does not find "xyz.com" (site not found error) and
> "admin.xyz.com" is directed to www.xyz.com.
1) If you ONLY want xyz.com, but not anythingelse.xyz.com, to be the same
site as www.xyz.com, you need
ServerName www.xyz.com
ServerAlias xyz.com
If you want everything except admin.xyz.com to be the same site, you need
ServerName www.xyz.com
ServerAlias xyz.com *.xyz.com
....but you need to put that virtual host definition AFTER the one for
admin.xyz.com.
2) You MUST have an A record for xyz.com, in addition to the one for
www.xyz.com, pointing to the address.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Re: Name resolution
Posted by "Roger B.A Klorese" <ro...@queernet.org>.
> From: Roger B.A Klorese [mailto:rogerk@QueerNet.ORG]
> Sent: Tuesday, July 15, 2003 4:26 PM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Re: Name resolution
>
>
> Forward me the whole zone file -- there's a possible error,
> but context is
> important.
...in case he didn't want to post the whole zone... I meant to send this
privately, but what the hell...
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Re: Name resolution
Posted by "Roger B.A Klorese" <ro...@queernet.org>.
Forward me the whole zone file -- there's a possible error, but context is
important.
> -----Original Message-----
> From: Michael Lewis [mailto:mlewis@xelent.net]
> Sent: Tuesday, July 15, 2003 4:33 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Re: Name resolution
>
>
>
> ----- Original Message -----
> From: "Roger B.A Klorese" <ro...@queernet.org>
> To: <us...@httpd.apache.org>
> Sent: Tuesday, July 15, 2003 7:14 PM
> Subject: RE: [users@httpd] Re: Name resolution
>
>
> > 1) If you ONLY want xyz.com, but not anythingelse.xyz.com,
> to be the same
> > site as www.xyz.com, you need
> > ServerName www.xyz.com
> > ServerAlias xyz.com
> > If you want everything except admin.xyz.com to be the
> same site, you
> need
> > ServerName www.xyz.com
> > ServerAlias xyz.com *.xyz.com
> > ....but you need to put that virtual host definition
> AFTER the one for
> > admin.xyz.com.
>
> That took care of the admin vs. www problem (I knew it was
> simple), but how
> do I have the A record defined, I tried just:
>
> IN A 216.112.100.62
>
> But it still doesn't find it. DNS is not my forte, so I'm
> assuming this is
> also simple.
>
> Michael
>
>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Name resolution
Posted by Michael Lewis <ml...@xelent.net>.
----- Original Message -----
From: "Roger B.A Klorese" <ro...@queernet.org>
To: <us...@httpd.apache.org>
Sent: Tuesday, July 15, 2003 7:14 PM
Subject: RE: [users@httpd] Re: Name resolution
> 1) If you ONLY want xyz.com, but not anythingelse.xyz.com, to be the same
> site as www.xyz.com, you need
> ServerName www.xyz.com
> ServerAlias xyz.com
> If you want everything except admin.xyz.com to be the same site, you
need
> ServerName www.xyz.com
> ServerAlias xyz.com *.xyz.com
> ....but you need to put that virtual host definition AFTER the one for
> admin.xyz.com.
That took care of the admin vs. www problem (I knew it was simple), but how
do I have the A record defined, I tried just:
IN A 216.112.100.62
But it still doesn't find it. DNS is not my forte, so I'm assuming this is
also simple.
Michael
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Re: Name resolution
Posted by "Roger B.A Klorese" <ro...@queernet.org>.
> From: Michael Lewis [mailto:mlewis@xelent.net]
> Sent: Tuesday, July 15, 2003 4:37 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Re: Name resolution
>
>
> Thanks Alfonso and Roger, the last problem was the placement
> of my A record.
> I saw in Alfonso's response that it appeared before the other
> A records. I
> put mine in the same place and it worked.
It *is* placement, but not just location.
The important thing to remember is that a blank first field does not mean
"the domain" -- it means "same as the last record."
So if you have -- (using one of my own domains as an example) --
$ORIGIN queernet.org.
@ IN SOA queernet.org. hostmaster.queernet.org. (
2000011229
14400
3600
1728000
14400 )
IN NS ns1.everydns.net.
IN NS ns2.everydns.net.
IN NS ns3.everydns.net.
IN A 209.237.225.70
IN MX 20 castro.queernet.org.
castro IN A 209.237.225.70
IN MX 10 castro.queernet.org.
Then the @ in the first column *does* mean "the domain itself" and the SOA,
three NS records, A record, and MX record apply to the domain -- not because
the first field is blank, but because the first field is blank *and* the
previous record with a non-blank first field was for "@" - the domain
itself.
The blank first field in the last record I quoted below means that it's for
castro.queernet.org, since the previous record that had a filled-in first
field was for castro.
If you have
@ IN SOA ...etc.
IN NS ...etc.
www IN A 1.2.3.4
IN A 1.2.3.4
...the last record isn't for the domain -- it's essentially a duplicate of
the one right above it.
But if I'd said
@ IN SOA ...etc.
IN NS ...etc.
IN A 1.2.3.4
www IN A 1.2.3.4
...then the A record would go with the set of records for @.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Name resolution
Posted by Michael Lewis <ml...@xelent.net>.
Thanks Alfonso and Roger, the last problem was the placement of my A record.
I saw in Alfonso's response that it appeared before the other A records. I
put mine in the same place and it worked.
Michael
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: Name resolution
Posted by Alfonso Romero <ib...@prodigy.net.mx>.
Exactly. I think what´s missing is the A record in your zone file. For
example, I run a "laspro.dynu.com" ficticious site on my local LAN, and use
the following zone file in my name server:
$TTL 3600
laspro.dynu.com. IN SOA adeline.ibacsoft.dynu.com.
root.adeline.ibacsoft.dynu.com (
2806031 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS adeline.ibacsoft.dynu.com.
;
IN A 192.168.0.102
www IN CNAME @
mail IN CNAME @
ftp IN CNAME @
@ IN MX 10 mail.ibacsoft.dynu.com.
This is a virtual host, my registered domain is "ibacsoft.dynu.com". In this
"laspro.dynu.com" zone file I used the
IN A 192.168.0.102
line, where 192.168.0.102 is my local web server, along with the
ServerAlias laspro.dynu.com *.laspr.dynu.com
line in the virtual host directive, and it works.
Hope it helps,
Alfonso
----- Original Message -----
From: "Roger B.A Klorese" <ro...@queernet.org>
To: <us...@httpd.apache.org>
Sent: Tuesday, July 15, 2003 6:14 PM
Subject: RE: [users@httpd] Re: Name resolution
> -- snip ---
> I´d use
>
> ServerAlias xyz.com *.xyz.com
>
> inside the virtual host directive.
>
>
> Regards,
>
> Alfonso
>
> -- snip ---
>
> Alfonso,
>
> I tried that it does not find "xyz.com" (site not found error) and
> "admin.xyz.com" is directed to www.xyz.com.
1) If you ONLY want xyz.com, but not anythingelse.xyz.com, to be the same
site as www.xyz.com, you need
ServerName www.xyz.com
ServerAlias xyz.com
If you want everything except admin.xyz.com to be the same site, you need
ServerName www.xyz.com
ServerAlias xyz.com *.xyz.com
....but you need to put that virtual host definition AFTER the one for
admin.xyz.com.
2) You MUST have an A record for xyz.com, in addition to the one for
www.xyz.com, pointing to the address.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org