Apache-Server (unter Windows) – keine Verbindung möglich, wenn keine Verbindung über LAN besteht

Apache-Server (unter Windows) – keine Verbindung möglich, wenn keine Verbindung über LAN besteht

Nun, das ist seltsam, aber ich kann keine Verbindung zu meinem Apache-Server herstellen, wenn ich eine andere (globale) IP-Adresse habe.

Ich verbinde mich über Port 9000 und wenn ich es im Browser mache (auch wenn ich meine externe IP eingebe), funktioniert es.

Wenn ich mich jedoch von einem anderen Ort aus verbinde, tritt anscheinend einfach eine „Zeitüberschreitung“ auf. Meine Apache-Konfiguration:

#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see 
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#

ServerRoot "xyz"

Listen 9000

LoadModule wsgi_module  modules/mod_wsgi-py34-VC10.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so

<IfModule unixd_module>
User daemon
Group daemon
</IfModule>

ServerAdmin [email protected]

DocumentRoot "xyz/htdocs"
<Directory "xyz/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

<Files ".ht*">
    Require all denied
</Files>

ErrorLog "logs/error.log"

LogLevel warn

<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog "logs/access.log" common

</IfModule>

<IfModule alias_module>
    ScriptAlias /cgi-bin/ "c:/Apache24/cgi-bin/"
</IfModule>


<IfModule cgid_module>
</IfModule>

<Directory "xyz/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>

<IfModule mime_module>
    TypesConfig conf/mime.types
</IfModule>

<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

Jetzt wird ein zufälliger Port getestet beikannst du mich sehengibt (wie erwartet) „Verbindung abgelehnt“ zurück. Allerdings läuft Port 9000 einfach ab. Es wird jedoch kein Apache-Log angezeigt, wenn ich versuche, mich damit zu verbinden. – Dasselbe gilt für mein Mobiltelefon. Wenn ich mich über WLAN/dasselbe LAN damit verbinde, wird mir eine Internetseite korrekt angezeigt.

Wenn ich jedoch eine Verbindung über das Mobilfunknetz herstelle, läuft es ab.

Jetzt habe ich die Portweiterleitung in meinem Router aktiviert. Und testweise habe ich auch meinen Router entfernt und mich direkt mit meinem ISP verbunden. - Das gleiche Problem tritt auf.

Ich habe die Windows-Firewall während des Tests vollständig deaktiviert, um zu sehen, ob es ein Problem ist – aber es behebt nichts. Oh, und nur der Vollständigkeit halber die index.html:

<html><body><h1>It works!</h1></body></html>

verwandte Informationen