Changing main domain from default to mine and removing /wordpress

NethServer Version: 7
Module: 7.8.2003

I just fell in love with Nethserver, big fan and I am trying to learn this, but it is a whole new animal for me. Please understand, this is fun and I want to learn it. I have followed a lot of Wiki stuff and build a fun little server. Right now the only thing I am missing is that when I type my URL for my webpage I get the default Nethserver 7 webpage. The next problem is when I type my URL I have to do Can someone point me in the right direction. I followed the wiki to get rid of the /wordpress and I had to rebuild the whole server. I would like to do it right this time. Any help would be apricated.

You want the reverse proxy if you want to redirect the URL you are accessing and have your clients (those looking up DNS pointed at your nethserver install.

I looked at the reverse proxy, but I don’t think this will help me. When I go to my URL is says “This is a temporary page. You can easily replace it by installing your own index.html page inside /var/www/html/ directory”. Can I do this with the wordpress install?

No, I don’t think you do. There are two distinct issues going on:

  • Configure Neth to serve Wordpress from the root of some domain–that’s done using config setprop wordpress DomainName
    • It still can’t be the same as the main domain name for the Neth server, though.
    • You’d add a DNS A or CNAME record for this name (e.g., pointing to your IP address.
    • You’d also need to add that new domain name to your TLS certificate
  • Configure Wordpress so that it knows what its new URL is, because it’s kind of dumb that way.

A much simpler way to accomplish a similar goal (i.e., have visitors to, or whatever FQDN is pointing to your Neth server, be redirected to your wordpress installation) is to just put a simple index.html file in /var/www/html to redirect them automatically–it would look like this:


<meta charset="UTF-8">
<meta http-equiv="refresh" content="1; url=">

  window.location.href = ""

<title>Page Redirection</title>

<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
If you are not redirected automatically, follow the <a href=''>link</a>.

Visitors will still see in their address bar this way, though.

After adding your example with my domain info, now on my main page I get


“You don’t have permission to access /index.html on this server"

Strange. How are permissions on that file? Is it readable by all?

You were right, I just copied what you had sent me to notepad and edit it. When I saved it, it did not have read permissions for everyone, I gave it read and execute permissions. Thanks for your help. I am going back to play with the site now.

Thanks again.

Execute isn’t needed (though I don’t think it hurts), but read definitely is. I’d also strongly discourage using Notepad, because it doesn’t understand Unix line endings and will often corrupt files. Either use Notepad++, which is a fine, free text editor for Windows, or use nano on the Neth server itself.

1 Like

Thank you for the wealth of knowledge, I did as you suggested; I used the notepad +++ and I installed nano, nano is so easy to use I really like it.