如何配置不同势根目录下的XAMPP Web服务器 [英] how to configuring a xampp web server for diffrent root directory

查看:201
本文介绍了如何配置不同势根目录下的XAMPP Web服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

web目录是所有应用程序的公共的和静态文件的家。包括图片,样式表和JavaScript文件。这也是前端控制器居住的地方。

The web directory is the home of all of your application's public and static files. Including images, stylesheets and JavaScript files. It is also where the front controllers live.

所以现在的问题是,当我安装和设置XAMPP我的web目录是:

So the question is when i install and set up xampp my web directory is:

xampp\htdocs

和我想将它设置为:

xampp\htdocs\myproject\web

怎么办呢?
现在,当我在浏览器中键入地址:的http://本地主机/ 结果
我输入 XAMPP \\ htdocs中目录结果
我想在我的浏览器中输入该地址:的http://本地主机/ 结果
并输入 XAMPP \\ htdocs中\\ MyProject的\\ WEB 目录

推荐答案

您可以点击(在XAMPP控制面板)修改httpd.conf中阿帕奇的apache / conf目录/ httpd.conf文件和调整的DocumentRoot 目录项条目>和。
刚<大骨节病>控制 + <大骨节病>˚F为htdocs目录,改变项目到新的路径。

You can change Apaches httpd.conf by clicking (in xampp control panel) apache/conf/httpd.conf and adjust the entries for DocumentRoot and the corresponding Directory entry. Just Ctrl+F for "htdocs" and change the entries to your new path.

这篇关于如何配置不同势根目录下的XAMPP Web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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