cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How to hide port number from the URL

cpilli
4-Participant

How to hide port number from the URL


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.

3 REPLIES 3
RandyJones
19-Tanzanite
(To:cpilli)


@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.

cpilli
4-Participant
(To:RandyJones)

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.

RandyJones
19-Tanzanite
(To:cpilli)


@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.

Top Tags