Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
gouera
V2EX  ›  Linux

关于 apache 权限的问题。

  •  
  •   gouera · Feb 28, 2014 · 4322 views
    This topic created in 4474 days ago, the information mentioned may be changed or developed.
    为什么用HTTP能访问,但是加了HTTPS就403了呢...
    7 replies    1970-01-01 08:00:00 +08:00
    jasontse
        1
    jasontse  
       Feb 28, 2014 via iPad   ❤️ 1
    你有在443端口上建立VirtualHost吗?
    gouera
        2
    gouera  
    OP
       Feb 28, 2014
    @jasontse 还需要专门建立virtualhost吗。。。我是直接使用的。。。 难怪
    gouera
        3
    gouera  
    OP
       Feb 28, 2014
    @jasontse 我的做法是直接添加了一条include conf/extra/httpd-ssl.conf 然后就通过https 访问了
    Lucius
        4
    Lucius  
       Feb 28, 2014   ❤️ 1
    niseter
        5
    niseter  
       Feb 28, 2014 via iPhone   ❤️ 1
    在apache的网站不可访问,lz可按照以下步骤检查。
    1.处在内网的主机,确认已经做好相关nat,外网跳过这步。
    2.确认apache在监听相关端口
    3.确认配置文件正确配置端口,主机名,路径,权限。
    4.如果是https,需要检查ssl相关模块已经安装并生效。
    5.如果是https,需要在配置文件中正确配置证书,并注意权限。

    不明之处可以用替代法排除问题,祝LZ成功。
    Kvm
        6
    Kvm  
       Feb 28, 2014   ❤️ 1
    有添加443的监听端口没。。。。。
    Kvm
        7
    Kvm  
       Feb 28, 2014
    上面那条无视掉

    检查看下日志
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2933 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 08:49 · PVG 16:49 · LAX 01:49 · JFK 04:49
    ♥ Do have faith in what you're doing.