美文网首页
apache httpd配置多个端口

apache httpd配置多个端口

作者: bdjejn | 来源:发表于2018-07-31 10:59 被阅读36次

进入/usr/local/apache/conf/目录下

打开httpd.conf

增加listen端口

Listen 80

Listen 85

在文件的最后增加

<VirtualHost *:85>

DocumentRoot /home/xxxx

ServerNamelocalhost:85

</VirtualHost>

<Directory  /home/xxxxx>

OptionsIndexes FollowSymLinks

AllowOverride All

Orderallow,deny

Allow from all

</Directory>

相关文章

网友评论

      本文标题:apache httpd配置多个端口

      本文链接:https://www.haomeiwen.com/subject/snmcvftx.html