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.

To Enable Default Sites

Note

Default sites is enabled by default.

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. From NodeWorx, navigate to Server > IP Management > Default Sites

  3. Select Enabled from the Status dropdown

    default sites enable option
  4. Click Save

To Assign a New Default URL For an IP Address

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. From NodeWorx, navigate to Server > IP Management > Default Sites

  3. 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

    ../../../_images/default-sites-configuration-screen.png
  4. 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/

    default sites form
  5. Click Save

To View All Domains on the Server Assigned to an IP Address

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. From NodeWorx, navigate to Server > IP Management > Default Sites

  3. 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.

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. From NodeWorx, navigate to Server > IP Management > Default Sites

  3. Select Disabled from the Status dropdown

    default sites enable option
  4. Click Save