Apache 서버(Windows) - LAN을 통해 연결하지 않으면 연결할 수 없습니다.

Apache 서버(Windows) - LAN을 통해 연결하지 않으면 연결할 수 없습니다.

글쎄요, 이상합니다. 하지만 다른 (글로벌) IP 주소에 있을 때는 아파치 서버에 연결할 수 없습니다.

포트 9000에 연결하고 있으며 브라우저에서 연결하면(외부 IP를 입력하더라도) 작동합니다.

하지만 다른 곳에서 연결하면 단순히 "시간 초과"되는 것 같나요? 내 아파치 구성:

#
# 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>

이제 임의의 포트를 테스트합니다.canyouseeme(예상대로) "연결이 거부되었습니다"를 반환합니다. 그러나 포트 9000은 단순히 "시간 초과"됩니다. 그래도 연결을 시도하는 아파치 로그온은 표시되지 않습니다. - 휴대폰에서도 마찬가지입니다. WIFI/동일 LAN을 사용하여 연결하면 이너넷 페이지가 올바르게 표시됩니다.

하지만 모바일 네트워크를 통해 연결하면 시간이 초과됩니다.

이제 라우터에서 포트 전달을 활성화했습니다. 그리고 테스트를 위해 라우터도 제거하고 ISP에 직접 연결했습니다. - 같은 문제가 발생합니다.

문제가 있는지 확인하기 위해 테스트 중에 Windows 방화벽을 완전히 비활성화했지만 아무것도 해결되지 않습니다. 아 그리고 완전성을 위해 index.html은 다음과 같습니다.

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

관련 정보