The research link you pasted has the first part of the answer to your question, changing the path you want serve but the second part of your question, making it serve "myFile" as the Index is an additional step. See:
So you would add this line inside the relevant tags or even loose in the main httpd.conf file (see the Context section of the above link for valid places to use this directive):
Edit the httpd.conf file - the DocumentRoot directory can be updated to whichever directory you would like (and that the process has permissions to). See:
发布评论
评论(2)
您粘贴的研究链接包含问题答案的第一部分,更改您想要提供的路径,但问题的第二部分,使其提供“myFile”作为索引是一个额外的步骤。请参阅:
http://httpd.apache.org/docs/2.0/mod /mod_dir.html#directoryindex
使用此指令的有效位置,请参阅上述链接的上下文部分):
因此,您可以在相关标签内添加此行,甚至在主 httpd.conf 文件中添加此行(有关 有帮助。
The research link you pasted has the first part of the answer to your question, changing the path you want serve but the second part of your question, making it serve "myFile" as the Index is an additional step. See:
http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex
So you would add this line inside the relevant tags or even loose in the main httpd.conf file (see the Context section of the above link for valid places to use this directive):
Hope this helps.
编辑 httpd.conf 文件 - DocumentRoot 目录可以更新为您想要的任何目录(并且该进程有权访问)。请参阅:
http://httpd.apache.org/docs/2.0/mod /core.html#documentroot
Edit the httpd.conf file - the DocumentRoot directory can be updated to whichever directory you would like (and that the process has permissions to). See:
http://httpd.apache.org/docs/2.0/mod/core.html#documentroot