rewrite Rules creates malformed config

#1
v1.4.30.

In admin panel, Virtual Host > Rewrite, when I add Rewrite Rules, it creates malformed rules in vhconf.conf. For example, when I add "rewriteFile /vagrant/.htaccess" to the admin ui interface and save, then it creates:

rewrite {

enable 1

logLevel 9

rewriteFile /vagrant/.htaccess

}


This wouldn't work. This should create something like:

rewrite {

enable 1

logLevel 9


rules rewriteFile /vagrant/.htaccess

}


I've tried with normal rewrite rules and same thing happens. it doesn't work at all.

 
#4
Hello again,

I just test it and its working with no errors. You need to put the full path to the file, like:

rewriteFile /home/test/public_html/.htaccess
 
#7
Ok but see what happens when you add a rewrite map via config or the interface like:

map lowercase {
location int:tolower
}

It will break the form.
 
Top