ITPub博客

首页 > Linux操作系统 > Linux操作系统 > httpd.conf设置一个IP两个域名的方法

httpd.conf设置一个IP两个域名的方法

原创 Linux操作系统 作者:php_itpub 时间:2008-07-31 08:58:58 0 删除 编辑

NameVirtualHost 12.34.56.78  # your ip address

        ServerName yourname1
        DocumentRoot yourpath1


        ServerName yourname2
        DocumentRoot yourpath2

If you want to use 443

NameVirtualHost 12.34.56.78:80  # your ip address
NameVirtualHost 12.34.56.78:443  # your ip address


        ServerName yourname1
        DocumentRoot yourpath1


        ServerName yourname1
        DocumentRoot yourpath1

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/14883374/viewspace-414987/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-07-17

  • 博文量
    178
  • 访问量
    223494