<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>
<div dir="ltr">
<div dir="ltr">Thanks for the reply! Yes, as I included in the previous message:</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><span style="text-decoration: none; font-size: 14.666667px; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">root@spce:/etc/nginx/sites-enabled# ls</span><br style="text-decoration: none; font-size: 14.666667px; color: rgb(0, 0, 0);">
<span style="text-decoration: none; font-size: 14.666667px; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">ngcp-panel_admin_api  ngcp-panel_csc  ngcp-panel_system_api  nginx-status</span><br>
</div>
<div dir="ltr"><span style="text-decoration: none; font-size: 14.666667px; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div dir="ltr"><span style="text-decoration: none; font-size: 14.666667px; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">There is no file or directory called nginx in /etc/nginx/sites-enabled/. What you see there is
 what is in there. Inside  <span style="text-decoration: none; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">/etc/nginx/sites-enabled are:</span></span></div>
<div dir="ltr"><span style="text-decoration: none; font-size: 14.666667px; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="text-decoration: none; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></span></div>
<div dir="ltr"><span style="text-decoration: none; font-size: 14.666667px; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="text-decoration: none; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"> <span style="text-decoration: none; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">gcp-panel_admin_api 
 ngcp-panel_csc  ngcp-panel_system_api  nginx-status</span></span></span></div>
<div dir="ltr"><span style="text-decoration: none; font-size: 14.666667px; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="text-decoration: none; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="text-decoration: none; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></span></span></div>
<div dir="ltr"><span style="text-decoration: none; font-size: 14.666667px; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="text-decoration: none; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="text-decoration: none; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">And
 the nginx-status file in there contains what I posted earlier.</span></span></span></div>
<div dir="ltr"><span style="text-decoration: none; font-size: 14.666667px; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="text-decoration: none; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="text-decoration: none; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></span></span></div>
<div dir="ltr"><span style="text-decoration: none; font-size: 14.666667px; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="text-decoration: none; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="text-decoration: none; display: inline !important; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">I
 also want to add, I tried a clean install on a VirtualBox for testing, and I was able to get a full clean install with no nginx problems. The difference is that my physical server has 2 NICs and after ‘ngcp-initial-config’ you cannot access web or anything,
 and I had to do ngcp-network to move the listening services over to neth0, but the virtualbox machine with only one eth0 NIC did not need this step, and already had the listening port's at eth0 and working out of the box. So my install seems to get messed
 up after ngcp-network for being a physical server, and not a VM with 1 NIC with default eth0 name.</span></span></span></div>
</div>
</div>
<div id="ms-outlook-mobile-signature">
<div><br>
</div>
Get <a href="https://aka.ms/o0ukef">Outlook for iOS</a></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Michael Prokop via Spce-user <spce-user@lists.sipwise.com><br>
<b>Sent:</b> Monday, January 27, 2025 4:05:55 AM<br>
<b>To:</b> spce-user@lists.sipwise.com <spce-user@lists.sipwise.com><br>
<b>Subject:</b> Re: [Spce-user] [EXTERNAL] Re: nginx and prometheus-nginx-exporter fail to load after reboot</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi,<br>
<br>
* Cesar Mora [Fri Jan 24, 2025 at 03:16:22PM -0400]:<br>
<br>
> I haven’t modified any of these files. All I can think of is that something gets messed up in there when I perform the initial "ngcp-network” to define neth0 as the main interface (my server has 2 NICs) with:<br>
<br>
[...]<br>
<br>
> Anyways… The files under /etc/nginx/sites-enabled/ look as:<br>
> <br>
> root@spce:/etc/nginx/sites-enabled# ls<br>
> ngcp-panel_admin_api  ngcp-panel_csc  ngcp-panel_system_api  nginx-status<br>
> <br>
> And inside nginx-status is:<br>
> <br>
> server {<br>
>        listen localhost:8081;<br>
>        #server_name  localhost;<br>
> <br>
>        location /nginx_status {<br>
>                stub_status on;<br>
>                access_log off;<br>
>                allow 127.0.0.1;<br>
>                allow ::1;<br>
>                deny all;<br>
>        }<br>
> }<br>
<br>
This looks ok, but as already written:<br>
<br>
> > On Jan 22, 2025, at 11:27 AM, Michael Prokop via Spce-user <spce-user@lists.sipwise.com> wrote:<br>
<br>
> > What do you have inside /etc/nginx/sites-enabled/nginx and what are<br>
> > the files looking like, where port 8081 is referred to? (One of them<br>
> > should be /etc/nginx/sites-available/nginx-status)<br>
<br>
You seem to have another file which uses port 8081.<br>
<br>
regards<br>
-mika-<br>
<br>
-- <br>
Spce-user mailing list<br>
Spce-user@lists.sipwise.com<br>
<a href="http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com">http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com</a><br>
</div>
</span></font></div>
</body>
</html>