- 我在我的OSX Lion服务器上设置了LAMP,当我离开默认设置时,似乎一切正常。
或者: A)从/ etc/apache2的拆卸username.conf文件/用户保留了默认的运行:如何将Dropbox目录用作OSX中的虚拟主机文档根目录?
DocumentRoot "/Library/WebServer/Documents"
<Directory "/Library/WebServer/Documents">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks MultiViews
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
B)否则,即,如果我的目的地离开username.conf对于本地主机转到默认username.conf是:
NameVirtualHost *:80
<Directory "/Users/USERNAME/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
- 我想创建一个指向我的Dropbox subdirectorie的一个虚拟主机这样我可以跨设备无缝开发。
然而,当我尝试指向/用户/用户名/ Dropbox和其中的任何子目录中,我得到了以下错误:
[Fri Feb 24 19:00:06 2012] [error] [client 127.0.0.1] client denied by server configuration: /Users/username
[Fri Feb 24 19:00:35 2012] [notice] caught SIGTERM, shutting down
Warning: DocumentRoot [/Users/username/Dropbox/MY/DIRECTORY] does not exist
httpd: Could not reliably determine the server's fully qualified domain name, using My-MacBook-Air.local for ServerName
[Fri Feb 24 19:00:36 2012] [warn] mod_bonjour: Skipping user 'USERNAME' - no valid index file.
[Fri Feb 24 19:00:36 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Feb 24 19:00:36 2012] [notice] Digest: done
[Fri Feb 24 19:00:36 2012] [notice] Apache/2.2.21 (Unix) DAV/2 PHP/5.3.8 with Suhosin-Patch configured -- resuming normal operations
- 在哪里,我可以改变什么允许访问?
这仅仅是我,还是其他人认为这听起来像是一个非常危险的想法,给Dropbox的安全记录? – ghoti 2012-02-27 04:26:31
考虑到我只将它用于没有任务关键内容的个人开发目的,我不认为这是个问题。 – 2012-02-28 19:31:18