Applicable to:
- Plesk for Linux
Question
How to add domain directives (settings) Apache or Nginx directives to web server configuration file on Plesk for Linux?
Answer
To add domain specific setting for Apache and Nginx web servers:
Go to Home > Subscriptions > example.com > Websites & Domains > Apache & nginx Settings
Add required directives for Apache and nginx in Additional Apache directives/Additional nginx directives fields as in the example on the screenshot:
After pressing OK button explicit configuration files will be created automatically in
/var/www/vhosts/system/example.com/conf
directory and related includes will be added to domain's httpd.conf file.
Additional information for advanced administrators can be found in Plesk Advanced Administrator Guide.
Comments
4 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.
Please sign in to leave a comment.