luarvique / ppa

This is the package repository for the improved version of the OpenWebRX online SDR.
129 stars 7 forks source link

Nginx reverse-proxy - log 404 error #4

Closed sq4bja closed 1 year ago

sq4bja commented 1 year ago

Hi, I`m using Nginx as Reverse proxy to Openwebrx+. I found some errors in nginx logs (404 - file not found):

GET /settings/static/gfx/svg-defs.svg HTTP/1.1" 404
GET /settings/sdr/rtl_sdr_h/profile/static/gfx/svg-defs.svg HTTP/1.1" 404
GET /favicon.ico HTTP/1.1" 404

What is wrong?

luarvique commented 1 year ago

No idea, but it probably means you should not be using Nginx as reverse proxy. Because it appears to be sticking "static/gfx/svg-defs.svg" all over the place, just not where this file really is.

Best regards, Marat Fayzullin

On Wed, Mar 29, 2023 at 4:02 PM sq4bja @.***> wrote:

Hi, I`m using Nginx as Reverse proxy to Openwebrx+. I found some errors in nginx logs (404 - file not found):

GET /settings/static/gfx/svg-defs.svg HTTP/1.1" 404 GET /settings/sdr/rtl_sdr_h/profile/static/gfx/svg-defs.svg HTTP/1.1" 404 GET /favicon.ico HTTP/1.1" 404

What is wrong?

— Reply to this email directly, view it on GitHub https://github.com/luarvique/ppa/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZEAESOY53BQYUGHFSYS53W6SIMTANCNFSM6AAAAAAWMLFAFU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sq4bja commented 1 year ago

Ok, but there are two similar lines in log: GET /settings/static/gfx/svg-defs.svg HTTP/1.1" 404 and correct one: GET /static/gfx/svg-defs.svg HTTP/1.1" 304

The problem occurs when viewing the configuration.

Thanks to reverse-proxy I had SSL https connection. Besides, Nginx seems to be a more secure solution than sharing Openwebrx to the world.

luarvique commented 1 year ago

Which page of the configuration? Also, OWRX+ now offers built-in HTTPS support, so you do not need to use Nginx for that.

On Wed, Mar 29, 2023 at 4:13 PM sq4bja @.***> wrote:

Ok, but there are two similar lines in log: GET /settings/static/gfx/svg-defs.svg HTTP/1.1" 404 and correct one: GET /static/gfx/svg-defs.svg HTTP/1.1" 304

The problem occurs when viewing the configuration.

Thanks to reverse-proxy I had SSL https connection. Besides, Nginx seems to be a more secure solution than sharing Openwebrx to the world.

— Reply to this email directly, view it on GitHub https://github.com/luarvique/ppa/issues/4#issuecomment-1489242654, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZEAEW3GC6W4PFP7CMYKBLW6SJWZANCNFSM6AAAAAAWMLFAFU . You are receiving this because you commented.Message ID: @.***>

sq4bja commented 1 year ago

Yes, I read that now OWRX supports SSL, but I already have a solution here for several receivers working on one IP address as vhosts.

The error in the logs appears after entering each subpage of the settings, e.g. /settings/general -> "GET /settings/static/gfx/svg-defs.svg HTTP/1.1" 404" /settings/sdr -> "GET /settings/static/gfx/svg-defs.svg HTTP/1.1" 404" .... It looks like there are wrong links somewhere on the page. Previously, I used OWRX-dev and had no such problems. To be clear: everything works, but there are errors in the logs, which in turn cause the fail2ban rules to work.

luarvique commented 1 year ago

Sorry, but I am not seeing this error. Thus, it must be specific to your networking setup.

Best regards, Marat Fayzullin

On Wed, Mar 29, 2023 at 4:38 PM sq4bja @.***> wrote:

Yes, I read that now OWRX supports SSL, but I already have a solution here for several receivers working on one IP address as vhosts.

The error in the logs appears after entering each subpage of the settings, e.g. /settings/general -> "GET /settings/static/gfx/svg-defs.svg HTTP/1.1" 404" /settings/sdr -> "GET /settings/static/gfx/svg-defs.svg HTTP/1.1" 404" .... It looks like there are wrong links somewhere on the page. Previously, I used OWRX-dev and had no such problems.

— Reply to this email directly, view it on GitHub https://github.com/luarvique/ppa/issues/4#issuecomment-1489276780, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZEAEQPBGXUMYEHGQFIHVDW6SMVVANCNFSM6AAAAAAWMLFAFU . You are receiving this because you commented.Message ID: @.***>