How to: Manage Default Sites¶
From the Default Sites page in NodeWorx, server administrators can manage the URL that a user will directed to if they either:
Visit a domain that points to an IP address on the server, but is not listed on the server, itself
Visit an IP address assigned to the server from the browser
The URL of the new default site should be resolvable via DNS.
Alternately, the default site can be /var/www/html
. By default, /var/www/html
is an InterWorx splash page, however this
file can be replaced by a custom index page, if desired.
While Default Sites can be managed from the GUI, the configuration file is located at
/etc/httpd/conf.d/vhost_000_defaults.conf
. When Default Sites is disabled, the file is renamed with .disabled
at the end of the filename. Since the file no longer ends with .conf, it will not be loaded by Apache.
Contents
To Enable Default Sites¶
Note
Default sites is enabled by default.
Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)
From NodeWorx, navigate to Server > IP Management > Default Sites
Select Enabled from the Status dropdown
Click Save
To Assign a New Default URL For an IP Address¶
Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)
From NodeWorx, navigate to Server > IP Management > Default Sites
Click the Pencil next to the desired IP address. This opens the Default Sites form
Alternately, select the checkbox next to the IP address, and click Go next to the With Selected dropdown
Update the Site field with the URL of the domain that the user will be redirected to if they navigate directly to the IP address in their browser
If the field is left blank, navigating to the IP address in the browser will display
/var/www/html/
Click Save
To View All Domains on the Server Assigned to an IP Address¶
Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)
From NodeWorx, navigate to Server > IP Management > Default Sites
Click the Magnifying Glass
To Disable Default Sites¶
Warning
Disabling default sites may interfere with creating or renewing SSL certificates for system services generated with Let’s Encrypt.
Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)
From NodeWorx, navigate to Server > IP Management > Default Sites
Select Disabled from the Status dropdown
Click Save