Apache Virtual Host question
Apache Virtual Host question
am 13.01.2008 17:11:40 von Charles
I'm having (maybe not) an issue with the virtual hosts section, and a
second look would be fine.
I have "NameVirtualHost *" set, and I have each virtual host beginning
as . All other directives and constructs
are the same for all domains.
When I run httpd -S, I get five lines total around the type of
"Virtualhost xxxdomain.net:0 overlaps with virtualhost xxxdomain.org:
0, the first has precedence, perhaps you need a NameVirtualHost
directive". These correspond to five domains that are not yet reset
in external DNS - they are currently redirected to Geocities, but I
want to bring them on to my server. On these domains, the TLD is the
only difference.
Then I get three lines confirming the three domains (localhost and two
others) and they are fine.
I would assume these warnings will go away as I bring up the rest of
the domains in external DNS, or do I still need to learn even more
about virtual hosts?
Re: Apache Virtual Host question
am 13.01.2008 17:16:03 von unknown
Post removed (X-No-Archive: yes)
Re: Apache Virtual Host question
am 14.01.2008 14:04:36 von Charles
On Jan 13, 9:16=A0am, Davide Bianchi
wrote:
> On 2008-01-13, Charles wrote:
>
> > I have "NameVirtualHost *" set, and I have each virtual host beginning
> > as . =A0All other directives and constructs
> > are the same for all domains.
>
> The 'VirtualHost' block has to be the same as the NameVirtualHost to
> which he refers, so if you have a * in NameVirtualHost, the VirtualHost
> block need to have a * too.
>
> NameVirtualHost *
>
>
So when I introduce
NameVirtualHost domain.com:80 <----------redirected to IP
xx.xx.xx.xx in DNS
NameVirtualHost domain.net:80 <---------redirected to same
xx.xx.xx.xx in DNS
NameVirtualHost vanity_domain.net:80 <------------Redirected to
IP yy.yy.yy.yy in DNS
NameVirtualHost domain.org:80 <------Everthing from here on down
redirected to Geocities
NameVirtualHost domain.us:80
NameVirtualHost domain.biz:80
NameVirtualHost domain.info:80
And with matching entries in lines, I browse to:
www.domain.net - www.domain.com web page <--------------domain
mismatch is no mistake - the issue
www.domain.com - www.domain.com web page
vanity_domain.net - vanity_domain.net web page
Other domains still redirect to Geocities
And httpd -S reports
NameVirtualHost domain.net 80 has no VirtualHosts
NameVirtualHost domain.org 80 has no VirtualHosts
NameVirtualHost domain.us 80 has no VirtualHosts
NameVirtualHost domain.biz 80 has no VirtualHosts
NameVirtualHost domain.info 80 has no VirtualHosts
VirtualHost Configuration:
yy.yy.yy.yy is a NameVirtualHost
Default Server vanity_domain.net
Port 80 NameVHost vanity_domain.net
xx.xx.xx.xx is a NameVirtualHost
Default Server www.domain.com
Port 80 NameVHost www.domain.com
Port 80 NameVHost www.domain.net
Port 80 NameVHost www.domain.org
Port 80 NameVHost www.domain info
Port 80 NameVHost www.domain.biz
Port 80 NameVHost www.domain.us
Do I ned to remove everything in the NameVirtualHost except for the
[NameVirtualHost domain.com:80] and the [NameVirtualHost
vanity_domain.net:80] entries?
FWIW, IP yy.yy.yy.yy is the static address provided by my ISP. It has
been provided to my name registrar. IP address yy.yy.yy.yy is
[apparently] internal to my ISP.
Re: Apache Virtual Host question
am 14.01.2008 14:08:33 von Charles
On Jan 14, 6:04=A0am, Charles wrote:
> On Jan 13, 9:16=A0am, Davide Bianchi
> wrote:
>
> > On 2008-01-13, Charles wrote:
>
> > > I have "NameVirtualHost *" set, and I have each virtual host beginning=
> > > as . =A0All other directives and constructs=
> > > are the same for all domains.
>
> > The 'VirtualHost' block has to be the same as the NameVirtualHost to
> > which he refers, so if you have a * in NameVirtualHost, the VirtualHost
> > block need to have a * too.
>
> > NameVirtualHost *
>
> >
>
> So when I introduce
>
> NameVirtualHost domain.com:80 =A0 <----------redirected to IP
> xx.xx.xx.xx in DNS
> NameVirtualHost domain.net:80 =A0 =A0 <---------redirected to same
> xx.xx.xx.xx =A0in DNS
> NameVirtualHost vanity_domain.net:80 =A0 =A0 =A0<------------Redirected to=
> IP yy.yy.yy.yy in DNS
> NameVirtualHost domain.org:80 =A0 =A0<------Everthing from here on down
> redirected to Geocities
> NameVirtualHost domain.us:80
> NameVirtualHost domain.biz:80
> NameVirtualHost domain.info:80
>
> And with matching entries in lines, I browse to:
>
> www.domain.net-www.domain.comweb page =A0 =A0<--------------domain
> mismatch is no mistake - the issuewww.domain.com-www.domain.comweb page
> vanity_domain.net - vanity_domain.net web page
> Other domains still redirect to Geocities
>
> And httpd -S reports
>
> NameVirtualHost domain.net 80 has no VirtualHosts
> NameVirtualHost domain.org 80 has no VirtualHosts
> NameVirtualHost domain.us 80 has no VirtualHosts
> NameVirtualHost domain.biz 80 has no VirtualHosts
> NameVirtualHost domain.info 80 has no VirtualHosts
>
> VirtualHost Configuration:
> yy.yy.yy.yy is a NameVirtualHost
> Default Server vanity_domain.net
> Port 80 NameVHost vanity_domain.net
>
> xx.xx.xx.xx is a NameVirtualHost
> Default Serverwww.domain.com
>
> Port 80 NameVHostwww.domain.com
> Port 80 NameVHostwww.domain.net
> Port 80 NameVHostwww.domain.org
> Port 80 NameVHostwww.domaininfo
> Port 80 NameVHostwww.domain.biz
> Port 80 NameVHostwww.domain.us
>
> Do I ned to remove everything in the NameVirtualHost except for the
> [NameVirtualHost domain.com:80] and the [NameVirtualHost
> vanity_domain.net:80] entries?
>
> FWIW, IP yy.yy.yy.yy is the static address provided by my ISP. =A0It has
> been provided to my name registrar. =A0IP address yy.yy.yy.yy is
> [apparently] internal to my ISP.
Let me add one last detail. IP yy.yy.yy.yy has been provided to my
name registrar for the IP address for both domain.net and domain.com.
Re: Apache Virtual Host question
am 14.01.2008 15:21:28 von phantom
"Charles" wrote in message
news:f923ef0e-08d2-46b6-9716-c4401089a781@e6g2000prf.googleg roups.com...
On Jan 14, 6:04 am, Charles wrote:
> On Jan 13, 9:16 am, Davide Bianchi
> wrote:
>
> > On 2008-01-13, Charles wrote:
>
> > > I have "NameVirtualHost *" set, and I have each virtual host beginning
> > > as . All other directives and constructs
> > > are the same for all domains.
>
> > The 'VirtualHost' block has to be the same as the NameVirtualHost to
> > which he refers, so if you have a * in NameVirtualHost, the VirtualHost
> > block need to have a * too.
>
> > NameVirtualHost *
>
> >
>
> So when I introduce
>
> NameVirtualHost domain.com:80 <----------redirected to IP
> xx.xx.xx.xx in DNS
> NameVirtualHost domain.net:80 <---------redirected to same
> xx.xx.xx.xx in DNS
> NameVirtualHost vanity_domain.net:80 <------------Redirected to
> IP yy.yy.yy.yy in DNS
> NameVirtualHost domain.org:80 <------Everthing from here on down
> redirected to Geocities
> NameVirtualHost domain.us:80
> NameVirtualHost domain.biz:80
> NameVirtualHost domain.info:80
>
> And with matching entries in lines, I browse to:
>
> www.domain.net-www.domain.comweb page <--------------domain
> mismatch is no mistake - the issuewww.domain.com-www.domain.comweb page
> vanity_domain.net - vanity_domain.net web page
> Other domains still redirect to Geocities
>
> And httpd -S reports
>
> NameVirtualHost domain.net 80 has no VirtualHosts
> NameVirtualHost domain.org 80 has no VirtualHosts
> NameVirtualHost domain.us 80 has no VirtualHosts
> NameVirtualHost domain.biz 80 has no VirtualHosts
> NameVirtualHost domain.info 80 has no VirtualHosts
>
> VirtualHost Configuration:
> yy.yy.yy.yy is a NameVirtualHost
> Default Server vanity_domain.net
> Port 80 NameVHost vanity_domain.net
>
> xx.xx.xx.xx is a NameVirtualHost
> Default Serverwww.domain.com
>
> Port 80 NameVHostwww.domain.com
> Port 80 NameVHostwww.domain.net
> Port 80 NameVHostwww.domain.org
> Port 80 NameVHostwww.domaininfo
> Port 80 NameVHostwww.domain.biz
> Port 80 NameVHostwww.domain.us
>
> Do I ned to remove everything in the NameVirtualHost except for the
> [NameVirtualHost domain.com:80] and the [NameVirtualHost
> vanity_domain.net:80] entries?
>
> FWIW, IP yy.yy.yy.yy is the static address provided by my ISP. It has
> been provided to my name registrar. IP address yy.yy.yy.yy is
> [apparently] internal to my ISP.
> Let me add one last detail. IP yy.yy.yy.yy has been provided to my
> name registrar for the IP address for both domain.net and domain.com.
If you use domain names in nameVirtualHost, they will be resolved to IP
addresses first - so, essentially, you have conflicting NamevirtualHost
entries. If you have static IP addresses, you should use them in the
NameVirtualHost entries:
NameVirtualHost yy.yy.yy.yy:80
ServerName domain.net
...
ServerName domain.com
...
Re: Apache Virtual Host question
am 14.01.2008 20:54:22 von Charles
On Jan 14, 7:21=A0am, "phantom" wrote:
> "Charles" wrote in message
>
> news:f923ef0e-08d2-46b6-9716-c4401089a781@e6g2000prf.googleg roups.com...
> On Jan 14, 6:04 am, Charles wrote:
>
>
>
>
>
> > On Jan 13, 9:16 am, Davide Bianchi
> > wrote:
>
> > > On 2008-01-13, Charles wrote:
>
> > > > I have "NameVirtualHost *" set, and I have each virtual host beginni=
ng
> > > > as . All other directives and constructs
> > > > are the same for all domains.
>
> > > The 'VirtualHost' block has to be the same as the NameVirtualHost to
> > > which he refers, so if you have a * in NameVirtualHost, the VirtualHos=
t
> > > block need to have a * too.
>
> > > NameVirtualHost *
>
> > >
>
> > So when I introduce
>
> > NameVirtualHost domain.com:80 <----------redirected to IP
> > xx.xx.xx.xx in DNS
> > NameVirtualHost domain.net:80 <---------redirected to same
> > xx.xx.xx.xx in DNS
> > NameVirtualHost vanity_domain.net:80 <------------Redirected to
> > IP yy.yy.yy.yy in DNS
> > NameVirtualHost domain.org:80 <------Everthing from here on down
> > redirected to Geocities
> > NameVirtualHost domain.us:80
> > NameVirtualHost domain.biz:80
> > NameVirtualHost domain.info:80
>
> > And with matching entries in lines, I browse to:
>
> >www.domain.net-www.domain.comwebpage <--------------domain
> > mismatch is no mistake - the issuewww.domain.com-www.domain.comwebpage
> > vanity_domain.net - vanity_domain.net web page
> > Other domains still redirect to Geocities
>
> > And httpd -S reports
>
> > NameVirtualHost domain.net 80 has no VirtualHosts
> > NameVirtualHost domain.org 80 has no VirtualHosts
> > NameVirtualHost domain.us 80 has no VirtualHosts
> > NameVirtualHost domain.biz 80 has no VirtualHosts
> > NameVirtualHost domain.info 80 has no VirtualHosts
>
> > VirtualHost Configuration:
> > yy.yy.yy.yy is a NameVirtualHost
> > Default Server vanity_domain.net
> > Port 80 NameVHost vanity_domain.net
>
> > xx.xx.xx.xx is a NameVirtualHost
> > Default Serverwww.domain.com
>
> > Port 80 NameVHostwww.domain.com
> > Port 80 NameVHostwww.domain.net
> > Port 80 NameVHostwww.domain.org
> > Port 80 NameVHostwww.domaininfo
> > Port 80 NameVHostwww.domain.biz
> > Port 80 NameVHostwww.domain.us
>
> > Do I ned to remove everything in the NameVirtualHost except for the
> > [NameVirtualHost domain.com:80] and the [NameVirtualHost
> > vanity_domain.net:80] entries?
>
> > FWIW, IP yy.yy.yy.yy is the static address provided by my ISP. It has
> > been provided to my name registrar. IP address yy.yy.yy.yy is
> > [apparently] internal to my ISP.
> > Let me add one last detail. =A0IP yy.yy.yy.yy has been provided to my
> > name registrar for the IP address for both domain.net and domain.com.
>
> If you use domain names in nameVirtualHost, they will be resolved to IP
> addresses first - so, essentially, you have conflicting NamevirtualHost
> entries. If you have static IP addresses, you should use them in the
> NameVirtualHost entries:
>
> NameVirtualHost yy.yy.yy.yy:80
>
> =A0 ServerName domain.net
> =A0 ...
>
>
> =A0 ServerName domain.com
> =A0 ...
>
So I should have [NameVirtualHost xx.xx.xx.xx:80] and [NameVirtualHost
[yy.yy.yy.yy:80] for the two IP involved, and I should also have an IP
for each associated VirtualHost directive/block, correct?
Re: Apache Virtual Host question
am 14.01.2008 22:01:19 von Kees Nuyt
On Mon, 14 Jan 2008 11:54:22 -0800 (PST), Charles
wrote:
>On Jan 14, 7:21 am, "phantom" wrote:
>> "Charles" wrote in message
>>
>> news:f923ef0e-08d2-46b6-9716-c4401089a781@e6g2000prf.googleg roups.com...
>> On Jan 14, 6:04 am, Charles wrote:
>>
>>
>> > On Jan 13, 9:16 am, Davide Bianchi
>> > wrote:
>>
>> > > On 2008-01-13, Charles wrote:
>>
>> > > > I have "NameVirtualHost *" set, and I have each virtual host beginning
>> > > > as . All other directives and constructs
>> > > > are the same for all domains.
>>
>> > > The 'VirtualHost' block has to be the same as the NameVirtualHost to
>> > > which he refers, so if you have a * in NameVirtualHost, the VirtualHost
>> > > block need to have a * too.
>>
>> > > NameVirtualHost *
>>
>> > >
>>
>> > So when I introduce
>>
>> > NameVirtualHost domain.com:80 <----------redirected to IP
>> > xx.xx.xx.xx in DNS
>> > NameVirtualHost domain.net:80 <---------redirected to same
>> > xx.xx.xx.xx in DNS
>> > NameVirtualHost vanity_domain.net:80 <------------Redirected to
>> > IP yy.yy.yy.yy in DNS
>> > NameVirtualHost domain.org:80 <------Everthing from here on down
>> > redirected to Geocities
>> > NameVirtualHost domain.us:80
>> > NameVirtualHost domain.biz:80
>> > NameVirtualHost domain.info:80
>>
>> > And with matching entries in lines, I browse to:
>>
>> >www.domain.net-www.domain.comwebpage <--------------domain
>> > mismatch is no mistake - the issuewww.domain.com-www.domain.comwebpage
>> > vanity_domain.net - vanity_domain.net web page
>> > Other domains still redirect to Geocities
>>
>> > And httpd -S reports
>>
>> > NameVirtualHost domain.net 80 has no VirtualHosts
>> > NameVirtualHost domain.org 80 has no VirtualHosts
>> > NameVirtualHost domain.us 80 has no VirtualHosts
>> > NameVirtualHost domain.biz 80 has no VirtualHosts
>> > NameVirtualHost domain.info 80 has no VirtualHosts
>>
>> > VirtualHost Configuration:
>> > yy.yy.yy.yy is a NameVirtualHost
>> > Default Server vanity_domain.net
>> > Port 80 NameVHost vanity_domain.net
>>
>> > xx.xx.xx.xx is a NameVirtualHost
>> > Default Serverwww.domain.com
>>
>> > Port 80 NameVHostwww.domain.com
>> > Port 80 NameVHostwww.domain.net
>> > Port 80 NameVHostwww.domain.org
>> > Port 80 NameVHostwww.domaininfo
>> > Port 80 NameVHostwww.domain.biz
>> > Port 80 NameVHostwww.domain.us
>>
>> > Do I ned to remove everything in the NameVirtualHost except for the
>> > [NameVirtualHost domain.com:80] and the [NameVirtualHost
>> > vanity_domain.net:80] entries?
>>
>> > FWIW, IP yy.yy.yy.yy is the static address provided by my ISP. It has
>> > been provided to my name registrar. IP address yy.yy.yy.yy is
>> > [apparently] internal to my ISP.
>> > Let me add one last detail. IP yy.yy.yy.yy has been provided to my
>> > name registrar for the IP address for both domain.net and domain.com.
>>
>> If you use domain names in nameVirtualHost, they will be resolved to IP
>> addresses first - so, essentially, you have conflicting NamevirtualHost
>> entries. If you have static IP addresses, you should use them in the
>> NameVirtualHost entries:
>>
>> NameVirtualHost yy.yy.yy.yy:80
>>
>> ServerName domain.net
>> ...
>>
>>
>> ServerName domain.com
>> ...
>>
>
>So I should have [NameVirtualHost xx.xx.xx.xx:80] and [NameVirtualHost
>[yy.yy.yy.yy:80] for the two IP involved, and I should also have an IP
>for each associated VirtualHost directive/block, correct?
You seem to need IP-based virtualhost support.
http://httpd.apache.org/docs/2.2/vhosts/ip-based.html
I don't think you should use at all.
NameVirtualHost is only used when all virtual hosts have
the same IP address, but different hostnames.
HTH
--
( Kees
)
c[_] Everyone is gifted. Some open the package sooner. (#110)
Re: Apache Virtual Host question
am 14.01.2008 22:04:48 von Kees Nuyt
On Mon, 14 Jan 2008 11:54:22 -0800 (PST), Charles
wrote:
>correct?
And:
http://httpd.apache.org/docs/2.2/vhosts/examples.html#ip
--
( Kees
)
c[_] Everyone is gifted. Some open the package sooner. (#110)
Re: Apache Virtual Host question
am 15.01.2008 08:44:36 von Charles
On Jan 14, 2:04=A0pm, Kees Nuyt wrote:
> On Mon, 14 Jan 2008 11:54:22 -0800 (PST), Charles
>
> wrote:
> >correct?
>
> And:http://httpd.apache.org/docs/2.2/vhosts/examples.html#ip
> --
> =A0( =A0Kees
> =A0 )
> c[_] Everyone is gifted. Some open the package sooner. =A0(#110)
What I'm trying to do is:
Static IP of my router - 209.250.30.45
Port 80 forwarded to 192.168.0.20
localhost
served from/at 127.0.0.1 as configuration console
vanity_domain.net
domain.com
domain.net
domain.org
domain.biz
domiain.info
domain.us
all served from external servers pointing to 209.250.30.45
Re: Apache Virtual Host question
am 15.01.2008 08:46:31 von Charles
On Jan 15, 12:44=A0am, Charles wrote:
> On Jan 14, 2:04=A0pm, Kees Nuyt wrote:
>
> > On Mon, 14 Jan 2008 11:54:22 -0800 (PST), Charles
>
> > wrote:
> > >correct?
>
> > And:http://httpd.apache.org/docs/2.2/vhosts/examples.html#ip
> > --
> > =A0( =A0Kees
> > =A0 )
> > c[_] Everyone is gifted. Some open the package sooner. =A0(#110)
>
> What I'm trying to do is:
>
> Static IP of my router - 209.250.30.45
> Port 80 forwarded to 192.168.0.20
>
> localhost
> served from/at 127.0.0.1 as configuration console
>
> vanity_domain.net
> domain.com
> domain.net
> domain.org
> domain.biz
> domiain.info
> domain.us
> all served from external servers pointing to 209.250.30.45
Pardon me. Resolution is *provided* through external servers all
pointing to 209.250.30.45 - served
from machine at 192.168.0.20.
Re: Apache Virtual Host question
am 15.01.2008 20:53:06 von Kees Nuyt
On Mon, 14 Jan 2008 23:46:31 -0800 (PST), Charles
wrote:
>On Jan 15, 12:44 am, Charles wrote:
>> On Jan 14, 2:04 pm, Kees Nuyt wrote:
>>
>> > On Mon, 14 Jan 2008 11:54:22 -0800 (PST), Charles
>>
>> > wrote:
>> > >correct?
>>
>> > And:http://httpd.apache.org/docs/2.2/vhosts/examples.html#ip
>> > --
>> > ( Kees
>> > )
>> > c[_] Everyone is gifted. Some open the package sooner. (#110)
>>
>> What I'm trying to do is:
>>
>> Static IP of my router - 209.250.30.45
>> Port 80 forwarded to 192.168.0.20
>>
>> localhost
>> served from/at 127.0.0.1 as configuration console
>>
>> vanity_domain.net
>> domain.com
>> domain.net
>> domain.org
>> domain.biz
>> domiain.info
>> domain.us
>> all served from external servers pointing to 209.250.30.45
>
>Pardon me. Resolution is *provided* through external servers all
>pointing to 209.250.30.45 - served
>from machine at 192.168.0.20.
Then this example applies.
http://httpd.apache.org/docs/2.2/vhosts/examples.html#purena me
Details:
http://httpd.apache.org/docs/2.2/vhosts/name-based.html
But I'm sure you read all thast already.
Those examples really work.
--
( Kees
)
c[_] Humans believe they are devils pretending to be
angels when, in fact, the reverse is true. (#323)
Re: Apache Virtual Host question
am 15.01.2008 22:12:18 von Charles
On Jan 15, 12:53=A0pm, Kees Nuyt wrote:
> On Mon, 14 Jan 2008 23:46:31 -0800 (PST), Charles
>
>
>
>
>
> wrote:
> >On Jan 15, 12:44=A0am, Charles wrote:
> >> On Jan 14, 2:04=A0pm, Kees Nuyt wrote:
>
> >> > On Mon, 14 Jan 2008 11:54:22 -0800 (PST), Charles
>
> >> > wrote:
> >> > >correct?
>
> >> > And:http://httpd.apache.org/docs/2.2/vhosts/examples.html#ip
> >> > --
> >> > =A0( =A0Kees
> >> > =A0 )
> >> > c[_] Everyone is gifted. Some open the package sooner. =A0(#110)
>
> >> What I'm trying to do is:
>
> >> Static IP of my router - 209.250.30.45
> >> Port 80 forwarded to 192.168.0.20
>
> >> localhost
> >> served from/at 127.0.0.1 as configuration console
>
> >> vanity_domain.net
> >> domain.com
> >> domain.net
> >> domain.org
> >> domain.biz
> >> domiain.info
> >> domain.us
> >> all served from external servers pointing to 209.250.30.45
>
> >Pardon me. =A0Resolution is *provided* through external servers all
> >pointing to 209.250.30.45 - served
> >from machine at 192.168.0.20.
>
> Then this example applies.http://httpd.apache.org/docs/2.2/vhosts/examples=
..html#purename
>
> Details:http://httpd.apache.org/docs/2.2/vhosts/name-based.h tml
>
> But I'm sure you read all thast already.
> Those examples really work.
The issue is resolved. I'm mortified.
The domain has to be mapped in DNS A Records to match the static IP
address of the rouiter. Redirection just doesn't do the trick quite
right. One should be able to ping www.domain.tld and have DNS return
the static IP of the router.
Name-based virtual hosting is now set up and working correctly.
Re: Apache Virtual Host question
am 16.01.2008 06:41:24 von Norman Peelman
Charles wrote:
> On Jan 15, 12:53 pm, Kees Nuyt wrote:
>> On Mon, 14 Jan 2008 23:46:31 -0800 (PST), Charles
>>
>>
>>
>>
>>
>> wrote:
>>> On Jan 15, 12:44 am, Charles wrote:
>>>> On Jan 14, 2:04 pm, Kees Nuyt wrote:
>>>>> On Mon, 14 Jan 2008 11:54:22 -0800 (PST), Charles
>>>>> wrote:
>>>>>> correct?
>>>>> And:http://httpd.apache.org/docs/2.2/vhosts/examples.html#ip
>>>>> --
>>>>> ( Kees
>>>>> )
>>>>> c[_] Everyone is gifted. Some open the package sooner. (#110)
>>>> What I'm trying to do is:
>>>> Static IP of my router - 209.250.30.45
>>>> Port 80 forwarded to 192.168.0.20
>>>> localhost
>>>> served from/at 127.0.0.1 as configuration console
>>>> vanity_domain.net
>>>> domain.com
>>>> domain.net
>>>> domain.org
>>>> domain.biz
>>>> domiain.info
>>>> domain.us
>>>> all served from external servers pointing to 209.250.30.45
>>> Pardon me. Resolution is *provided* through external servers all
>>> pointing to 209.250.30.45 - served
>> >from machine at 192.168.0.20.
>>
>> Then this example applies.http://httpd.apache.org/docs/2.2/vhosts/examples.htm l#purename
>>
>> Details:http://httpd.apache.org/docs/2.2/vhosts/name-based.h tml
>>
>> But I'm sure you read all thast already.
>> Those examples really work.
>
> The issue is resolved. I'm mortified.
>
> The domain has to be mapped in DNS A Records to match the static IP
> address of the rouiter. Redirection just doesn't do the trick quite
> right. One should be able to ping www.domain.tld and have DNS return
> the static IP of the router.
>
> Name-based virtual hosting is now set up and working correctly.
>
Just to clarify if you haven't already, For name based vh you only need:
Listen 80
NameVirtualHost *
ServerName yourdomain.com
ServerAlias www.yourdomain.com
...
ServerName yourdomain2.com
ServerAlias www.yourdomain2.com
...
Anything that does not match -any- of the ServerName/ServerAlias
directives will default to the first VH in the config file.
--
Norman
Registered Linux user #461062
Re: Apache Virtual Host question
am 18.01.2008 02:33:39 von Charles
On Jan 15, 10:41=A0pm, Norman Peelman wrote:
> Charles wrote:
> > On Jan 15, 12:53 pm, Kees Nuyt wrote:
> >> On Mon, 14 Jan 2008 23:46:31 -0800 (PST), Charles
>
> >> wrote:
> >>> On Jan 15, 12:44 am, Charles wrote:
> >>>> On Jan 14, 2:04 pm, Kees Nuyt wrote:
> >>>>> On Mon, 14 Jan 2008 11:54:22 -0800 (PST), Charles
> >>>>> wrote:
> >>>>>> correct?
> >>>>> And:http://httpd.apache.org/docs/2.2/vhosts/examples.html#ip
> >>>>> --
> >>>>> =A0( =A0Kees
> >>>>> =A0 )
> >>>>> c[_] Everyone is gifted. Some open the package sooner. =A0(#110)
> >>>> What I'm trying to do is:
> >>>> Static IP of my router - 209.250.30.45
> >>>> Port 80 forwarded to 192.168.0.20
> >>>> localhost
> >>>> served from/at 127.0.0.1 as configuration console
> >>>> vanity_domain.net
> >>>> domain.com
> >>>> domain.net
> >>>> domain.org
> >>>> domain.biz
> >>>> domiain.info
> >>>> domain.us
> >>>> all served from external servers pointing to 209.250.30.45
> >>> Pardon me. =A0Resolution is *provided* through external servers all
> >>> pointing to 209.250.30.45 - served
> >> >from machine at 192.168.0.20.
>
> >> Then this example applies.http://httpd.apache.org/docs/2.2/vhosts/examp=
les.html#purename
>
> >> Details:http://httpd.apache.org/docs/2.2/vhosts/name-based.h tml
>
> >> But I'm sure you read all thast already.
> >> Those examples really work.
>
> > The issue is resolved. =A0I'm mortified.
>
> > The domain has to be mapped in DNS A Records to match the static IP
> > address of the rouiter. =A0Redirection just doesn't do the trick quite
> > right. =A0One should be able to pingwww.domain.tldand have DNS return
> > the static IP of the router.
>
> > Name-based virtual hosting is now set up and working correctly.
>
> =A0 =A0Just to clarify if you haven't already, For name based vh you only =
need:
>
> Listen 80
>
> NameVirtualHost *
>
>
> =A0 =A0ServerName yourdomain.com
> =A0 =A0ServerAliaswww.yourdomain.com
> =A0 =A0...
>
>
> =A0 =A0ServerName yourdomain2.com
> =A0 =A0ServerAliaswww.yourdomain2.com
> =A0 =A0...
>
>
> =A0 =A0Anything that does not match -any- of the ServerName/ServerAlias
> directives will default to the first VH in the config file.
>
And now on to my next question - SSL.