我正在尝试从以下位置导出域名:“/usr/local/apache/conf/httpd.conf”,文件中的域名如下所示:
ServerName www.site.com
ServerName www2.site.org
我尝试使用:
cat /usr/local/apache/conf/httpd.conf | grep ServerName
但输出将包含:
# ServerName allows you to set a host name which is sent back to clients for
ServerName www.site.com
# to the server the response is coming from) it will use ServerName and
# ServerName host.some_domain.com
# ServerName allows you to set a host name which is sent back to clients for
ServerName www2.site.org
# to the server the response is coming from) it will use ServerName and
# ServerName host.some_domain.com