日本少妇高潮pics,欧美成人伊人久久综合网,99v久久综合狠狠综合久久,99精品久久精品一区二区

Board logo

標(biāo)題: [BUG反饋] WDCP2.5正式版選擇301重定向域名綁定失效的問題 [打印本頁]

作者: fly767    時間: 2012-10-28 13:53     標(biāo)題: WDCP2.5正式版選擇301重定向域名綁定失效的問題

本帖最后由 fly767 于 2012-10-28 14:00 編輯

目前在CENTOS6 ,CENTOS6.2 不管是32位還是64位上安裝WDCP均發(fā)現(xiàn)在管理面板選擇301重定向后 ,域名綁定失效,直接解析到系統(tǒng)默認(rèn)的IP上,查看配置文件變?yōu)椋ú捎玫氖荓AMP):

<VirtualHost *:80>
DocumentRoot /www/web/XXX/public_html
ServerName XXX.com
RewriteEngine on
RewriteRule ^(.*)$ http://www.XXX.com$1 [R=301,L]
</VirtualHost>
<Directory /www/web/XXX>
    Options FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

沒有選擇這個301重定向的正常的配置文件應(yīng)該是這樣的:

<VirtualHost *:80>
DocumentRoot /www/web/XXX/public_html
ServerName XXX.com
ServerAlias www.XXX.com
DirectoryIndex index.html index.htm
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 405 /errpage/405.html
php_admin_value open_basedir /www/web/XXX:/tmp
<IfModule mod_deflate.c>
DeflateCompressionLevel 7
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
</IfModule>
</VirtualHost>
<Directory /www/web/XXX>
    Options FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>



只要取消301重定向這個選項,保存后一切正常,所以目前只能變通解決,新建站點時先不要選擇301重定向,然后在站點新建完成后,自行用文件管理打開對應(yīng)站點的配置文件,在

php_admin_value open_basedir


<IfModule mod_deflate.c>

這兩句之間加上下面這兩句即可(把XXX請改為自已的域名)

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.XXX.com$ [NC]
RewriteRule ^(.*)$ http://www.XXX.com/$1 [L,R=301]

,希望官方早點解決這個小問題
作者: admin    時間: 2012-10-28 18:52

如有看教程,文檔,FAQ,你就知道,怎么解決




歡迎光臨 WDlinux官方論壇 (http://www.szkyjg.com/bbs/) Powered by Discuz! 7.2