我在 Apache2.4 服务器上运行 Django 应用程序。我希望从另一个系统访问页面http://localhost:8081/home 。我在公司环境中,因此服务器和客户端计算机都将位于同一个专用网络中。
所以问题是,我可以在服务器机器(http://xx.xx.xx.xx:8081/home)上使用服务器 IP 地址访问该页面,但是当我没有加载该页面时在客户端机器上使用它。(同样,我可以从服务器机器访问页面为 systemname.dns.com:8081/home ,但不能从客户端机器访问)
那么我的问题到底是什么,我该如何解决呢?
httpd.conf 的修改部分:
LoadFile c:/users/username/appdata/local/programs/python/python36/python36.dll
LoadModule wsgi_module
c:/users/username/lms/lib/site-packages/mod_wsgi/server/mod_wsgi.cp36-win_amd64.pyd
WSGIScriptAlias / c:/users/username/lms/LMS/wsgi.py WSGIPythonHome c:/users/username/lms WSGIPythonPath c:/users/username/lms
<Directory "C:/Users/username/lms">
<Files wsgi.py>
Require all granted
</Files>
</Directory>