How to setup Domain.Com To Domain.Com:Port

Operating System & Version
Centos 7
cPanel & WHM Version
102.0.18

Shine Servers

Member
Jul 13, 2013
7
0
51
cPanel Access Level
Root Administrator
Hello,

I've been trying but unfortunately unable to resolve it. I have a domain name xyz.com and i want to open that domain name as https:/xyz.com:2100 only.

So far i did added port in CSF and also added them in Pre-Config Apache but it didn't work. How do i access website only on the mentioned port?

Please advice.
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,159
2,407
363
cPanel Access Level
Root Administrator
Hey there! Do you have a service listening on port 2100? What are you expecting to happen when you visit port 2100 in the browser? If you could tell me more about the configuration you are trying to achieve I may be able to recommend something.
 

Shine Servers

Member
Jul 13, 2013
7
0
51
cPanel Access Level
Root Administrator
Hey there! Do you have a service listening on port 2100? What are you expecting to happen when you visit port 2100 in the browser? If you could tell me more about the configuration you are trying to achieve I may be able to recommend something.
So basically all i want is when a user open https://xyz.com it should open https://xyz.com:2100.

i tried to add 2100 in Apache pre config but it didn’t work. Please advise
 

Shine Servers

Member
Jul 13, 2013
7
0
51
cPanel Access Level
Root Administrator
I guess my original question still stands then - is there a service listening on port 2100 to reply with a web page once the user is directed there? What modifications did you make to Apache that didn't work?
I removed everything now, so there is no modifications done anywhere. I just need steps to follow to start from scratch to achieve what i mentioned. Also, no 2100 is not listening as off now.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,159
2,407
363
cPanel Access Level
Root Administrator
I guess I'm confused on what the ultimate goal is. Unless you have a separate service listening on that port, nothing is going to happen once the domain is redirected there. Apache only listens on 80 and 443 by default, and while you can have Apache listen on a different port, no incoming requests are going to reach that by default. That would mean that any incoming requests for domain.com would not be able to be routed to domain.com:2100 without *something* listening on port 80.