[BlueOnyx:09784] Re: When i edit Web Server Aliases , the php config will loss.

Mon Chan mon.chan at gmail.com
Sun Mar 11 01:00:46 -05 2012


. We only add the web aliases in cp, the php is not work, no any backed
config for this site

No any

On Sunday, March 11, 2012, SB9-PageKeeper Service <ml at sb9.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.
>
> ________________________________
>
> _______________________________________________
> 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/20120311/d94558cb/attachment.html>


More information about the Blueonyx mailing list