如何创建www目录的符号链接? [英] How to create a symbolic link in the www directory?

查看:144
本文介绍了如何创建www目录的符号链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我甚至不知道这是做正确的方式,但我找一些建议。我开发在Mac上,但使用VMWare的运行在Windows这个项目。

I'm not even sure this is the right way to do this, but I am looking for some advice. I am developing on a Mac, but using VMWare to run this project in Windows.

我使用WAMPserver 2.2A。我的目录是这样的:

I am using WAMPserver 2.2A. My directories look like this:

C:\Users\John Doe\Development\project-web\
C:\wamp\www\

我想什么,是培养我的项目的Web项目,但在WWW一个符号,所以我可以在与Apache浏览器中运行它。这是我尝试:

What I would like, is to develop my project in project-web, but have a symlink in www so I can run it in the browser with apache. This is what I tried:

mklink project "C:\Users\John Doe\Development\project-web\"

我想这种方式接近它的时候遇到了一些权限错误。我喜欢这种感觉会比存储\\ WWW \\该项目,但我可能是错的更好。

I ran into some permissions errors when trying to approach it this way. I feel like this would be better than storing the project in \www\ but I might be wrong.

任何意见将是伟大的!

推荐答案

阿帕奇一般不会跟随符号连接默认情况下,因为它们可以被用来平凡打出来的文档根。我建议正在研究使用Apache 别名,而不是创造映射到你的开发目录的虚拟文件夹的Apache

Apache generally doesn't follow symlinks by default, as they can be trivially used to break out of the document root. I'd suggest looking into using an Apache Alias instead to create a virtual Apache folder that maps to your development directory

这篇关于如何创建www目录的符号链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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