Click here to Close
打印

[讨论] aparche目录问题

aparche目录问题

可否把aparche的主目录/Library/WebServer/Documents/改到D盘?这样就可以放入大量的图片、小电影了,C盘空间太小了。


这也算是一种隐藏的方式吧 请高人现身~~
高人,快来吧
Step3:编辑httpd.conf文件

3.1还是在WinSCP右边,找到<root>-etc-httpd文件夹

  双击httpd.conf打开,在最后加入如下代码:(用复制粘贴的话,注意检查,删掉复制到的乱码)

 

ScriptAlias /php /opt/iphone/bin
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi"#

 

3.2重启iPhone
不好意思上面的贴错了,是加php的。
我修改了文件 /private/etc/gttpd/httpd.conf
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/private/var/root/WebServer/Documents"
上一行就是修改的, 当然你必须有这个目录。(/private就是盘的根目录)

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/private/var/root/WebServer/Documents">
上一行就是修改的。

[ 本帖最后由 adchenqs 于 2008-2-12 23:19 编辑 ]

附件

httpd.rar (11.68 KB)

2008-2-12 23:19, 下载次数: 25

这是我iphone的apache的文件

回复 6# 的帖子

谢谢,按照你的方式配置,然后重启,成功!

但你好像少写了一处,下面这部分也要改的:
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/private/var/root/WebServer/Documents">
深公网安备案证字第 4403101901155 号