• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Problem change default port 80

P

pippin

Guest
I have bought Plesk for hosting domains for friends and others.But for now i have only Plesk on a testserver and want to change the port from 80 to 1080.How can i do that.And is the apache conf file in /usr/local/psa/admin/conf/httpds.conf?
 
I'm not sure you can as Plesk uses <ip-address>:80 for every vhost in the httpd.include files it writes out for your domains and I don't know of any way to change that port number in Plesk.

And no, that httpsd.conf is Plesk's internal webserver's config. (But you can change the port Plesk listens on in that file.)
 
I know, but would you need to completely copy httpd.include to vhost.conf and change the portnumber? And thus keep updating this with every change you make? Or is there an easier way that I just didn't see?
 
Originally posted by breun
I know, but would you need to completely copy httpd.include to vhost.conf and change the portnumber? And thus keep updating this with every change you make? Or is there an easier way that I just didn't see?

Well I guess it depends if your looking for an option per domain or if you wanted it global.

The way I suggested would be per domain. I'm not sure how you'd do it (or if its even possible) on a global basis.
 
vhost.conf will not help, because it changes things _inside_ virtualhost definition:

<VirtualHost 1.1.1.1:80>
...
Include ..../vhost.conf
...
</VirtualHost>

but you need to change virtualhost definition itself:

<VirtualHost 1.1.1.1:1080>
...
</VirtualHost>

imho solution is not too easy and there are only two ways:

1) somehow with firewall: close 80 port from outside and configure port redirection 1080->80

2) somehow modify apache files directly and change 80 to 1080 there.. for example run your custom script-modifier by plesk's event manager (for domain creation/update/etc actions) or use cron to periodically run this script to check and modify configs if it is needed or something similar
 
Back
Top