
Apache如何绑定域名?
1个回答
展开全部
你是用apache做虚拟主机吗? 如果是单独一个网站,不需要绑定就可以访问,如果只限制一个域名访问的话,在httpd.conf搜索Listen 80 将其改为 Listen 域名:80 即可。如果是做虚拟主机,需要在httpd.conf最后加上像下面这样的设置:<VirtualHost ithx.net:80>
DocumentRoot "H:/website/wwwroot/idc.qkweb.net/htdocs"
ServerName ithx.net:80
<Directory "H:/website/wwwroot/idc.qkweb.net/htdocs">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride Options FileInfo
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
DocumentRoot "H:/website/wwwroot/idc.qkweb.net/htdocs"
ServerName ithx.net:80
<Directory "H:/website/wwwroot/idc.qkweb.net/htdocs">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride Options FileInfo
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?

2023-07-25 广告
StormProxies是一家国内优质海外HTTP代理商,拥有一个庞大的IP资源池,覆盖200多个地区,IP数量大且匿名度高。其优点还包括超高并发、稳定高效、技术服务等特点,同时提供HTTP、HTTPS以及SOCKS5协议支持。此外,Sto...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |