0

我正在尝试在我的 mac 上设置一个本地站点。

配置是这样的——

应用服务器:Coldfusion 9

网络服务器:Apache 2

我已经启动并运行了我的本地站点。但是在这个站点中,我希望访问托管在我的开发服务器(Windows 2003)上的图像。图像文件夹是共享的,我可以从我的 mac 安装它。

我已经像这样在我的 httpd.conf 中添加了虚拟导演 -

Alias /images/covers/uk "//xxx.xx.x.xx/Imagesfolder/covers/uk/"
<Directory "//xxx.xx.x.xx/Imagesfolder/covers/">
   Options Indexes FollowSymLinks
   AllowOverride all
   Order Allow,Deny
   Allow from all
   Require all granted
</Directory>


Alias /images/covers "//xxx.xx.x.xx/Imagesfolder/covers/"
<Directory "//1xxx.xx.x.xx/Imagesfolder/covers/">
   Options Indexes FollowSymLinks
   AllowOverride all
   Order Allow,Deny
   Allow from all
   Require all granted
</Directory>

这里 xxx.xx.x.xx 是 windows 服务器的 ip。Imagesfolder 是服务器上共享文件夹的名称。

但是,我无法访问此文件夹并且收到 403 错误。

请知道如何解决这个问题。

4

1 回答 1

0

您应该在 Mac 上挂载共享文件夹并将 Apache 配置为使用挂载的目录作为别名。Apache 无法像您尝试那样通过 URL 访问 SMB/CIFS 共享。

Alias /images "/path/to/mounted/images-directory"
<Directory /path/to/mounted/directory>
  ...
</Directory>

我建议您阅读 Apache 的手册以获取更多详细信息。

于 2013-09-25T16:56:13.867 回答