douyoufan7881 2014-10-29 05:27
浏览 48
已采纳

如何在XAMPP v3.2.1中为Apache添加别名?

I have added an alias in the httpd.conf file to access my folder at localhost/projects :

<IfModule alias_module>

    Alias /projects "C:/Users/Ben/Google Drive/Projects"

    <Directory "C:/Users/Ben/Google Drive/Projects">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
        Require all granted
    </Directory>

    ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"

</IfModule>

When I try to start Apache in XAMPP 3.2.1 nothing is written to the error.log and Apache fails to start.

  • 写回答

1条回答 默认 最新

  • druzuz321103 2015-07-11 19:22
    关注

    File: httpd.conf (original)

    After of:

    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    

    Put:

    <Directory "C:/Users/Ben/Google Drive/Projects">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Require all granted
    </Directory>
    
    Alias /projects "C:/Users/Ben/Google Drive/Projects"
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 求Houdini使用行家,付费。价格面议。
  • ¥15 AttributeError: 'EasyDict' object has no attribute 'BACKUP_DB_INFO'
  • ¥15 前端高拍仪调用问题报错
  • ¥15 想用octave解决这个数学问题
  • ¥15 Centos新建的临时ip无法上网,如何解决?
  • ¥15 海康威视如何实现客户端软件对设备语音请求的处理。
  • ¥15 支付宝h5参数如何实现跳转
  • ¥15 MATLAB代码补全插值
  • ¥15 Typegoose 中如何使用 arrayFilters 筛选并更新深度嵌套的子文档数组信息
  • ¥15 CF1927D 求Hack