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

Someone knows how can I change the vhost listen port in Plesk 10.3 on ubuntu server ?

I can change the apache listen port with this command line :

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e'replace into misc (param, val) values ("http_port", <custom http port>)' 

(source : http://kb.parallels.com/11232) but I don't find How can I change a vhost port.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I find how to change the vhost port :

vim /var/www/vhosts/MYDOMAIN.COM/conf/XXXXXXXXX.http.include

Replace the port 80 by this I want.

Remake the vhost conf /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<domain_name> with <domain_name> without www

share|improve this answer
    
You're wrong. This config file XXXXXXXXX.http.include will be overwritten in a short time, say psa restarted or websrvmng started. –  Ilja Mar 26 '13 at 20:03

Your Answer

 
discard

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.