Get Virtualizor

Standard Web Ports

Overview

This guide shows you how to enable standard web ports for your Enduser panel on the Virtualizor Master server.
Changing ports for Admin panel is not allowed.


Config Files

1. For Port 80 please create the file /usr/local/emps/etc/nginx/port-80.conf :

listen 80;

2.  For Port 443 please create the file /usr/local/emps/etc/nginx/port-443.conf :

listen 443 ssl;

Note
If you are using EMPs version 4.1 and above only then you will need to add 'ssl' as mentioned above.
You can find EMPs version using : cat /usr/local/emps/version


3. After making changes in conf file, you will need to restart service assuming no task is active on panel :

service virtualizor restart


Auto redirect to https (For enduser panel only)

To auto redirect port 80 to port 443 (i.e http to https) add the following content to the file /usr/local/emps/etc/nginx/port-80.conf

listen 80;
server_name YOUR_DOMAIN;
return 301 https://$host$request_uri;

Note
Auto redirect will only work if the port-443.conf file is present.


After making changes in conf file, you will need to restart service assuming no task is active on panel :

service virtualizor restart

    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list