How to make Plesk accessible on the hostname without entering port

Created:

2016-11-16 13:13:44 UTC

Modified:

2017-04-24 11:02:58 UTC

3

Was this article helpful?


Have more questions?

Submit a request

How to make Plesk accessible on the hostname without entering port

Applicable to:

  • Plesk for Linux

1.    Go to Plesk and create a subscription with required domain name. Let it be example.com
2.    Go to Websites & Domains > Hosting Settings and turn off PHP support & FastCGI support .
3.    Go to Apache & nginx settings screen and turn off 'Proxy mode' checkbox and click Apply .
4.    Scroll down till 'Additional nginx directives' and add the following lines:

     location / {
proxy_pass http://127.0.0.1:8880;
}

5. Click Ok button to save changes (it’s important to do step 3 & 4 separately)
6. Go to Extensions > Plesk Firewall module and enable the firewall.
7. Click Modify Plesk Firewall Rules and select Plesk administrative interface.
8. Select Allow from selected sources, deny from others and add 127.0.0.1 IP address.
9. Apply changes to firewall.

Have more questions? Submit a request

4 Comments

  • 0
    Avatar
    valery frisch

    hi,

    I try add the additional nginx directive but it's not working, this is the error message : 

    Configuration Nginx non valide : nginx: [emerg] duplicate location "/" in /data/www/system/console.valactive.com/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed

     

    What can i do to resolve this error?

    thanx

  • 0
    Avatar
    Lev Iurev

    @Valery check additional directives for the domain console.valactive.com, according to the error the issue is there

  • 0
    Avatar
    Grímur Daníelsson

    I'm using Plesk Onyx v17.5.3_build1705170317.16 os_CentOS 7 and the steps are a little different, the firewall is a Plesk component not an extension, so make sure the component is enabled.

    But my main problem is that I'm unable to login after following these steps. The login page is displayed correctly but when I login i get redirected to the login page like I haven't logged in at all.

    EDIT: It was a browser problem for me. Works when I try it in incognito

    Edited by Grímur Daníelsson
  • 0
    Avatar
    Marat

    just in case someone is having same error like me or valery frisch:
    "Configuration Nginx non valide : nginx: [emerg] duplicate location "/" in /data/www/system/this.domain.com/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed"

    while "this.domain.com" is the domain where you want to enable proxy for plesk panel, you have to disable prosy and apply settings before adding "additional nginx directives" and then save configuration with additional directives again.

Please sign in to leave a comment.