rewrite Rules creates malformed config

Discussion in 'OpenLiteSpeed Bug Reports' started by Steve Kim, Apr 5, 2018.

Tags:
  1. Steve Kim

    Steve Kim New Member

    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.

     
  2. Tishu

    Tishu Member

    Hello,

    Did you put full path to the htaccess file?
     
  3. Steve Kim

    Steve Kim New Member

    Yes that's the full path.
     
  4. Tishu

    Tishu Member

    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
     
  5. Steve Kim

    Steve Kim New Member

    Can you show me what it creates in vhconf.conf ?
     
  6. Tishu

    Tishu Member

    rewrite {
    enable 1
    logLevel 9
    rules rewriteFile /home/test/public_html/.htaccess
    }
     

Share This Page