Xampp Apache提要重复/修改
首先,如果我的英语不好,我会提前道歉,我会使用翻译。我将尝试以最简单的方式解释我的问题。
我正在工作以下工作以开发一个项目:
C:\xampp\htdocs\[ProjectFolder]
最后,我有一个类似的目录树:
- HTDoCS
--- Project 1
--- Project 2
--- Project 3
众所周知,在浏览器中查看,我会这样工作:
http://localhost/projectName
当我有太多项目时,这种用法会给我带来麻烦我需要使用.htaccess文件。另外,发布项目变得非常困难...
我想这样做:
http://localhost:8080 -> htdocs/project1
http://localhost:8081 -> htdocs/project2
http://localhost:8082 -> htdocs/project3
所以我想将每个端口托管在HTDOC下的另一个文件夹的根文件夹。
我知道如何通过制作VirtualHost更改端口或根文件夹,但是我不知道如何为我设置的每个端口制作不同的根文件夹。
你能帮我吗?感谢所有已经发表评论的人...
First of all, I apologize in advance if my English is bad, I use translation. I will try to explain my problem in the simplest way.
I am working as follows to develop a project:
C:\xampp\htdocs\[ProjectFolder]
Finally I have a directory tree like this:
- HTDoCS
--- Project 1
--- Project 2
--- Project 3
And to view in browser, as you know, I work like this:
http://localhost/projectName
This usage gives me trouble when I have too many projects and I have problems when I need to work with .htaccess files. Also, getting the projects published is getting very difficult...
I want to do it like this:
http://localhost:8080 -> htdocs/project1
http://localhost:8081 -> htdocs/project2
http://localhost:8082 -> htdocs/project3
so I want to make the root folder where each port is hosted another folder under htdocs.
I know how to change port or root folder by making virtualhost, but I have no idea how to make a different root folder for each port I set.
Can you help me please? Thanks to everyone who has already commented...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论