• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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