首先需要修改httpd.conf
新增
Listen 99
然后在配置里面就可以使用对应的端口进行访问
<VirtualHost *:99>
DocumentRoot "D:\project\showdoc"
ServerName localhost:99
ServerAlias localhost:99
<Directory "D:\project\showdoc">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
关键字词: