【问题标题】:How do I specify webpath on apache 2.2 on windows?如何在 Windows 上的 apache 2.2 上指定 webpath?
【发布时间】:2013-05-27 17:06:43
【问题描述】:

我需要 apache 来为公共站点和私有站点提供服务。公共站点位于DocumentRoot 下,私有站点位于另一个文件夹结构中。

我读到如果我想为不在 DocumentRoot 下的页面提供服务器,我需要指定别名。如何指定别名?

Alias /webpath /full/filesystem/path

我在 Windows 上使用 apache。如果我的文件位于C:\Testsite\site,我如何让 apache 为其提供服务?

【问题讨论】:

    标签: windows apache url alias


    【解决方案1】:

    假设你想将 webpath 设置为文件,试试这个

    Alias /files c:/Testsite/site
    <Directory "c:/Testsite/site"> 
        Order allow,deny
        Allow from all
    </Directory>
    

    【讨论】:

      猜你喜欢
      • 2011-11-16
      • 2011-05-13
      • 1970-01-01
      • 1970-01-01
      • 2010-09-30
      • 2010-11-02
      • 2016-05-24
      • 2017-10-25
      • 1970-01-01
      相关资源
      最近更新 更多