Nethgui: 404 - Not found 1352715526

using gateway reverse proxy, im trying to remove an entry in the table as i made a typo.

selecting either edit or remove only throws the error dialogue containing:

Nethgui:

404 - Not found

1352715526

how do i fix this and how do i remove the typo i made in the proxy table?

UPDATE: i find that i can add, edit and remove other entries in this table but i cant edit or delete the first and incorrect enty

Hi @rivermersey,

I can’t reproduce your error, what did you enter to get in this situation?

Under /var/lib/nethserver/db/proxypass you can find your entries and remove them.

My “cleaned” /var/lib/nethserver/db/proxypass file looks like this:

# DO NOT MODIFY THIS FILE.
# This file is automatically maintained by NethServer
# configuration software.  Manually editing this file may put your
# system in an unknown state.
#
# updated: Wed Oct  4 15:03:40 2017

Don’t exactly know if that’s the correct way, but it worked…

But I am really interested in how you came into that situation.

1 Like

@rivermersey please send us your proxypass file before modifying it.

1 Like

Hi,

as requested, this is my proxypass file:

# DO NOT MODIFY THIS FILE.
# This file is automatically maintained by NethServer
# configuration software.  Manually editing this file may put your 
# system in an unknown state.
#
# updated: Wed Oct  4 11:06:29 2017
index.html=ProxyPass|Description||HTTP|yes|HTTPS|yes|Target|https://www.therivermersy.com|ValidFrom|

my typo was www.therivermersy.com when it should have been www.therivermersey.com

you are correct! removing that entire line has removed the entry in the table that i couldnt remove using the nethserver web gui.

many thanks

…and im not entirely sure how i came to be in that situation either - sorry :blush:

oooh!

now that ive removed that line, my website is showing as a 502 proxy error:

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /index.html.

Reason: DNS lookup failure for: www.therivermersy.com

I’ve reprocduced the NethGUI error: it’s caused by the dot in the name (index.html).

4 Likes

…and i think ive fixed the 502 proxy error by deleting(temporarily renaming) /etc/httpd/conf.d/proxypass.conf then restarting httpd at the terminal.

https://therivermersey.com is alive again!

2 Likes

This command should write a fresh empty proxypass.conf:

See also:

http://docs.nethserver.org/projects/nethserver-devel/en/v7/templates.html

4 Likes

This a Nethgui limitation: a record key cannot end with .html …I guess it’s quite difficult to fix, let’s move to Cockpit :wink:

1 Like