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
  • 相关阅读:
    leetcode 890. 查找和替换模式 Python
    TensorFlow-GPU+cuda8+cudnn6+anaconda安装遇到的版本错误
    leetcode 921. 使括号有效的最少添加(Python)
    BFC概念详解及应用
    做一个网页阅读百分比指示器
    margin-bottom和vertical-align的区别
    MD5算法
    Array.prototype.slice.call()方法详解
    String stringbuffer StringBuilder
    价值观
  • 原文地址:https://www.cnblogs.com/hoge66/p/12340233.html
Copyright © 2011-2022 走看看