|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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. > > > |
|
![]() |
| Outils de la discussion | |
|
|