【问题标题】:https(apache + ssl) is only available from locahost, how to configure to visit it by domain name?https(apache + ssl) 只能从 locahost 获得,如何配置通过域名访问它?
【发布时间】:2011-08-31 23:01:21
【问题描述】:

apache+ssl在windows server 2003上使用xampp配置,http内容通过域名没有问题,但是https内容只能从localhost访问。 "netstat -a" 显示

原始本地地址远程地址状态 ... TCP 主机名:https 主机名:0 监听 ...

如何配置通过域名启用https?


找到原因了。另一个程序占用 443 端口,因此 apache https 失败。使用“netstat -a -o -n”可以得到详细信息。

【问题讨论】:

    标签: apache ssl windows-server-2003 xampp localhost


    【解决方案1】:

    我假设您已经可以使用此域名访问 apache。 查看您的 ports.conf,通常位于 /etc/apache2/ports.conf

    它应该包含如下一行:

    NameVirtualHost *:443
    

    还有

    Listen 8443 https
    

    【讨论】:

    • 对不起,我在windows服务器上工作,似乎没有这样一个名为ports.conf的文件:(顺便说一句,http内容通过域名没有问题。
    猜你喜欢
    • 2011-07-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-27
    • 2014-04-20
    • 1970-01-01
    • 2021-09-12
    相关资源
    最近更新 更多