Apache的网络驱动器的别名 [英] Apache Network Drive Alias

查看:275
本文介绍了Apache的网络驱动器的别名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过计算器寻找一个类似的问题,但没有解决方案,似乎工作。

I've searched through stackoverflow for a similiar problem, but none of the solutions seem to work.

我运行WAMP,有一个网络驱动器 T:\\ 我要在Apache的别名使用。到目前为止,我还补充说:

I'm running WAMP and have a network drive T:\ which I want to use as an alias in Apache. So far I have added:

别名/ p \\\\ ps-file.server_location.edu \\ A $结果
  <目录/ P>结果
  为了允许,拒绝结果
  所有结果允许
  < /目录>

Alias /p \\ps-file.server_location.edu\A$
< Directory /p>
Order allow,deny
Allow from all
< / Directory>

然而,每当我试图访问本地主机/ P 我得到一个403禁止消息说您没有权限访问/ p此服务器。有什么建议?

However, whenever I try to access localhost/p I get a 403 forbidden message saying You don't have permission to access /p on this server. Any suggestions?

我试图改变在SERVICES.MSC登录设置,但是这将停止阿帕奇启动在一起。

I have tried changing the logon settings in services.msc, but this stops apache from starting all together.

编辑:我也有进入我的网络登录信息开车,我第一次连接。我能以某种方式给我的apache的登录信息?

I also have to enter my login information for the network drive the first time I connect it. Can I somehow give apache my login information?

推荐答案

您需要使用正斜杠而不是反斜杠或使用附加backslashas以及放入引号内的路径由Xophmeister规定逃避它们。例如:

You need to use forward slashes instead of backslashes or escape them all using an additional backslashas well as enclosing the paths in quotes as stated by Xophmeister. Eg:

Alias /p "//ps-file.server_location.edu/A$/"
<Directory "//ps-file.server_location.edu/A$/">
Order allow,deny
Allow from all
</Directory>

Alias /p "\\\\ps-file.server_location.edu\\A$\\"
<Directory "\\\\ps-file.server_location.edu\\A$\\">
Order allow,deny
Allow from all
</Directory>

您是正确的,除非你在创建用户配置文件映射驱动器使用UNC路径被用来运行Apache服务。

You are correct to use a UNC path unless you create a mapped drive in the user profile being used to run the apache service.

这篇关于Apache的网络驱动器的别名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆