18. März 200323 j Hi, wie kann ich Apache so einstellen das er nur anfragen von einer bestimmte IP annehmen soll ?? mit "Listen 127.0.0.0:80" geht schonmal nicht, wenn ich das so mache wird der apache garnicht mehr gestartet. danke gruß MadCro :marine
18. März 200323 j Hi, das geht auch mit htaccess. <Directory /docroot> Order Deny,Allow Deny from all Allow from xxxx </Directory> A (partial) domain-name Example: Allow from apache.org Hosts whose names match, or end in, this string are allowed access. Only complete components are matched, so the above example will match foo.apache.org but it will not match fooapache.org. This configuration will cause the server to perform a reverse DNS lookup on the client IP address, regardless of the setting of the HostnameLookups directive. A full IP address Example: Allow from 10.1.2.3 An IP address of a host allowed access A partial IP address Example: Allow from 10.1 The first 1 to 3 bytes of an IP address, for subnet restriction. A network/netmask pair Example: Allow from 10.1.0.0/255.255.0.0 A network a.b.c.d, and a netmask w.x.y.z. For more fine-grained subnet restriction. (Apache 1.3 and later) A network/nnn CIDR specification Example: Allow from 10.1.0.0/16 Similar to the previous case, except the netmask consists of nnn high-order 1 bits. (Apache 1.3 and later) Gruß Jaraz
20. März 200323 j Originally posted by MadCro mit "Listen 127.0.0.0:80" geht schonmal nicht, wenn ich das so mache wird der apache garnicht mehr gestartet. Klar, daß das nicht geht. Müßte heißen Listen 127.0.0.1:80. Bei mir funktioniert's so ohne Probleme. Oder war das oben nur ein Tupfehler?
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.