Adjusting Apache Settings for Virtual Hosts

You can customize Apache configuration for a particular website in the Customer Panel on the Websites & Domains > <domain_name> > Apache & nginx Settings page.

Adjusting Common Apache Settings

The section Common Apache settings contains the settings that website owners typically want to adjust. For example, to add custom index files or restrict access to the site by IP address. For each parameter, you can either type a custom value, or use the default Apache configuration (by selecting the Default value).

Note: As opposed to other web server settings, the Deny access to the site parameter does not override but supplements the list of IP addresses provided in the default configuration. In case of a conflict (for example, when you allow the address that is denied in the default configuration), your values will be used.

Adjusting Additional Apache Directives

To add Apache directives for a website that are not available in the Common Apache settings, use the Additional directives for HTTP and Additional directives for HTTPS fields. When editing the fields, use the syntax as in httpd.conf. For example, if you want to set a custom error page, add the line:

ErrorDocument401/my_error_page.html

Important: Your customers cannot view and edit these fields.

  • 0 أعضاء وجدوا هذه المقالة مفيدة
هل كانت المقالة مفيدة ؟

Related Articles

Tracing Failed Requests

The failed request tracing feature assists users in troubleshooting issues with their websites by...

Adding Custom PHP Versions (Linux)

On Linux systems, you can install any PHP version you need and then make it available in Plesk by...

Installing nginx

To return to the configuration with a single Apache web server, stop the Reverse Proxy Server...

Adjusting nginx Settings for Virtual Hosts

By default, the Apache web server is working in conjunction with nginx. The benefits are that web...

Virtual Host Structure (Windows)

The table below shows the list of directories that Plesk creates for each virtual host. Note that...