. We only add the web aliases in cp, the php is not work, no any backed config for this site<br><br>No any <br><br>On Sunday, March 11, 2012, SB9-PageKeeper Service <<a href="mailto:ml@sb9.com">ml@sb9.com</a>> wrote:<br>
> <br>> HI All<br>><br>> <br>> When i edit Web Server Aliases , the php config will loss.<br>> <br>> 1. I create the test site, with one aliases, the php is work<br>> 2. Add one more web server aliases in UI, the php config will gone.<br>
> ###<br>> RewriteEngine on<br>> RewriteCond %{HTTP_HOST} !^59.xxx.x.10(:80)?$<br>> RewriteCond %{HTTP_HOST} !^<a href="http://www.testtest.com">www.testtest.com</a>(:80)?$ [NC]<br>
> RewriteCond %{HTTP_HOST} !^<a href="http://testtest.com">testtest.com</a>(:80)?$ [NC]<br>> RewriteCond %{HTTP_HOST} !^<a href="http://mail.testtest.com">mail.testtest.com</a>(:80)?$ [NC]<br>
> RewriteRule ^/(.*) <a href="http://www.testtest.com/$1">http://www.testtest.com/$1</a> [L,R=301]<br>> RewriteOptions inherit<br>> AliasMatch ^/~([^/]+)(/(.*))? /home/.sites/106/site51/users/$1/web/$3<br>
> Include /etc/httpd/conf/vhosts/site51.include<br>> # BEGIN PHP SECTION. DO NOT EDIT MARKS OR IN BETWEEN.<br>> 3. But i del add the web server aliases, the php config is back (but the rewrite still here?) <br>> ###<br>
> RewriteEngine on<br>> RewriteCond %{HTTP_HOST} !^59.xxx.x.10(:80)?$<br>> RewriteCond %{HTTP_HOST} !^<a href="http://www.testtest.com">www.testtest.com</a>(:80)?$ [NC]<br>> RewriteCond %{HTTP_HOST} !^<a href="http://testtest.com">testtest.com</a>(:80)?$ [NC]<br>
> RewriteCond %{HTTP_HOST} !^<a href="http://mail.testtest.com">mail.testtest.com</a>(:80)?$ [NC]<br>> RewriteRule ^/(.*) <a href="http://www.testtest.com/$1">http://www.testtest.com/$1</a> [L,R=301]<br>
> RewriteOptions inherit<br>> AliasMatch ^/~([^/]+)(/(.*))? /home/.sites/106/site51/users/$1/web/$3<br>> Include /etc/httpd/conf/vhosts/site51.include<br>> # BEGIN WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.<br>
> AddType application/x-httpd-php .php5<br>> AddType application/x-httpd-php .php4<br>> AddType application/x-httpd-php .php<br>> # END WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.<br>><br>> ________________________________<br>
><br>> _______________________________________________<br>> Do not ever edit the<br>> /etc/httpd/conf/vhosts/site51 file!<br>> it is over written on any changes in<br>> blue onyx or BQ cobalt ect... EG;<br>
> !!!! # BEGIN PHP SECTION. DO NOT EDIT MARKS OR IN BETWEEN. !!!!!<br>> <br>> Put your vsite changes in the .include file<br>> /etc/httpd/conf/vhosts/site51.include<br>> They will stay put when you make changes in the control panel...<br>
> Hope that helps<br>> David Hahn