装了IIS之后打开localhost,老是IIS的那个恶心图标,怎么办

本文介绍了如何修改XAMPP中Apache的默认端口设置,包括HTTP端口从80改为81,HTTPS端口从443改为442的具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1,不修改XAMPP的web默认端口,
使用地址 http://localhost/xampp/index.php

2,修改XAMPP的默认端口,
具体看这篇文章
http://blog.youkuaiyun.com/dodo_yin/article/details/5755917

By default IIS employs ports 80 and 443 for HTTP and HTTPS entree severally. By default, Apache too presumes these scenes. By changing two config files in Apache you can easily reverse this:

For the design of this article I 'll presume you installled XAMPP to the default location.


Edit file C:xamppapacheconfhttpd.conf
Alteration line 63 to:
Listen *: 81
this gets apache listening to all IP addresses on port 81 ( you likelily make n't ask the star but I maked for safeties sake. You could too alter to another port of selection,e.g. 8080 )
Alteration line 175 to:
ServerName localhost: 81
Again - if you took another port, update witht that. Salvage the file and last.
Edit file C:xamppapacheconfextrahttpd-ssl.conf
Edit line 42 to:
Listen 442
This alters the SSL ( HTTPS ) port to 442 ( or again, your port of selection ).

转载于:https://www.cnblogs.com/fickleness/archive/2013/06/09/3129351.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值