[BlueOnyx:09779] Re: When i edit Web Server Aliases , the php config will loss.
SB9-PageKeeper Service
ml at sb9.com
Sat Mar 10 23:31:49 -05 2012
My Blueonxy is build 20110817 for a 5106R in en_US
All the yum in update.
On Sun, Mar 11, 2012 at 11:34 AM, Mon Chan <mon.chan at gmail.com> wrote:
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.
------------------------------------------------------------------------------
_______________________________________________
If i understand correctly what your after is you loose your changes when cced has changed.
Use the '/etc/httpd/conf/vhosts/site##.include' to put your php changes you want to keep.
Each vsite has a .include file.
Example:
php_admin_value open_basedir none
Hope that helps.
David Hahn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20120310/c5811dd6/attachment.html>
More information about the Blueonyx
mailing list