Apache und seine Probleme .. -,-

Du willst deine /etc/hosts korrekt aufbauen und deinen HTTP-Acceptfilter laden oder aber ihn in der httpd.conf ausknipsen.
 
Du willst deine /etc/hosts korrekt aufbauen und deinen HTTP-Acceptfilter laden oder aber ihn in der httpd.conf ausknipsen.

Und wie mache ich das ? hier meine hosts :

Code:
# $FreeBSD: src/etc/hosts,v 1.16.32.1 2009/04/15 03:14:26 kensmith Exp $
#
# Host Database
#
# This file should contain the addresses and aliases for local hosts that
# share this file.  Replace 'my.domain' below with the domainname of your
# machine.
#
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
#
#
127.0.0.1 localhost
::1		localhost localhost.my.domain

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhos#
# Imaginary network.
#10.0.0.2		myname.my.domain myname
#10.0.0.3		myfriend.my.domain myfriend
#
# According to RFC 1918, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
#	10.0.0.0	-   10.255.255.255
#	172.16.0.0	-   172.31.255.255
#	192.168.0.0	-   192.168.255.255
#
# In case you want to be able to connect to the Internet, you need
# real official assigned numbers.  Do not try to invent your own network
# numbers but instead get one from your network provider (if any) or
# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#
 
In der /etc/hosts muss der FQDN der Maschine auflösbar sein, wenn dies nicht durch das globale DNS gegeben ist. Den Acceptfilter lädst du mit "kldload accf_http.ko"
 
Ich habe in meiner /etc/hosts folgendes drinstehen:
Code:
::1                     localhost.meine.domain.de localhost
127.0.0.1               localhost.meine.domain.de localhost

Da trägst Du jetzt einfach den vollen Hostnamen deiner Maschine ein. Vielleicht willst Du diesbezüglich auch im FreeBSD-Handbuch nachschauen (z.B. Kapitel 25).

<edit>
Ja, genau: meine.domain.de bzw. my.domain durch den Namen ersetzen den Du vergeben hast.
</edit>
 
also heißt das wenn z.b. mein freebsd im netzwerk :

jonny heißt dann steht ja immer dort jonny.localhost so also schreibe ich da rein localhost.jonny localhost ?
 
Zurück
Oben