PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache-Server Konfiguration


[BIC]Nemo
2003-07-20, 14:24:40
Hallo Leute! Meine Frage passt eher nicht zum Thema Programmierung, eher zur Konfiguration des Apache-Servers in der Version 2.0.45:

Bei mir ist es sehr komisch: Mein Apache-Server läuft einwandfrei mit PHP und MySQL und ich kann durch http://localhost/ oder http://127.0.0.1 (oder meiner LAN-IP 192.168.1.10) einwandfrei darauf zugreifen! Doch wenn die anderen im Internet Explorer meine IP eingeben, können sie nicht meinen Apache-Server sehen (Seite kann nicht angezeigt werden). Doch wenn sie in einem Downloadmanager die Datei http://192.168.1.10/index.php downloaden, können sie die Datei downloaden, nur über einen Browser geht es nicht! Ich vermute es ist eine Einstellung in der httpd.conf!

Ich hoffe einer kann mir helfen. Danke :D

Just a guest
2003-07-21, 11:18:25
Wenn der 'ServerName' auf "localhost" oder "127.0.0.1" steht und dabei auch noch 'UseCanonicalName' "On" ist, versucht Apache bei bestimmten Requests den Clienten auf "localhost" umzuleiten. Dann greift der Client praktisch auf sich selbst zu.

Um das zu verhindern, musst du nur 'UseCanonicalName' auf "Off" setzen.

[BIC]Nemo
2003-07-21, 12:03:12
Habe ich gemacht und ich habe auch den Apache-Server neugestartet aber es geht trotzdem nicht. Hier ist mal êin Auszug aus meiner Config:


# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerName localhost

#
# UseCanonicalName: Determines how Apache constructs self-referencing
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client. When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

TheGamer
2003-07-21, 12:14:27
Lies mal


# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#

ServerName localhost


TheGamer

PS.: Ich weiß nicht obs hilft wenn du da deine IP eintippst. Ich hab selber nicht soviel Ahnung.

[BIC]Nemo
2003-07-21, 12:25:05
Ne habe schon getestet - geht aber auch nicht. Außerdem wäre es doof andauernd die IP reinzuschreiben... bei alten Apache-Version ging es ja immer...

[BIC]Nemo
2003-07-21, 12:31:56
HHHÄHHHH? Auf einmal gehts! Kapiere ich nicht... ich habe nix geändert und auf einmal geht es.... tzzz ServerName ist localhost und UseCanonicalName ist auf Off... trotzdem Danke Leute :bäh:

Nasenbaer
2003-07-21, 19:49:59
Wenn man nicht allzuviel Ahnung vom Konfigurieren hat und nicht unzählige HowTos durchlesen will kann man auf WebMin (http://www.webmin.com/index.html) zurückgreifen.
Mit diesem Programm kann man viele Server und ähnliches konfigurieren.
Natürlich sollte man dazu Apache und Co unter Linux installiert haben aber wer macht sowas schon unter Windows. :)

Mfg Nasenbaer