V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
xxgirl2
V2EX  ›  Apache

apache 子域名和 ssl 问题

  •  1
     
  •   xxgirl2 · Feb 10, 2015 · 3610 views
    This topic created in 4094 days ago, the information mentioned may be changed or developed.

    假设现有
    1. 机器地址是198.41.0.4
    2. 域名http://d.cc
    3. 有单域名(http://ssl.d.cc)证书

    要在 apache (xampp) 里配置
    http://de.d.cc
    http://mr.d.cc
    http://ssl.d.cc(使用证书)
    这三个子域名

    保留localhost并拒绝其他一切指向此服务器的域名(包括ssl)

    应该怎么做?

    已知:
    1. 用 VirtualHost 分配 http://ssl.d.cc 到 80 port
    不采用 ssl 连接可正常打开,采用 ssl 连接后依然是 /xampp 目录,但 ssl 正常
    2. 用 VirtualHost 分配 http://ssl.d.cc 到 443 port
    ssl 错误。不论是否指定 NameVirutalHost *:443 结果相同

    1 replies    2015-02-11 05:01:26 +08:00
    SharkIng
        1
    SharkIng  
       Feb 11, 2015 via Android
    Xampp 下 443和80好像是两个不同的配置文件

    另外不知道楼主想要实现什么到底
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3415 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 00:35 · PVG 08:35 · LAX 17:35 · JFK 20:35
    ♥ Do have faith in what you're doing.