当前位置:网站首页>Apache local multi port configuration
Apache local multi port configuration
2022-06-11 21:22:00 【L.Cheng】
How to debug multiple projects locally , Use the port number to distinguish
http://localhost:90/ 90 When accessing the port D:\php
http://localhost:91/ 91 When accessing the port D:\php2
http://localhost:92/ 92 When accessing the port D:\php3
Step one : open apache Of httpd.conf file , stay Listen 90 Enter from another line Listen 91 monitor 91 port , If other ports are required, add them one by one :
Listen 90
Listen 91
Listen 92

Step two : stay httpd.conf Add... To the last line of the file
<virtualhost localhost:91># Virtual host port
documentroot D:/php2 # Website directory absolute path
servername locahost:91 # Corresponding listening port
</virtualhost>
# Continue adding directory properties :
<Directory "D:/php2">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<virtualhost localhost:92># Virtual host port
documentroot D:/php3 # Website directory absolute path
servername locahost:92 # Corresponding listening port
</virtualhost>
# Continue adding directory properties :
<Directory "D:/php3">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>Restart after completion apache

边栏推荐
- Live broadcast with practice | 30 minutes to build WordPress website with Alibaba cloud container service and container network file system
- Application scenario: wide application of Poe network card in NDI technology for live broadcast program production
- Go语言函数
- Teach you how to use win7 system to quickly build your own website
- bzoj3188 Upit
- 第二部分 数据链路层
- Redis fourth session - redis high performance principle (multiplexing) and high availability analysis (backup, master-slave)
- Three waves of changes in cloud computing
- Notes on the preload method of Gorm
- 【 C Advanced language】 Integer Storage in Memory
猜你喜欢

LabVIEW控制Arduino实现超声波测距(进阶篇—5)

Only 38 years old! Zhou Chuan, a researcher of the Chinese Academy of Sciences, died unfortunately. Rao Yi sent a document to mourn: he guided me when he was still my student

Solve the problem of img 5px spacing

The official announced the launch of Alibaba's 2023 global school recruitment: Technical Posts account for more than 60%

Database daily question --- day 9: salesperson

One article to show you how to understand the harmonyos application on the shelves

新品发布:LR-LINK联瑞推出首款25G OCP 3.0 网卡

SQL的语法

从概率论基础出发推导卡尔曼滤波

In idea, run the yarn command to show that the file cannot be loaded because running scripts is disabled on this system
随机推荐
I haven't blogged for two months. I sent an article to prove that my account is still alive
Pyqt5 technical part - set the default value of qcombobox drop-down box and get the current selection of the drop-down box
LabVIEW controls Arduino to realize ultrasonic ranging (advanced chapter-5)
全球机器视觉市场规模持续上涨,PoE图像采集卡为工业相机提供高速传输通道
【C语言进阶】整型在内存中的存储
【博弈论-绪论】
Deriving Kalman filter from probability theory
JVM之堆区
实现 TabLayout 下标与文字等长,选中字体大小改变
RANSAC提取平面(MATLAB内置函数)
【博弈论-完全信息静态博弈】 战略式博弈
Only 38 years old! Zhou Chuan, a researcher of the Chinese Academy of Sciences, died unfortunately. Rao Yi sent a document to mourn: he guided me when he was still my student
JS monitor scrolling touch bottom load more_ Browser scrolls to the bottom to load more
Serval and rooted Tree (cf1153d) - DP
JVM方法区
数据库每日一题---第9天:销售员
Which Bluetooth headset is better within 500? Inventory of gifts for girls' Day
JVM object allocation policy TLAB
A problem of setting the private library of golang
12 golden rules of growth