Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

inn2 debian - domain configuration

0 views
Skip to first unread message

Dzooo

unread,
Dec 11, 2009, 6:12:15 AM12/11/09
to
Hi all,

how to setup domain in inn2 configuration ?

In file /etc/news/inn.conf I have found several places where can I put
domain name:

pathhost:
domain:
server:

To my server I have connected 9 domains (root domains domain.com
etc.etc.). I would like to create restriction to 1 domain. I mean server
news should be reachable only by one domain.

Right now I can connect to server using each domain. Is it possible to
create something like virtual hosts for inn2 ?


cheers

Dlugasxx

Julien ÉLIE

unread,
Dec 12, 2009, 12:00:01 PM12/12/09
to
> To my server I have connected 9 domains (root domains domain.com etc.etc.). I would like to create restriction to 1 domain. I
> mean server news should be reachable only by one domain.
>
> Right now I can connect to server using each domain. Is it possible to create something like virtual hosts for inn2 ?

Virtual hosts are used by HTTP.
A request by an HTTP client is for instance:

GET /page.html HTTP/1.1
Host: example.com
User-Agent: My Client

It is then easy for an HTTP server to know the virtual host.


That notion does not exist in NNTP. The protocol does not specify
any host name when requesting an article, or connecting to a server.
It is done only with the IP of the server.

I do not see how you could achieve what you want to do. The client will
connect to an IP address (returned by a DNS reverse of your domain).
Even iptables, before the request is received by INN, will not know the
domain name...
The IP header contains an IP address, not a host name.

--
Julien ᅵLIE

ᅵ Je viens de rencontrer Isocᅵle : il a une idᅵe pour un nouveau triangle. ᅵ
(Woody Allen)

0 new messages