Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - dv8

#1

I have a subdomain (ex. sub.domain.io) configured and working fine with Nginx over SSL.  I would like to configure the root domain (ex. domain.io) to return a 404 instead of forwarding to the same upstream server.  I know the configuration to do this in the /usr/local/etc/nginx/nginx.conf file is simple:

server {
    listen 443;
    server_name domain.io;
    return 404;
}

When I add this server to the conf and restart, the configuration is removed.  I assume Nginx is reapplying the GUI config.  How do I achieve the same simple server setup in the GUI?  I tried a new HTTP Server in the GUI with servername domain.io but it did not seem to work.

Thanks for your help!