Proxy not allowed (500) (Proxmox)

Hi,


host pve
domain proxmox.com

/etc/hosts

should look like this

127.0.0.1 localhost.localdomain localhost
192.168.18.30 pve.proxmox.com pve pvelocalhost

and /etc/hostname like this

pve
 
Do I have to configure it like this?

hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
5.196.83.84 pve.proxmox.com VPS-EU-1 pvelocalhost
# The following lines are desirable for IPv6 capable hosts
#(added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
feo0::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


hostname:
VPS-EU-1
 
Change

pve.proxmox.com
in
vps-eu-1.<yourdomain>

Then it will work as long the IP is available.
 
Don't work:

Config:
127.0.0.1 localhost.localdomain localhost
5.196.83.84 vps-eu-1.thebeasthosting.com VPS-EU-1 pvelocalhost

a230c506847c6943d63e66333ef9e455.png

https://gyazo.com/a230c506847c6943d63e66333ef9e455
 
This old thread come first when googling which I have same issue :)
The solution are:

1. Same as Proxmox Staff says: rename hostname on both /etc/hosts and /etc/hostname
2. Still not work even I have done pverproxy restart and also pvestatd restart
3. Just boot the server using shutdown -r now and everything work fine now

HTH