Replies: 2 comments 8 replies
-
Firstly, please edit your posting to put three backticks on a line of their own ( Secondly: state your platform (e.g. Ubuntu etc). There may be some other enabled virtual host listening on port 80, which is returning the default page. From outside, try accessing https://netbox.domain.com/badpath and look at the 404 error carefully - it may tell you which host is returning it, either the outside proxy or the Netbox proxy server. Finally: there is a known problem with Django and proxy chaining; Django can't understand
|
Beta Was this translation helpful? Give feedback.
-
Hi.
Removing those comments Apache dices not start.
…-------- Mensaje original --------
De: Brian Candler ***@***.***>
Fecha: 24/4/22 12:55 (GMT+01:00)
Para: netbox-community/netbox ***@***.***>
Cc: Pivebq ***@***.***>, Author ***@***.***>
Asunto: Re: [netbox-community/netbox] Access Netbox with external proxy (Discussion #9207)
when I try to access to netbox.domain.com I have the index.html of the Apache from the netbox machine
And as I said, that's because you removed these two essential lines of config:
ProxyPass / http://127.0.0.1:8001/
ProxyPassReverse / http://127.0.0.1:8001/
Without these, Apache will answer with local pages only, and not proxy to Netbox.
—
Reply to this email directly, view it on GitHub<#9207 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA3N5DU6TVG4VSUCW45GIBTVGUSANANCNFSM5UELVPYA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
Recently I discover Netbox and I installed it to test and is wonderfull, I want to try it but I encountered a little problem for my installation and I have a proxy wth all my SSL certificate for all my sites that are hosted in a backend web server and now I have Netbox in a third server.
The thing is that I can't access from outside to Netbox because it always want to use SSL and I receive the config pache of Apache2 of the Netbox server, the only way I have to access is from my LAN using the IP address istead from outside using my subdomain (netbox.domain.com).
My external proxy is working fine becaus it redirects the communication the the netbox server, all changes that I made in index.html default Apache2 page are shown but not the Netbox.
My netbox.conf in netbox server is:
In my external proxy server the netbox sites is configure as:
Now all is configured with insecure http because I need to work like that between proxy and Netbox machine, after it works I'll install Let's Encrypt certificate in proxy server.
I do all this because if not I can't have a certificate in my proxy for netbox and another one for same Netbox in Netbos server renewed autocamically (for certbot, I hace to redirect 80 and 443 ports only to a host that is the proxy server).
Does anyone give some help?
Thanks.
EDIT:
My system is Linux Debian 11 Bullseye X64 running on a Proxmox Virtual Machine, 2 Core CPU, 2048 MB RAM and 8GB HDD
Beta Was this translation helpful? Give feedback.
All reactions