[BlueOnyx:09781] Re: When i edit Web Server Aliases , the php config will loss.
SB9-PageKeeper Service
ml at sb9.com
Sun Mar 11 00:09:24 -05 2012
HI All
When i edit Web Server Aliases , the php config will loss.
1. I create the test site, with one aliases, the php is work
2. Add one more web server aliases in UI, the php config will gone.
###
RewriteEngine on
RewriteCond %{HTTP_HOST} !^59.xxx.x.10(:80)?$
RewriteCond %{HTTP_HOST} !^www.testtest.com(:80)?$ [NC]
RewriteCond %{HTTP_HOST} !^testtest.com(:80)?$ [NC]
RewriteCond %{HTTP_HOST} !^mail.testtest.com(:80)?$ [NC]
RewriteRule ^/(.*) http://www.testtest.com/$1 [L,R=301]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/.sites/106/site51/users/$1/web/$3
Include /etc/httpd/conf/vhosts/site51.include
# BEGIN PHP SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
3. But i del add the web server aliases, the php config is back (but the rewrite still here?)
###
RewriteEngine on
RewriteCond %{HTTP_HOST} !^59.xxx.x.10(:80)?$
RewriteCond %{HTTP_HOST} !^www.testtest.com(:80)?$ [NC]
RewriteCond %{HTTP_HOST} !^testtest.com(:80)?$ [NC]
RewriteCond %{HTTP_HOST} !^mail.testtest.com(:80)?$ [NC]
RewriteRule ^/(.*) http://www.testtest.com/$1 [L,R=301]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/.sites/106/site51/users/$1/web/$3
Include /etc/httpd/conf/vhosts/site51.include
# BEGIN WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
AddType application/x-httpd-php .php5
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
# END WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
------------------------------------------------------------------------------
_______________________________________________
Do not ever edit the
/etc/httpd/conf/vhosts/site51 file!
it is over written on any changes in
blue onyx or BQ cobalt ect... EG;
!!!! # BEGIN PHP SECTION. DO NOT EDIT MARKS OR IN BETWEEN. !!!!!
Put your vsite changes in the .include file
/etc/httpd/conf/vhosts/site51.include
They will stay put when you make changes in the control panel...
Hope that helps
David Hahn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20120310/eb2dc2f0/attachment.html>
More information about the Blueonyx
mailing list