zoukankan      html  css  js  c++  java
  • apache配置多域名多站点记录

    <VirtualHost *:80>
      DocumentRoot "/mnt/web/www.*.cn"
      ServerName www.*.cn
      ErrorLog "logs/www-error.log"
      CustomLog "logs/www-access.log" common
      <Directory "/">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
      </Directory>
    </VirtualHost>

    <VirtualHost *:80>
      DocumentRoot "/mnt/web/m.*.cn"
      ServerName m.*.cn
      ErrorLog "logs/www-error.log"
      CustomLog "logs/www-access.log" common
      <Directory "/">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
      </Directory>
    </VirtualHost>

    <VirtualHost *:80>
      DocumentRoot "/mnt/web/cb.*.cn"
      ServerName cb.*.cn
      ServerAlias  cb.*.cn cookbook.*.cn
      ErrorLog "logs/www-error.log"
      CustomLog "logs/www-access.log" common
      <Directory "/">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
      </Directory>
    </VirtualHost>

    <VirtualHost *:80>
      DocumentRoot "/mnt/web/www.*.com.cn"
      ServerName www.*.com.cn
      ErrorLog "logs/www-error.log"
      CustomLog "logs/www-access.log" common
      <Directory "/">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
      </Directory>
    </VirtualHost>

  • 相关阅读:
    nginx负载均衡
    docker 使用之管理工具shipyard(五)
    docker使用之私有仓库构建(四)
    docker使用之dockerfile手动构建镜像(三)
    docker 使用之网络和存储(二)
    docker部署和使用(一)
    Java微信公众号开发
    Java实现验证码的制作
    SSH框架-Struts2基础-Action
    Java算法
  • 原文地址:https://www.cnblogs.com/shher/p/4884368.html
Copyright © 2011-2022 走看看