Rewrite Rules syntax for nginx (in Web Domain -> Redirect field) in ISPConfig 3?

Discussion in 'Installation/Configuration' started by cbj4074, Feb 27, 2014.

  1. cbj4074

    cbj4074 Member

    Hello,

    I'm attempting to add a rewrite rule to this field, but the input validation filter that ISPConfig employs rejects the rule with "Invalid Rewrite Rules". The same rule works as expected when pasted directly into the nginx configuration file.

    Here's the rule:

    Code:
    rewrite '^/download/My File\.pdf$' '/download/My New File.pdf' permanent;
    
    Thanks for any guidance here!
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Hi

    The rewrite rule is correct. I will suggest you to submit the problem in ispconfig bugtracker at http://bugtracker.ispconfig.org so that the ispconfig developers can check why this rule gets rejected.


    Br//

    Srijan
     
  3. cbj4074

    cbj4074 Member

  4. falko

    falko Super Moderator Howtoforge Staff

    I guess the problem is that you have spaces in your URLs.
     

Share This Page