Plesk for Linux
kb: how-to
ABT: Group B
Applicable to:
- Plesk for Linux
Question
How to add custom Apache/nginx configuration for a domain in Plesk?
Answer
To add domain-specific settings for Apache and Nginx web servers:
-
Go to Subscriptions > example.com > Websites & Domains > 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
-
Note: After adding configuration and clicking the OK or Apply, 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
6 comments
"and/or"-creating a file is strictly related to good old Linux. This OS is a mess. It is just a default situation that I wont find the files, which are covered in all the Linux-tuts.
However, thanks for the write-up.
2 Martin
The article has been updated with actual information.
It is possible to increase
LimitRequestLine and
LimitRequestFieldSize
with these settings?@Marco Marsala
Hello!
Yes, 'LimitRequestLine' and 'LimitRequestFieldSize' may be adjusted for a domain using this article.
Values of these directives may be found in Apache documentation.
@Ojomo
Go to the Domain > Apache & nginx Settings and paste the directive into Additional nginx directives.
Please sign in to leave a comment.