search

Home  >  Q&A  >  body text

Can http and https of the same domain name point to different directories of the same apache server?

Can http and https of the same domain name point to different directories of the same apache server?

For example, port 80 points to /var/www/site-http and port 443 points to /var/www/site-https

滿天的星座滿天的星座2756 days ago611

reply all(1)I'll reply

  • 阿神

    阿神2017-05-16 17:03:34

    Yes, although the domain name is the same, but https and http, when configuring the virtual host, we need to configure them separately. So they can be understood as different domains with the same domain name. http can point to one directory and https points to another directory.

    reply
    0
  • Cancelreply