[提问]
IXwebhosting在一个IP下做多个站?这样设对吗
|
|
DirectoryIndex default.php index.htm index.php index.html default.htm default.html index.shtml default.shtml
RewriteEngine On
Options All -Indexes
php_value upload_max_filesize 20M
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?原有的站网址$
RewriteCond %{REQUEST_URI} !^/原有的站路/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /原有的站路/$1
RewriteCond %{HTTP_HOST} ^(www.)?原有的站网址$
RewriteRule ^(/)?$ 原有的站路/index.php [L]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?新建的站网址$
RewriteCond %{REQUEST_URI} !^/新建站的路经/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /新建站的路经/$1
RewriteCond %{HTTP_HOST} ^(www.)?新建的站网址$
RewriteRule ^(/)?$ 新建站的路经/index.php [L]
ErrorDocument 401 /404.htm
ErrorDocument 403 /404.htm
ErrorDocument 404 /404.htm
ErrorDocument 500 /404.htm |
|
|
|
|
|
|
|
|
|
|
微微百科
发表于 2011-3-11 12:59:46
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
ljhping
发表于 2011-3-11 13:05:49
|
显示全部楼层
|
有按照哪样设置啊。。。可是不行啊。。。打开的是同一个站啊 |
|
|
|
|
|
|
|
|
|
|
微微百科
发表于 2011-3-11 13:11:28
|
显示全部楼层
回复 3# 的帖子
那个帖子中有成功案例,可能是你的某个地方设置有问题。
PS:这种方法适用于在一个独立IP下建立多个站,且是Linux主机才可以。另外使用此方法设置经常会出现路径问题,所以也不建议用此种方法来建立多个站。 |
|
|
|
|
|
|
|
|
|
|
ljhping
发表于 2011-3-11 13:23:57
|
显示全部楼层
|
可以写明白一点吗,哪里写原来的域名,哪里写要绑定的域名。。还有哪目录哪里也定明白一点。。。.htaccess 是传到原来域名的目录还是,新建包的目录。。。。 |
|
|
|
|
|
|
|
|
|
|
微微百科
发表于 2011-3-11 13:29:40
|
显示全部楼层
回复 5# 的帖子
应该是新建包的目录,具体没有做过。
PS:那是论坛上的一个朋友写的,你仔细阅读下应该能够做出来的。 |
|
|
|
|
|
|
|
|
|
|
ljhping
发表于 2011-3-11 13:31:31
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
微微百科
发表于 2011-3-11 13:35:28
|
显示全部楼层
回复 7# 的帖子
建议你把我上面给你的教程帖子看完再做决定个好。 |
|
|
|
|
|
|
|
|