Rah*_*til 8 access-control apache-httpd
我的 Apache 服务器 IP 地址是 192.168.1.100,域名是test.local
.
我怎样才能做到这一点?
你想要做的是基于名称的虚拟主机,所以沿着这些路线的东西可能会让你开始,我相信:
NameVirtualHost *:80
<VirtualHost *:80>
<Location />
Order deny,allow
Deny from all
</Location>
# other configuration for default host...
</VirtualHost>
<VirtualHost *:80>
# This is the one you would like visible
ServerName test.local
<Location />
Order deny,allow
Allow from all
</Location>
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
(我有点赶时间,所以那里甚至可能有错别字,抱歉。)
归档时间: |
|
查看次数: |
10192 次 |
最近记录: |