PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Why "Allow from 127.0.0.1 localhost" when my /etc/hosts says"127.0.0.1 localhost"?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Why "Allow from 127.0.0.1 localhost" when my /etc/hosts says"127.0.0.1 localhost"?

Réponse
 
LinkBack Outils de la discussion
Vieux 02/02/2008, 16h25   #1
Tim Molendijk
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Why "Allow from 127.0.0.1 localhost" when my /etc/hosts says"127.0.0.1 localhost"?

The title says it all. As my /etc/hosts file says that localhost is a
hostname for 127.0.0.1, why is it necessary to configure Apache with
"Allow from 127.0.0.1 localhost" instead of just "Allow from
127.0.0.1"? If I use the latter setting and I try to access the
webserver by entering "localhost", it tells me that it is forbidden.
At the same time though, any other custom hostname for 127.0.0.1 (as
defined in my /etc/hosts as well) is *not* blocked by Apache, while I
don't explicitly allow them either.
  Réponse avec citation
Vieux 02/02/2008, 21h36   #2
Mr. R
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Why "Allow from 127.0.0.1 localhost" when my /etc/hosts says "127.0.0.1 localhost"?

HI

Do you use a firewall betwen the server and the Internet. I use a D-Link 604
as firewall for my server at home. I hvae to set the Location to the IP
address given by the router, in my cse 192.168.0.1. I'm not an expert on
Linux but I recall there is a localhoast file or some thing where you set
the domain names you can use for your server. For example www.nydomain.com
mydomain.com localhoast. You can also block domain names in this file. Maybe
some one out there can exmplain time better than me.

Lars

"Tim Molendijk" <taw.molendijk@gmail.com> skrev i meddelandet
news:ebab6777-2e79-47f0-955e-a820447e4718@e10g2000prf.googlegroups.com...
> The title says it all. As my /etc/hosts file says that localhost is a
> hostname for 127.0.0.1, why is it necessary to configure Apache with
> "Allow from 127.0.0.1 localhost" instead of just "Allow from
> 127.0.0.1"? If I use the latter setting and I try to access the
> webserver by entering "localhost", it tells me that it is forbidden.
> At the same time though, any other custom hostname for 127.0.0.1 (as
> defined in my /etc/hosts as well) is *not* blocked by Apache, while I
> don't explicitly allow them either.




  Réponse avec citation
Vieux 02/02/2008, 21h54   #3
Mr. R
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Why "Allow from 127.0.0.1 localhost" when my /etc/hosts says "127.0.0.1 localhost"?

After checking som more on the Internet, I need to check this out for my
self so I thought I could share the info.


#Example of /etc/hosts.allow
#
# This file describes what hosts to allow localy on your intranet.
# Ass localhost here if you want to allow localhost from within the intranet
(LAN)
#
localhost
#

After adding this to "/etc/host.allow" and setting Location to 127.0.0.1:80
in my http.conf file I was able to access http://localhost

Maybe it works for you to. For those of you who can read Sweish the source
for the information was at the page
http://www.lysator.liu.se/~kjell-e/t...y/servers.html

Lars


"Mr. R" <jon.doe@xxxxxxxxxxxxxxxxxx.xxx> skrev i meddelandet
news:9n5pj.3440$R_4.2480@newsb.telia.net...
> HI
>
> Do you use a firewall betwen the server and the Internet. I use a D-Link
> 604
> as firewall for my server at home. I hvae to set the Location to the IP
> address given by the router, in my cse 192.168.0.1. I'm not an expert on
> Linux but I recall there is a localhoast file or some thing where you set
> the domain names you can use for your server. For example www.nydomain.com
> mydomain.com localhoast. You can also block domain names in this file.
> Maybe
> some one out there can exmplain time better than me.
>
> Lars
>
> "Tim Molendijk" <taw.molendijk@gmail.com> skrev i meddelandet
> news:ebab6777-2e79-47f0-955e-a820447e4718@e10g2000prf.googlegroups.com...
>> The title says it all. As my /etc/hosts file says that localhost is a
>> hostname for 127.0.0.1, why is it necessary to configure Apache with
>> "Allow from 127.0.0.1 localhost" instead of just "Allow from
>> 127.0.0.1"? If I use the latter setting and I try to access the
>> webserver by entering "localhost", it tells me that it is forbidden.
>> At the same time though, any other custom hostname for 127.0.0.1 (as
>> defined in my /etc/hosts as well) is *not* blocked by Apache, while I
>> don't explicitly allow them either.

>
>
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h04.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10724 seconds with 11 queries