IXWebHosting的每个主机都提供了独立IP,其中Unlimited主机更是提供了15个独立IP。不过独立IP再多也会用完的,如果你的网站数目大于IXWebHosting主机提供的独立IP数, 那你只能使用共享IP了。不过由于国内环境的特殊系,如果你的共享IP不幸被 “墻”了,那么你的网站也会被牵连。那么能不能在自己的IP独立上绑定多个网站呢? 当然是可以的:
我们以www.ixwebhosting.cn www.ixwebhosting.com.cn 两个域名为例。
RewriteEngine on
# ixwebhosting.cn
RewriteCond %{REQUEST_URI} !^/ixwebhosting.cn/.*
RewriteCond %{HTTP_HOST} ^ixwebhosting.cn$ [OR]
RewriteCond %{HTTP_HOST} ^www.ixwebhosting.cn$
RewriteRule ^(.*) /ixwebhosting.cn/$1 [L]# ixwebhosting.com.cn
RewriteCond %{REQUEST_URI} !^/ixwebhosting.com.cn/.*
RewriteCond %{HTTP_HOST} ^ixwebhosting.com.cn$ [OR]
RewriteCond %{HTTP_HOST} ^www.ixwebhosting.com.cn$
RewriteRule ^(.*) /ixwebhosting.com.cn/$1 [L]
自此你所有的设置已经完成了,www.ixwebhosting.cn 和 www.ixwebhosting.com.cn 使用了同一个IP,但是这两个域名对于了不同的根目录 /xxx/ixwebhosting.cn/ixwebhosting.cn 和 /xxx/ixwebhosting.cn/ixwebhosting.com.cn
当然如果你想在一个独立IP上绑定多个域名也是可以的,只要在.htaccess下多加一个域名设置就可以了。(依葫芦画瓢)
十年如一日, IXWebHosting始终如一的为客户提供顶级的主机服务,无论是对中小商务用户、大型公司或者个人,IX Web Hosting主机都是你的不二之选。
IXWebhosting社区