OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • Rewrite Issue Nginx failed to start
« previous next »
  • Print
Pages: [1]

Author Topic: Rewrite Issue Nginx failed to start  (Read 649 times)

toomanylogins

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
    • View Profile
Rewrite Issue Nginx failed to start
« on: July 29, 2022, 12:00:48 pm »
OPNsense 22.1.10. Nginx failed to start with this error

invalid number of arguments in "rewrite" directive in /usr/local/etc/nginx/nginx.conf:2302

I have been testing rewrite rules and created a few then deleted them. In nginx conf line 2302 there was the following,

include 2b940020-1678-409e-a6b1-1760fdd107cb_pre/*.conf;
rewrite ;
rewrite ;

So it looks like the rule is deleted but not the line rewrite ;

Spoke to soon. If you restart/refresh config the lines reappear in nginx.conf

How do I resolve this delete the include line as well ?
« Last Edit: July 29, 2022, 03:31:57 pm by toomanylogins »
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Rewrite Issue Nginx failed to start
« Reply #1 on: August 01, 2022, 11:46:03 pm »
Are they still in the config.xml?
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Web Proxy Filtering and Caching (Moderator: fabian) »
  • Rewrite Issue Nginx failed to start
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2