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


    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:

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

    srijan New Member HowtoForge Supporter


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


  3. cbj4074

    cbj4074 Member

  4. falko

    falko Super Moderator ISPConfig Developer

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

Share This Page