Skip to main content
5-Regular Member
April 25, 2018
Question

How to hide port number from the URL

  • April 25, 2018
  • 1 reply
  • 3138 views


We are planning to configure URL https://<alias.com>/Windchill . We are NOT planning to use default port 443 as it is not available for users other than root in linux. Instead we would like to use port 4430 but need to hide port number in URL and still would be able to use URL https://<alias.com>/Windchill . How do I achieve this?

Thanks in Adavnce.

1 reply

20-Turquoise
April 25, 2018

@cpilli wrote:


We are planning to configure URL https://<alias.com>/Windchill . We are NOT planning to use default port 443 as it is not available for users other than root in linux. Instead we would like to use port 4430 but need to hide port number in URL and still would be able to use URL https://<alias.com>/Windchill . How do I achieve this?

 


This really isn't a Windchill question but a "how do I configure Apache" question. If you want to run apache as a non root user then a common way to do this is start apache as root and then switch to the non root user with the User directive:

https://httpd.apache.org/docs/2.4/mod/mod_unixd.html#user

This is what we do here. Works good and is trivial to configure.

cpilli5-Regular MemberAuthor
5-Regular Member
April 25, 2018

Thanks Randy.

Sorry I should have tagged as 'apache configuration'.

One thing is I will be using a nonroot user and I will not have access to root user to start the apache initially.

Is there any way to achieve my requirement ? One way may be getting sudo access to root but I would like to avoid that as well.

20-Turquoise
April 25, 2018

@cpilli wrote:

Thanks Randy.

Sorry I should have tagged as 'apache configuration'.

One thing is I will be using a nonroot user and I will not have access to root user to start the apache initially.

Is there any way to achieve my requirement ? One way may be getting sudo access to root but I would like to avoid that as well.


I would venture to say that ANY changes you want to make, to alias a non standard port or to allow a non root user to use 443, will require root permissions or some other piece of middleman hardware/software in place. Getting sudo access to fire up apache as root would be much simpler.

 

Google for non root apache users and ports 80 and 443.