首页 > 代码库 > httpd服务基于IP

httpd服务基于IP

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

技术分享

/usr/local/apache2/bin/apachectl -t

/usr/local/apache2/bin/apachectl restart


/usr/local/apache2/bin/apachectl -t

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

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

改成以下截图就可以了

技术分享

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

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

Syntax OK




技术分享

本文出自 “IT屌丝” 博客,请务必保留此出处http://68686789.blog.51cto.com/10438688/1916659

httpd服务基于IP