<div dir="ltr"><div>The issue is that if I want to host the domain name used on the same server, setting it up turns into a DNS Baron Munchausen bootstrapping problem, esp. since you're not supposed to use the domain name as a virtual site on the same server, as I understand it.</div><div><br></div><div>Torrance<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 8, 2024 at 7:24 PM Michael Stauber via Blueonyx <<a href="mailto:blueonyx@mail.blueonyx.it">blueonyx@mail.blueonyx.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Torrance,<br>
<br>
> I install 5211 from scratch and put in something for example localhost <br>
> for the name and localdomain for the domain name. Later when I use my <br>
> web browser to log in to the system by IP address, when I enter the <br>
> credentials the page tries to redirect to <br>
> <a href="https://localhost.localdomain:81/gui" rel="noreferrer" target="_blank">https://localhost.localdomain:81/gui</a> <br>
> <<a href="https://localhost.localdomain:81/gui" rel="noreferrer" target="_blank">https://localhost.localdomain:81/gui</a>> . I can then manually erase that <br>
> and put the IP address back in or I can edit my hosts file so this <br>
> happens in a sane way.<br>
> <br>
> Is this normal operation or am I missing something?<br>
<br>
<br>
The PHP framework used by the GUI (CodeIgniter) needs to know the proper <br>
host and domain name of the server it runs on and uses that for internal <br>
addressing and redirects. That's why the BlueOnyx setup script asks for <br>
it and why you shouldn't put "localhost.localdomain" there.<br>
<br>
Otherwise any attempts to connect to the GUI will redirect to <br>
<a href="https://localhost.localdomain:81/" rel="noreferrer" target="_blank">https://localhost.localdomain:81/</a><br>
<br>
You can fix that in several ways. As "root" and from the shell either <br>
run the script to configure the network settings again:<br>
<br>
/root/network_settings.sh<br>
<br>
Or you can take a shortcut and just set the server name this way:<br>
<br>
/usr/sausalito/sbin/<a href="http://set_servername.pl" rel="noreferrer" target="_blank">set_servername.pl</a> configure [FQDN]<br>
<br>
Example:<br>
<br>
/usr/sausalito/sbin/<a href="http://set_servername.pl" rel="noreferrer" target="_blank">set_servername.pl</a> configure <a href="http://host.yourcompany.com" rel="noreferrer" target="_blank">host.yourcompany.com</a><br>
<br>
Both ways will update the server name in CODB (the GUI's database <br>
backend) as well as in all relevant config files.<br>
<br>
Afterwards you should be able to access the GUI just fine, provided your <br>
browser cache doesn't play tricks. If it still redirects you to <br>
localhost, close the browser and open it again. That should do the trick.<br>
<br>
-- <br>
With best regards<br>
<br>
Michael Stauber<br>
_______________________________________________<br>
Blueonyx mailing list<br>
<a href="mailto:Blueonyx@mail.blueonyx.it" target="_blank">Blueonyx@mail.blueonyx.it</a><br>
<a href="http://mail.blueonyx.it/mailman/listinfo/blueonyx" rel="noreferrer" target="_blank">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a><br>
</blockquote></div>