Cobra Forum

Plesk Panel => Webserver => Topic started by: mahesh on Dec 16, 2024, 07:47 AM

Title: How to change nginx default ports serverwide on Plesk server
Post by: mahesh on Dec 16, 2024, 07:47 AM
Question
Answer
1.Connect to the server via SSH

2.Create a backup of the Plesk database by executing the following command (as a precautionary measure):

#plesk db dump > /root/psa.bkp
3.Change the port values for nginx in the Plesk database to the new ones by using the following command examples:

Note: You may replace 8080 and 44355 from the examples below to any other available ports according to your own needs

#plesk db "update ServiceNodeConfiguration set value='8080' where name='frontendPort' and section='webProxy';"
#plesk db "update ServiceNodeConfiguration set value='44355' where name='sslFrontendPort' and section='webProxy';"
4.Run the following command in order to apply the changes to all web server configuration files:

#plesk repair web