httpd服務基於IP

 vim /usr/local/apache2/conf/extra/httpd-vhosts.confapache

wKiom1j0XRaynfhMAABF04AY8PM521.png

/usr/local/apache2/bin/apachectl -tvim

/usr/local/apache2/bin/apachectl restartide


/usr/local/apache2/bin/apachectl -tspa

提示[Mon Apr 17 14:15:21 2017] [warn] NameVirtualHost *:80 has no VirtualHostsrest

 vim /usr/local/apache2/conf/extra/httpd-vhosts.conform

改爲如下截圖就能夠了blog

wKioL1j0YazyE4UOAABKSfBlaXU084.png

[root@Test-BBR ~]# /usr/local/apache2/bin/apachectl restartget

[root@Test-BBR ~]# /usr/local/apache2/bin/apachectl -tit

Syntax OKio




wKioL1j0X9Xg6wtCAABqLNknkeE977.png

相關文章
相關標籤/搜索