我在Windows Server 2012 R2上使用Apache 2.4.12 64位。后端是Python 3.4 Django 1.7。当我尝试连接localhost时一切都很好,但当我试图从外面连接时,即使在同一个网络上,我也没有运气。没有回答,甚至没有禁止403。这是我的Apache配置:
Alias /media "C:\SourceTree\AT\AT_OP\media"
Alias /static "C:\SourceTree\AT\AT_OP\static"
<Directory "C:\SourceTree\AT\AT_OP\static">
Order deny,allow
Allow from all
</Directory>
<Directory "C:\SourceTree\AT\AT_OP\media">
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias / "C:\SourceTree\AT\AT_OP\AT_OP\wsgi.py"
WSGIPythonPath "C:\SourceTree\AT\AT_OP"
<Directory "C:\SourceTree\AT\AT_OP\AT_OP">
<Files wsgi.py>
Options FollowSymLinks
AuthType None
AllowOverride None
Order deny,allow
Allow from all
Require all granted
</Files>
</Directory>
我注意到,当我重新启动服务器时,会弹出所有消息。
[Sun Mar 08 09:16:54.962900 2015] [mpm_winnt:error] [pid 1620:tid 1036] (OS 10038)An operation was attempted on something that is not a socket. : AH00332: winnt_accept: getsockname error on listening socket, is IPv6 available?
这可以吗?是问题?
答案 0 :(得分:1)
首先尝试使用端口80(Web)远程登录到计算机,然后看到计算机上的端口80打开/可访问:
telnet MACHINE_IP_ADR 80
如果看到提示,请告诉:
GET /
看到它你得到任何HTML输出。这样您就可以进一步隔离问题。