NethServer Version: Latest
Fairly new user here so sorry if I’m asking a whole lot of stupid questions but it seems that my mad googling skills can’t help me always so I need to ask here…
Basically I don’t want to see the default page (the nethserver_index.html one) when I enter my domain name.
Installing a web server helped a little because going to www.domain.com points to correct webpage now. But navigating to domain.com still shows the default page. How can I change that?
I have tried making a custom template and disabling the default page but it displays an error even though it should work (and I also doubt that it would change things):
root@mail /]# expand-template /etc/e-smith/templates-custom/etc/httpd/conf.d/welcome.conf
ERROR: Could not expand //etc/e-smith/templates-custom/etc/httpd/conf.d/welcome.conf template - it is a directory
at /sbin/e-smith/expand-template line 45.
[root@mail /]# ls /etc/e-smith/templates-custom/etc/httpd/conf.d/welcome.conf
I have made a redirect on /usr/share/httpd/noindex/nethserver_index.html but that’s a quick and dirty hack.
How can I make my server point domain.com and www.domain.com in the same place?
www works and the one without doesn’t. DNS records at my DNS provider both point to the same IP and I have made an entry under DNS/Server Alias for both domain.com as well as www.domain.com.
Thanks for the help