Call Local Web with Ip: Port

I MADE a new .tpl template by copying the default file and editing the top like this and have added the port in IPtables but it still doesn’t work. please help

server {
listen %ip%:1020;
listen %ip%:1020;
listen 0.0.0.0:1020;
server_name %domain_idn% %alias_idn%;

and

<VirtualHost %ip%:1020>

ServerName %domain_idn%
%alias_string%
ServerAdmin %email%
DocumentRoot %docroot%

I want the web that I created to be able to be accessed in a browser with the local server IP and custom port

such as

http://192.168.100.28:1020

Please help ME

Because I only use a local server without a public IP and withot domain