Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I googled for the past hew hours just to found few sources which didn't help so far. My task is to change apache port to anything but 80.

So far I have changed ports.conf which is included into apache2.conf

NameVirtualHost *:81
Listen 81

Also as told by comments in that file I have changed VirtualHost statement in /etc/apache2/sites-enabled/000-default. It is a shortcut there so I just renamed that shortcut and added copy with with changed ports to :81

these changes alone makes apache listen on specified ports, I see It works! page.

But that is where my luck runs out, changing plesk port turns out to be not that easy.

I've followed this link which explains how to change port for Parallels Plesk Panel 11.x for Linux.


I've tried to put on :8080 but there is a tomcat server running so I have deleted the custom folder which was created in tutorial and redid steps to change port to :1234, of course I have changed apache2.conf and VirtualHosts files accordingly and I've downloaded random file from custom folder to check whether or not port has changed. Port changes are present but when I type domain.com:1234 after a long waiting I'm redirected to domain.com without any port Error 101 message.

I'm wondering does plesk takes templates from custom folder that was created?

In any way I'm stuck and any help would be very much appreciated.


After digging more I found this page


here are tutorial how to configure apache port via mysql. So I have reverted all changes back to starting point and did follow tutorial part for apache port change and yet I have bumped into same outcome. Once I type domain.com:1234 I'm instantly redirected to domain.com.

Does anyone has any idea what I'm missing here or what could be the possible cause? Because as I understand it suppose to be quite a simple thing to do.

share|improve this question

1 Answer 1

Plesk uses it's own configuration files for virtual hosts. Default ports for virtual hosts created by Plesk are port 80 or port 443 (default). You can found the configuration files usually in /var/www/vhosts/mydomain.tld/conf/*.conf.

Your approach, to edit the global apache configuation is not that wrong, but it does not affect to the virtual hosts. However, you can edit the default host templates located in:


Just run the httpdmng utility. This will recreate all vhost configuration files based on the template /usr/local/psa/admin/bin/httpdmng --reconfigure-all (command line).

Please note, that any manual changes could be overwritten by updates provided by Parallels.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.