• How to change Apache ports from default 80/433 to custom values in Plesk

    APPLIES TO:

    • Parallels Plesk Panel 10.2 for Linux/Unix

    Resolution

    Perform the following actions to change the default Apache HTTP/HTTPS ports to custom values:

    1. Modify

    Listen <custom-port>

    in the /etc/httpd/conf/httpd.conf configuration file.

    2. Modify ports in the 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. Rebuild webserver configuration:

    # /usr/local/psa/admin/bin/httpdmng --reconfigure-all

    Categories: Plesk

    Comments are currently closed.