After upgrading to Custombuild 2.0 my apps like PHPMyAdmin and roundcube cannot be found anymore (404). My options.conf contains:
	
	
	
		
My conf/extra/httpd-alias.conf is:
	
	
	
		
Though, to get is work, it should be:
	
	
	
		
I copied this file to /usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-alias.conf, but after I rewrite my config files, it still gets overwritten. How can I retain my httpd-alias.conf file when rewriting the configfiles?
				
			
		Code:
	
	use_hostname_for_alias=yes
redirect_host=secure.host.com
redirect_host_https=yes
	My conf/extra/httpd-alias.conf is:
		Code:
	
	RewriteEngine On
RewriteCond %{HTTP_HOST} !^secure.host.com$
RewriteCond %{REQUEST_URI} ^/config/ [OR]
RewriteCond %{REQUEST_URI} ^/config$ [OR]
RewriteRule ^/config(.*) https://secure.host.com/redirect.php$1
RewriteCond %{HTTP_HOST} !^secure.host.com$
RewriteCond %{REQUEST_URI} ^/roundcube/ [OR]
RewriteCond %{REQUEST_URI} ^/roundcube$ [OR]
RewriteRule ^/roundcube(.*) https://secure.host.com/roundcube$1
RewriteCond %{HTTP_HOST} !^secure.host.com$
RewriteCond %{REQUEST_URI} ^/webmail/ [OR]
RewriteCond %{REQUEST_URI} ^/webmail$ [OR]
RewriteRule ^/webmail(.*) https://secure.host.com/squirrelmail$1
RewriteCond %{HTTP_HOST} !^secure.host.com$
RewriteCond %{REQUEST_URI} ^/phpMyAdmin/ [OR]
RewriteCond %{REQUEST_URI} ^/phpMyAdmin$ [OR]
RewriteRule ^/phpMyAdmin(.*) https://secure.host.com/phpMyAdmin$1
RewriteCond %{HTTP_HOST} !^secure.host.com$
RewriteCond %{REQUEST_URI} ^/phpmyadmin/ [OR]
RewriteCond %{REQUEST_URI} ^/phpmyadmin$ [OR]
RewriteRule ^/phpmyadmin(.*) https://secure.host.com/phpMyAdmin$1
RewriteCond %{HTTP_HOST} !^secure.host.com$
RewriteCond %{REQUEST_URI} ^/pma/ [OR]
RewriteCond %{REQUEST_URI} ^/pma$ [OR]
RewriteRule ^/pma(.*) https://secure.host.com/phpMyAdmin$1
	Though, to get is work, it should be:
		Code:
	
	RewriteEngine On
RewriteCond %{HTTP_HOST} !^secure.host.com$
RewriteCond %{REQUEST_URI} ^/config/ [OR]
RewriteCond %{REQUEST_URI} ^/config$ [OR]
RewriteRule ^/config(.*) https://secure.host.com/redirect.php$1
RewriteCond %{HTTP_HOST} !^secure.host.com$
RewriteCond %{REQUEST_URI} ^/roundcube/ [OR]
RewriteCond %{REQUEST_URI} ^/roundcube$ [OR]
RewriteRule ^/roundcube(.*) https://secure.host.com/roundcube$1
RewriteCond %{HTTP_HOST} !^secure.host.com$
RewriteCond %{REQUEST_URI} ^/webmail/ [OR]
RewriteCond %{REQUEST_URI} ^/webmail$ [OR]
RewriteRule ^/webmail(.*) https://secure.host.com/webmail$1
RewriteCond %{HTTP_HOST} !^secure.host.com$
RewriteCond %{REQUEST_URI} ^/phpMyAdmin/ [OR]
RewriteCond %{REQUEST_URI} ^/phpMyAdmin$ [OR]
RewriteRule ^/phpMyAdmin(.*) https://secure.host.com/phpMyAdmin$1
RewriteCond %{HTTP_HOST} !^secure.host.com$
RewriteCond %{REQUEST_URI} ^/phpmyadmin/ [OR]
RewriteCond %{REQUEST_URI} ^/phpmyadmin$ [OR]
RewriteRule ^/phpmyadmin(.*) https://secure.host.com/phpMyAdmin$1
RewriteCond %{HTTP_HOST} !^secure.host.com$
RewriteCond %{REQUEST_URI} ^/pma/ [OR]
RewriteCond %{REQUEST_URI} ^/pma$ [OR]
RewriteRule ^/pma(.*) https://secure.host.com/phpMyAdmin$1
Alias /config "/var/www/html/redirect.php"
Alias /phpMyAdmin "/var/www/html/phpMyAdmin/"
Alias /phpmyadmin "/var/www/html/phpMyAdmin/"
Alias /pma "/var/www/html/phpMyAdmin/"
Alias /squirrelmail "/var/www/html/squirrelmail/"
Alias /roundcube "/var/www/html/roundcube/"
Alias /webmail "/var/www/html/roundcube/"
	I copied this file to /usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-alias.conf, but after I rewrite my config files, it still gets overwritten. How can I retain my httpd-alias.conf file when rewriting the configfiles?