PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Konqueror Zugriff auf localhost



Ice5000
02.11.03, 19:23
Hi Community,

mir ist beim einrichten meiner php-Entwicklungsumgebung aufgefallen das der Konqueror , trotz laufendem apache, nicht auf localhost zugreifen kann, obwohl ich localhost anpingen kann und sogar via Opera erreiche. Weiß jemand Rat?

-------
System: SuSE 9.0 , KDE 3.1.4

realtec
02.11.03, 22:06
Sollte zwar nicht nötig sein, aber setzte mal die Ausnahmen:

127.0.0.1 und ip des rechners....

msi
02.11.03, 22:09
versuchs mal so:

http://localhost und so http://127.0.0.1
falls das auch nicht geht, zeig mal deine /etc/hosts, deine /etc/nsswitch.conf und die ausgabe von

# nslookup
> localhost

her!
außerdem poste den output von
iptables -L
iptables -t nat -L
und
lsof -i

Markus

Ice5000
02.11.03, 23:18
Original geschrieben von realtec
Sollte zwar nicht nötig sein, aber setzte mal die Ausnahmen:

127.0.0.1 und ip des rechners....

ja über rechnernamen, ip, und 127.0.0.1 komme ich auf meinen apache... Meie Frage bezog sich auch ehr ob das ein Fehler ist oder ob dies so gewollt ist.

Ice5000
02.11.03, 23:34
Original geschrieben von msi
versuchs mal so:
http://localhost und so http://127.0.0.1

-> http://localhost geht nicht
-> http://127.0.0.1/ geht


Original geschrieben von msi
falls das auch nicht geht, zeig mal deine /etc/hosts, deine /etc/nsswitch.conf und die ausgabe von


/etc/hosts
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts

192.168.1.66 linux.local linux

/etc/nsswitch
ist leer


Original geschrieben von msi
# nslookup
> localhost

Gibt folgendes zurück:
Name: localhost
Address: 127.0.0.1


Original geschrieben von msi
her!
außerdem poste den output von
iptables -L
iptables -t nat -L
und
lsof -i


iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- anywhere 255.255.255.255 udp spt:bootps dpt:bootpc
ACCEPT icmp -- anywhere anywhere icmp echo-request
ACCEPT udp -- www-proxy.BS1.srv.t-online.de anywhere state NEW udp spt:domain dpts:1024:65535
ACCEPT udp -- dns03.btx.dtag.de anywhere state NEW udp spt:domain dpts:1024:65535
input_ext all -- anywhere anywhere
input_ext all -- anywhere anywhere
ACCEPT all -- anywhere anywhere

Chain FORWARD (policy DROP)
target prot opt source destination
reject_func all -- anywhere anywhere
reject_func all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED

Chain input_ext (2 references)
target prot opt source destination
reject_func tcp -- anywhere anywhere tcp dpt:ident flags:SYN,RST,ACK/SYN
LOG tcp -- anywhere anywhere tcp flags:SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-NEW-CONNECT '
reject_func all -- anywhere anywhere

Chain reject_func (4 references)
target prot opt source destination
REJECT tcp -- anywhere anywhere reject-with tcp-reset
REJECT udp -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-proto-unreachable

iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

lsof -i
leer

msi
03.11.03, 00:34
hallo

die /etc/nsswitch.conf kann nicht leer sein, da sollte drinnen stehen, wie der rechnername aufgelöst wird. aber da sowohl hosts als auch nsslokup das richtige liefern sollte das egal sein.

lsof -i
sollst du natürlich als root ausführen, alternativ
netstat -a

was kommt den beim konqueror für ne fehlermeldung? evtl. mal mit refreh versucht?

Ice5000
03.11.03, 00:51
Original geschrieben von msi
hallo

die /etc/nsswitch.conf kann nicht leer sein, da sollte drinnen stehen, wie der rechnername aufgelöst wird. aber da sowohl hosts als auch nsslokup das richtige liefern sollte das egal sein.


Jo Du hattest Recht hab mich wohl in der Datei verguckt, hier nun die richtige:

/etc/nsswitch.conf
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
# compat Use compatibility setup
# nisplus Use NIS+ (NIS version 3)
# nis Use NIS (NIS version 2), also called YP
# dns Use DNS (Domain Name Service)
# files Use the local files
# db Use the /var/db databases
# [NOTFOUND=return] Stop searching if not found so far
#
# For more information, please read the nsswitch.conf.5 manual page.
#

# passwd: files nis
# shadow: files nis
# group: files nis

passwd: compat
group: compat

hosts: files dns
networks: files dns

services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files
publickey: files

bootparams: files
automount: files nis
aliases: files


Original geschrieben von msi
lsof -i
sollst du natürlich als root ausführen, alternativ
netstat -a


lsof -i
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
portmap 1403 bin 5u IPv4 2321 UDP *:sunrpc
portmap 1403 bin 6u IPv4 2461 TCP *:sunrpc (LISTEN)
ntpd 1696 ntp 6u IPv4 3505 UDP *:ntp
ntpd 1696 ntp 7u IPv4 3506 UDP localhost:ntp
ntpd 1696 ntp 8u IPv4 3507 UDP linux.local:ntp
sshd 1748 root 5u IPv6 3727 TCP *:ssh (LISTEN)
cupsd 1890 lp 0u IPv4 6297 TCP *:ipp (LISTEN)
cupsd 1890 lp 2u IPv4 6298 UDP *:ipp
master 2004 root 11u IPv4 4365 TCP localhost:smtp (LISTEN)
xinetd 2158 root 5u IPv4 6177 TCP *:5910 (LISTEN)
xinetd 2158 root 8u IPv4 6178 TCP *:5810 (LISTEN)
kdm 2286 root 8u IPv4 6757 UDP *:xdmcp
kdm 2286 root 9u IPv4 6758 TCP *:filenet-tms (LISTEN)
X 2337 root 1u IPv4 6763 TCP *:x11 (LISTEN)
kdm 2338 root 9u IPv4 6758 TCP *:filenet-tms (LISTEN)
httpd 2823 root 3u IPv6 19012 TCP *:http (LISTEN)
httpd 2823 root 4u IPv6 19017 TCP *:https (LISTEN)
proftpd 2842 nobody 0u IPv4 19047 TCP *:ftp (LISTEN)
mysqld 2865 nobody 3u IPv4 19069 TCP *:mysql (LISTEN)
mysqld 2866 nobody 3u IPv4 19069 TCP *:mysql (LISTEN)
mysqld 2867 nobody 3u IPv4 19069 TCP *:mysql (LISTEN)
httpd 2868 nobody 3u IPv6 19012 TCP *:http (LISTEN)
httpd 2868 nobody 4u IPv6 19017 TCP *:https (LISTEN)
httpd 2869 nobody 3u IPv6 19012 TCP *:http (LISTEN)
httpd 2869 nobody 4u IPv6 19017 TCP *:https (LISTEN)
httpd 2870 nobody 3u IPv6 19012 TCP *:http (LISTEN)
httpd 2870 nobody 4u IPv6 19017 TCP *:https (LISTEN)
httpd 2871 nobody 3u IPv6 19012 TCP *:http (LISTEN)
httpd 2871 nobody 4u IPv6 19017 TCP *:https (LISTEN)
httpd 2872 nobody 3u IPv6 19012 TCP *:http (LISTEN)
httpd 2872 nobody 4u IPv6 19017 TCP *:https (LISTEN)
httpd 2873 nobody 3u IPv6 19012 TCP *:http (LISTEN)
httpd 2873 nobody 4u IPv6 19017 TCP *:https (LISTEN)
httpd 2878 nobody 3u IPv6 19012 TCP *:http (LISTEN)
httpd 2878 nobody 4u IPv6 19017 TCP *:https (LISTEN)
httpd 2879 nobody 3u IPv6 19012 TCP *:http (LISTEN)
httpd 2879 nobody 4u IPv6 19017 TCP *:https (LISTEN)
httpd 2880 nobody 3u IPv6 19012 TCP *:http (LISTEN)
httpd 2880 nobody 4u IPv6 19017 TCP *:https (LISTEN)
kopete 4375 sir_bjoern 14u IPv4 47510 UDP *:32773


Original geschrieben von msi
was kommt den beim konqueror für ne fehlermeldung? evtl. mal mit refreh versucht?

Konqueror Fehlermeldung
Beim Laden von http://localhost ist folgender Fehler aufgetreten:


Zeitüberschreitung auf dem Server
Verbindung bestand zu localhost an Port 80

Wie schon gesagt diesen Fehler macht nur der Konqueror, mit Opera gehts wunderbar.... Mit Konqueror kann ich nur mit ip, rechnername oder 127.0.0.1 zugreifen... Schenit wohl ehr ein Feature als ein Fehler zu sein. Ich edanke mich trotzdem schonmal für deine Mühe !