zoukankan      html  css  js  c++  java
  • mac apache 配置虚拟域名

     配置HOSTS

     

     #vim /private/etc/hosts

     

      添加↓:

     

       127.0.0.1       tp.zhy.cn

     

     配置虚拟主机

     #vim /private/etc/apache2/extra/httpd-vhosts.conf

     

     添加↓:

     <VirtualHost *:80>

        ServerAdmin xxx@qq.com

        DocumentRoot "/Users/zhy/Sites/xxxx_5/public/"

        ServerName tp.zhy.cn

        ErrorLog "/private/var/log/apache2/xx.cn-error_log"

        CustomLog "/private/var/log/apache2/xx.cn-access_log" common

     </VirtualHost>

     

     

    最后重启 apache ↓

     

     

    重启Mac上的Apache服务

    停止服务:sudo /usr/sbin/apachectl stop

    开启服务:sudo /usr/sbin/apachectl start

    重启服务:sudo /usr/sbin/apachectl restart

  • 相关阅读:
    java.lang.NoClassDefFoundError: sun/swing/plaf/synth/SynthIcon
    微信数据库解密--代码报错:未定义标识符 HMAC_CTX_init
    Windows家庭版组策略编辑
    Visual Studio x64 使用 .asm 文件
    某数据库管理软件离线注册分析
    EV剪辑分析
    ciscn_lonelywolf
    arm-pwn
    libc-2.32.so在orw上与其他版本的区别
    更新libc
  • 原文地址:https://www.cnblogs.com/zhylog/p/6836044.html
Copyright © 2011-2022 走看看