Webserver Configuration
A simple guide to configure the webserver configuration to allow SSL traffic and ports.
Nginx Webserver Configuration
Nginx Without SSL
Create a configuration file for the app in /etc/nginx/conf.d/
. Replace <domain.com>
in this example with your app’s domain or public IP address and make sure you use specify the port you used in your settings:
Firstly, we need to go in the correct directory.
Next, we need to make the configuration file.
Now we can edit the file using nano.
Paste the text bellow in the file we've just made and change <domain.com> to your domain or IP and change <YourPort> to the port you specified in settings.
Nginx With SSL
Enabling the Nginx Configuration
Delete or disable the default config.
Test your configuration.
If there aren't any errors you can restart the configuration.
Last updated
Was this helpful?