Change Nethserver Start Page

Hi @fadzli

You have 2 index files => index.html and .index.html.swp.

First, you have to delete both of them:

rm -rf /var/www/html/index.html /var/www/html/.index.html.swp

Verify that there is no more index.html or .index.html.swp

ls -als /var/www/html/

Only after the suppression of the 2 files, download Andy’s file:

cd /var/www/html

wget --no-check-certificate https://awr7-nethserver.r7.anwi.ch/

Make sure that you have only 1 index.html file and no .index.html.swp:

ls -als /var/www/html/

To make sure that there is no cached files with the httpd deamon:

systemctl restart httpd

Using lynx, you should see the page as above:

lynx http://localhost

q to quit.

On a station

Make sure that there is no cached files:
On a command window (Start button > Run > cmd)

ipconfig /flushdns

and clear the cache from the browser:

  • Firefox: Menu > History > Clear history (check all boxes > ok)

Go to http://server-ip
You should see Andy’s page.

Go to https://server-ip:9090
You should see the Cockpit login page

Other browsers:

Make sure that there is no cached files:

ipconfig /flushdns

  • Clear the cache of that browser.

Go to http://server-ip
You should see Andy’s page.

Go to https://server-ip:9090
You should see the Cockpit login page

Other stations:

Same as above.

If you still do not see Andy’s page, list the content of the html directory:

ls -als /var/www/html

Good luck,

Michel-André

2 Likes

Hi @michelandre,
Hope you have a good day…

After follow your step and add
’ rm -rf /var/www/html/index.html /var/www/html/.index.html.swp index.html.1 index.html.’

I got those page as below

but picture of No Entry sign No Entry is not there and the tittle is Error 404 Not Found (IP number) http tittle .

https:… seem looks good same as lynx http://localhost

Can I now start editing html files and should all files on the web be in html format, I mean can’t PHP etc?

By the way thank you very much for your help

Regards
@fadzli

@fadzli

Hi

Here’s the original No-Entry (You could also do a right mouse click on the page , save images as…

no-entry_100-100

Save this (Also right mouse click) an put this in the same folder… Check that the filename stays the same…

My 2 cents
Andy

1 Like

You can start to edit it, you get the right page now. PHP would also work.

Please come back with an info, whether it works.

Hi all,

I think that I gave the wrong URL for Andy’s file:

It should be: https://intranet.r7.anwi.ch/ and not: https://awr7-nethserver.r7.anwi.ch/

So the wget should be:

wget https://intranet.r7.anwi.ch/

https://awr7-nethserver.r7.anwi.ch/.

https://intranet.r7.anwi.ch/.

The http://awr7-nethserver.r7.anwi.ch/ was used in a VM when I was testing https://intranet.r7.anwi.ch/ and it was complaining about the certificate. That is why I add the option: --no-check-certificate.

The https://intranet.r7.anwi.ch/ is the link I tried on my main server in /temp folder and there was no complaining about the certificate.

Also, this morning I was re-testing with Firefox, the link displayed the page with the “Errror 404 Not Found” and after a few seconds, the Firefox configured home page replaced the “Errror 404 Not Found”. I thought I touched the mouse by mistake, but not. I tried many times and always, the “Errror 404 Not Found” was replaced by the home page. I never saw that before.

Now I am worried that my station has a problem…

Another day, another challenge,

Michel-André

EDIT: The original link Andy gave was: https://awr7-nethserver.r7.anwi.ch/. So the page should give the first image above.
@Andy_Wismer Your certificate is dated Sat, 17 Apr 2021 01:42:25 GMT. Why is the certificate not yet renewed after 30/60 days of issuance?

@michelandre

Salut Michael-André

Most likely you have some cached version of the site / ssl certificate.
I just checked:

These domains have valid SSL:

X509v3 Subject Alternative Name:
DNS:ad.r7.anwi.ch, DNS:awr7-nethserver.r7.anwi.ch, DNS:awr7-rpi-hassio.r7.anwi.ch, DNS:dms.r7.anwi.ch, DNS:dolibarr.r7.anwi.ch, DNS:hassio.r7.anwi.ch, DNS:intranet.anwi.ch, DNS:intranet.r7.anwi.ch, DNS:mesh.r7.anwi.ch, DNS:nethserver.r7.anwi.ch, DNS:pi-hole.r7.anwi.ch

These 2 Certs I specifically checked and screenshotted:

It’s correct that the server name (FQDN) and IP will provide this page:

Using https://intranet.r7.anwi.ch/ will supply this page:

Using any of the other links will supply the correct page, eg mesh.r7.anwi.ch…
The only one not working at the moment is the Synology…

I am somewhat at a loss why you got an “old” page / ssl, as my home server is VERY current as what SSL or Updates…
Edit: Actually checking dates and times, I see that you checked on April 17, as the certificate was renewed on the 16th (As shown above) it could be you checked exactly when the server was renewing the SSL? Time differences not taken into exact consideration, but it could be possible?..
:slight_smile:

My 2 cents
Andy

Salut @Andy_Wismer,

As I wrote, I was testing a VM.
I was testing CNAME, TXT, DKIM etc, with Sparkpost mail relay for Dsicourse.
So maybe it was my certificate that was the culprit.

The disappearing of the web page, that I cannot explain as I never saw that before.

Michel-André