kb: bug
kb: fixed
Plesk Onyx for Linux
ABT: Group B
Applicable to:
- Plesk for Linux
Question
How to get and set Additional Apache/Nginx directives via CLI?
Answer
Get directives
- Connect to the server via SSH
- Run the following command:
# plesk bin domain --show-web-server-settings example.com
Set directives
-
Connect to the server via SSH
- Using a preferred editor(for example, vi), insert or remove the directives in the following files:
Apache2(HTTP):/var/www/vhosts/system/example.com/conf/vhost.conf
Apache2(HTTPS):/var/www/vhosts/system/example.com/conf/vhost_ssl.conf
Nginx:/var/www/vhosts/system/example.com/conf/vhost_nginx.conf
Comments
4 comments
"Set" is not via CLI...
Hello, Damien Ransome
Thank you, the article was updated.
In "Set Directives", vhost.conf isn't true for NginX configuration. vhost_nginx.conf is the good answer
-- Nginx:
/var/www/vhosts/system/example.com/conf/vhost.conf
++ Nginx: /var/www/vhosts/system/example.com/conf/vhost_nginx.conf
Hello, Support Dutiko
Thank you, the article is updated.
Please sign in to leave a comment.