zoukankan      html  css  js  c++  java
  • xmapp 403 与 多站点

    1、首先多站点:配置的路径不一样 也可以,配置新端口也可以。

    在/Applications/XAMPP/xamppfiles/apache2/conf/httpd.conf 中,添加:

    listen 8081
    

      

    然后在/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf中添加

    <VirtualHost *:80>
        DocumentRoot "/Users/houzhibin/javaself/code/php/shop/crmeb3/public"
    <Directory "/Users/houzhibin/javaself/code/php/shop/crmeb3/public">
    Options All
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
        ServerAlias crmeb3.demo.com
        ErrorLog "logs/dummy-host.example.com-error_log"
        CustomLog "logs/dummy-host.example.com-access_log" common
    </VirtualHost>
    
    <VirtualHost *:80>
        ServerName api.qiushi.com
        DocumentRoot "/Users/houzhibin/javaself/code/php/qiushi/public"
    <Directory "/Users/houzhibin/javaself/code/php/qiushi/public">
        Options FollowSymLinks ExecCGI
          #是否显示列表 (在发布项目后一般是不启用,对于这个配置,针对DocumentRoot在apachede的默认文件夹外的目录生效 )
          Options +indexes
          AllowOverride All
          Order allow,deny
          Allow from all
          #Deny from all
          Require all granted
    </Directory>
    </VirtualHost>
    
    <VirtualHost *:8081>
        DocumentRoot "/Users/houzhibin/javaself/code/php/qiushi/public"
        ServerAlias api.qiushi.com:8081
        <Directory "/Users/houzhibin/javaself/code/php/qiushi/public">
        Options FollowSymLinks ExecCGI
          #是否显示列表 403解决(在发布项目后一般是不启用,对于这个配置,针对DocumentRoot在apachede的默认文件夹外的目录生效 )
          Options +indexes
          AllowOverride All
          Order allow,deny
          Allow from all
          #Deny from all
          Require all granted
    </Directory>
        ErrorLog "logs/api.qiushi.com-error_log"
        CustomLog "logs/api.qiushi.com.-access_log" common
    </VirtualHost>
    

      

    好使了之后:

     

    www.beicaiduo.com
  • 相关阅读:
    ES6 基础
    JavaScript 基础
    Java 虚拟机
    MinIO 搭建使用
    .NET 半天搭建Jenkins持续集成与自动化部署系统
    驱动领域DDD的微服务设计和开发实战
    走向架构师必备的技能
    分布式系统与消息的投递¶
    求数组的子数组之和的最大值
    KVO初探
  • 原文地址:https://www.cnblogs.com/hoge66/p/12340233.html
Copyright © 2011-2022 走看看