Article ID: 11232, created on Aug 9, 2013, last review on May 10, 2014

  • Applies to:
  • Plesk 10.2 for Linux/Unix

解决方案

执行以下操作更改默认的 Apache HTTP/HTTPS 端口至自定义值:

1. 修改

Listen <custom-port>

/etc/httpd/conf/httpd.conf 配置文件中。

2. 在 psa.misc table 中修改端口:
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e'replace into misc (param, val) values ("http_port", <custom http port>)'
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e'replace into misc (param, val) values ("https_port", <custom https port>)'

3. 重建 webserver 配置文件:
# /usr/local/psa/admin/bin/httpdmng --reconfigure-all

d3c493291d6d9f66837ac7495dfea9ca a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 dd0611b6086474193d9bf78e2b293040 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article