今天想补充一下前两次专题中没有详细探讨,但又比较重要的内容如何改变Apache端口 如何改变IIS端口 如何配置改变Apache网页服务目录在本机中的地址路径 如何配置
如何改变Apache端口:找到Apache安装目录下conf目录下的httpd.conf文件。打开它,找到“Listen”,紧接着Listen的数字就是端口号,默认状态下为“Listen 80”。在之前的PHP专题中提到过关于在安装配置Apache时会遇到端口与IIS HTTP端口冲突的问题,因为IIS HTTP端口默认也为80。那么我们就可以在这里改变Apache的端口,从而避免冲突,比如可以改成:Listen 8011。改好之后别忘重起Apache服务使得配置生效。
如何改变IIS端口:如果你想同时保留Apache服务与IIS服务,又不想改变Apache默认的80端口,那么只有改变IIS的端口了。开始->运行->输入:inetmgr->Internet信息服务->本地计算机->网站->右键“默认网站”->属性->选择“网站”标签->修改TCP端口即可。最后也别忘了重新启动一下IIS服务。
如何配置改变Apache网页服务目录在本机中的地址路径:默认状态下,Apache的wwwroot为Apache安装目下的htdocs目录,如果你想改变这个目录的位置,那么还是打开httpd.conf,找到DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"以及
如何配置改变Apache首页文件名:当你输入例如时,Apache会默认打开index.html文件,如果你想修改首页文件或者增加首页文件时,仍然打开httpd.conf,找到DirectoryIndex index.html,修改index.html为你想要文件名即可,比如main.php。如果你想添加多个首页文件,可以用空格隔开,文件的前后顺序就是首页文件读取的优先度。重起Apache服务。
好了,在了解了这些基本的配置方法及概念后,我们可以更加顺利地进行我们的系统制作了!
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article
How to fix KB5055523 fails to install in Windows 11?
4 weeks agoByDDD
How to fix KB5055518 fails to install in Windows 10?
4 weeks agoByDDD
Roblox: Grow A Garden - Complete Mutation Guide
3 weeks agoByDDD
Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
How to fix KB5055612 fails to install in Windows 10?
3 weeks agoByDDD

Hot Tools

Atom editor mac version download
The most popular open source editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Chinese version
Chinese version, very easy to use

SublimeText3 Linux new version
SublimeText3 Linux latest version
