虚拟域名配置

虚拟域名配置

  1. 修改hosts文件

  2. 修改apache的主配置文件

    vim /usr/local/apache2/etc/httpd.conf

    去掉Include etc//extra/httpd-vhosts.conf这行的#

  3. vim /usr/local/apache2/etc/extra/httpd-vhosts.conf


    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted


    ServerAdmin [email protected]
    DocumentRoot "/usr/local/apache2/htdocs/xdl/lamp25"
    ServerName www.lamp25.com
    ErrorLog "logs/lamp25.com-error_log"
    CustomLog "logs/lamp25.com-access_log" common

你可能感兴趣的:(linux)