Nethgui: 404 - Not found 1352715526

server-manager
proxy
v7

(river mersey) #1

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?


(river mersey) #2

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


(Markus Neuberger) #3

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.


(Filippo Carletti) #4

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


(river mersey) #5

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|

(river mersey) #6

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


(river mersey) #7

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


(river mersey) #8

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


(river mersey) #9

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


(Filippo Carletti) #10

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


(river mersey) #11

…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!


(Markus Neuberger) #12

This command should write a fresh empty proxypass.conf:

See also:

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


(Davide Principi) #13

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: