kb: how-to
Plesk for Linux
ABT: Group B
Applicable to:
- Plesk for Linux
Question
How to add custom Apache/nginx configuration for a domain in Plesk?
Answer
-
Go to Domains > example.com > Hosting & DNS > Apache & nginx Settings.
-
Add required directives:
-
for Apache configuration - use Additional directives for HTTP / Additional directives for HTTPS fields
-
for nginx configuration - use Additional nginx directives field
-
-
Apply the changes.
Note: After adding configuration, Apache and nginx services will be automatically reloaded by Plesk and configuration will take effect. Configuration will be stored in domain's configuration files located in
/var/www/vhosts/system/example.com/conf
:
- Apache - httpd.conf
- nginx - vhost_nginx.conf
Comments
0 comments
Please sign in to leave a comment.