Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.networking > #681
| From | Ivan Shmakov <ivan@gray.siamics.net> |
|---|---|
| Newsgroups | comp.os.linux.networking, alt.os.linux.slackware |
| Subject | Re: Only some IPs accessable? |
| Date | 2011-10-08 23:18 +0700 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <86hb3j5udo.fsf@gray.siamics.net> (permalink) |
| References | <j6nqe1$ipk$1@dont-email.me> <ogv5m8xn5a.ln2@news.roaima.co.uk> |
Cross-posted to 2 groups.
>>>>> Chris Davies <chris-usenet@roaima.co.uk> writes:
>>>>> NoHtmlMailsPlease <UsePlainText@dog.edu> wrote:
[…]
>> So 184.106.20.99 arrived at the correct location, but not other
>> `lynx <IPs>`
> This is due to the use of virtual hosting. Basically, you can't do
> that that and expect it to work. You *must* be prepared to use domain
> names in the domain name component of your URL,
> e.g. http://www.roaima.co.uk/ instead of http://188.222.203.136/
When using GNU Wget, there's the --header= option:
--cut: (wget) HTTP Options --
`--header=HEADER-LINE'
Send HEADER-LINE along with the rest of the headers in each HTTP
request. The supplied header is sent as-is, which means it must
contain name and value separated by colon, and must not contain
newlines.
[…]
As of Wget 1.10, this option can be used to override headers
otherwise generated automatically. This example instructs Wget to
connect to localhost, but to specify `foo.bar' in the `Host'
header:
wget --header="Host: foo.bar" http://localhost/
--cut: (wget) HTTP Options --
It's my opinion that it'd be an improvement for Lynx to support
a similar feature.
[…]
> If yes then I'd say that the networking layer is fine. Otherwise,
> exclude DNS and try again -
> 7. Add this line to your /etc/hosts file:
> 188.222.203.136 test.www.roaima.co.uk
> Then, when you "lynx http://test.www.roaima.co.uk/" do you get my
> test page this time?
> If the answer to this is no, then it's time to start digging really
> seriously into files such as /etc/nsswitch.conf (what does the
> "files" line read as?)
I believe that it should read “the ‘hosts’ line” instead. Like:
$ grep -E -- ^hosts /etc/nsswitch.conf
hosts: files dns
$
> and possibly checking your networking libraries.
--
FSF associate member #7257
Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Only some IPs accessable? "NoHtmlMailsPlease" <UsePlainText@dog.edu> - 2011-10-07 22:42 +0200
Re: Only some IPs accessable? Frank Boehm <fraboehm@gmx.de> - 2011-10-08 07:39 +0000
Re: Only some IPs accessable? Chris Davies <chris-usenet@roaima.co.uk> - 2011-10-08 14:24 +0100
Re: Only some IPs accessable? Ivan Shmakov <ivan@gray.siamics.net> - 2011-10-08 23:18 +0700
Re: Only some IPs accessable? Chris Davies <chris-usenet@roaima.co.uk> - 2011-10-08 21:29 +0100
Re: Only some IPs accessable? "NoHtmlMailsPlease" <UsePlainText@dog.edu> - 2011-10-12 15:09 +0200
Re: Only some IPs accessable? Ralph Spitzner <rasp@spitzner.org> - 2011-10-12 17:24 +0200
Re: Only some IPs accessable? Chris Davies <chris-usenet@roaima.co.uk> - 2011-10-13 10:55 +0100
Re: Only some IPs accessable? Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2011-10-12 22:22 +0200
Re: Only some IPs accessable? Chris Davies <chris-usenet@roaima.co.uk> - 2011-10-13 11:01 +0100
Re: Only some IPs accessable? "NoHtmlMailsPlease" <UsePlainText@dog.edu> - 2011-10-14 23:00 +0200
Re: Only some IPs accessable? Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2011-10-15 11:46 +0200
Re: Only some IPs accessable? floyd@apaflo.com (Floyd L. Davidson) - 2011-10-15 04:59 -0800
Re: Only some IPs accessable? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-10-15 16:39 +0000
Re: Only some IPs accessable? floyd@apaflo.com (Floyd L. Davidson) - 2011-10-15 08:50 -0800
Re: Only some IPs accessable? Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-10-15 16:58 +0000
Re: Only some IPs accessable? Richard Kettlewell <rjk@greenend.org.uk> - 2011-10-15 19:07 +0100
Re: Only some IPs accessable? Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2011-10-15 19:50 +0200
Re: Only some IPs accessable? floyd@apaflo.com (Floyd L. Davidson) - 2011-10-15 12:30 -0800
Re: Only some IPs accessable? Ralph Spitzner <rasp@spitzner.org> - 2011-10-19 18:14 +0200
csiph-web