You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Markus Feldmann <fe...@gmx.de> on 2011/07/01 14:35:32 UTC

[users@httpd] two name-based virtual hosts does not work

Hi All,

i have a name resolving problem of my virtual Host, I still posted my 
Problem at the mailing List news:gmane.network.dns.bind.user, called 
"Problem with name resolving", but i am not sure whether this is a 
problem with my DNS Server our a misconfigured APACHE2.2.16

I have a Debian Lenny Server. My sites are:
www.feldland.dyndns.org
test.feldland.dyndns.org

I registrated a dynamic Host for "feldland.dyndns.org" at dyndns.org. 
But because i want two reachable sites, which have different physical 
Root-directories i created two name-based virtual Hosts. Further on i 
made a Redirection/Rewrite to get the visitors from port 80 to 443.

Here is my config:
/etc/apache2/sites-enabled/umleiten --> http://paste.pocoo.org/show/425695/
All request will be redirected to Port 443:
cat /etc/apache2/sites-enabled/standard-ssl --> 
http://pastebin.com/BPZDTMGF

Is my config wrong?

regards Markus


---------------------------------------------------------------------
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: two name-based virtual hosts does not work

Posted by Francois Gingras <fr...@gmail.com>.
On Fri, Jul 1, 2011 at 10:36 AM, Markus Feldmann <fe...@gmx.de> wrote:
> Am 01.07.2011 15:40, schrieb Igor Cicimov:
>>
>> How did you set the sub domain test.feldland.dyndns.org
>> <http://test.feldland.dyndns.org/> to go to your server? Looks
>> definitely like DNS issue nothing to do with apache. Very easy to confirm:
>
> Hi,
>
> I thought Apache will do this for me? Or i could setup Apache to do this for
> me? As you can see in my Apache-configs, i did not setup
> "feldland.dyndns.org", but test.... and www..., so why does he can resolve
> feldland.dyndns.org and do i need DNS to solve my problem or only Apache?
>
> regards Markus
>
>
> ---------------------------------------------------------------------
> 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
>
>

Markus,

DNS resolution is definitely outside the scope of apache httpd. You
must ensure that each value of ServerName and ServerAlias resolves to
the IP of your server.

Frank

---------------------------------------------------------------------
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


[users@httpd] Re: two name-based virtual hosts does not work

Posted by Markus Feldmann <fe...@gmx.de>.
Am 01.07.2011 15:40, schrieb Igor Cicimov:
> How did you set the sub domain test.feldland.dyndns.org
> <http://test.feldland.dyndns.org/> to go to your server? Looks
> definitely like DNS issue nothing to do with apache. Very easy to confirm:
Hi,

I thought Apache will do this for me? Or i could setup Apache to do this 
for me? As you can see in my Apache-configs, i did not setup 
"feldland.dyndns.org", but test.... and www..., so why does he can 
resolve feldland.dyndns.org and do i need DNS to solve my problem or 
only Apache?

regards Markus


---------------------------------------------------------------------
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: two name-based virtual hosts does not work

Posted by Igor Cicimov <ic...@gmail.com>.
How did you set the sub domain test.feldland.dyndns.org to go to your
server? Looks definitely like DNS issue nothing to do with apache. Very easy
to confirm:

$ nslookup feldland.dyndns.org
Server:         192.168.1.200
Address:        192.168.1.200#53

Non-authoritative answer:
Name:   feldland.dyndns.org
Address: 92.76.234.69


$ nslookup test.feldland.dyndns.org
Server:         192.168.1.200
Address:        192.168.1.200#53

** server can't find test.feldland.dyndns.org: NXDOMAIN


Igor

On Fri, Jul 1, 2011 at 10:54 PM, Markus Feldmann <fe...@gmx.de>wrote:

> I forgot to wrote that i can acces http://feldland.dyndns.org
>
>
>
> ------------------------------**------------------------------**---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/**userslist.html<http://httpd.apache.org/userslist.html>>
> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.**apache.org<us...@httpd.apache.org>
>  "   from the digest: users-digest-unsubscribe@**httpd.apache.org<us...@httpd.apache.org>
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

[users@httpd] Re: two name-based virtual hosts does not work

Posted by Markus Feldmann <fe...@gmx.de>.
I forgot to wrote that i can acces http://feldland.dyndns.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