How do I change default Directory and index File for Apache (installed via XAMPP) so instead of looking for htdocs
and index
, it looks for myPath
and myFile
, respectively?
相关问题
- What is the best way to do a search in a large fil
- Stop .htaccess redirect with query string
- How to access the camera from my Windows Phone 8 a
- Spring Integration - Inbound file endpoint. How to
- .htaccess rule, redirecting old unexistent address
相关文章
- Apache+Tomcat+JK实现的集群,如果Apache挂了,是不是整个服务就挂了?
- What is the correct way to declare and use a FILE
- How reliable is HTTP_HOST?
- Making new files automatically executable?
- Making a two way SSL authentication between apache
- How to serialize data into indented json [duplicat
- UnicodeEncodeError when saving ImageField containi
- mod_rewrite only on GET
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
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.