• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Cannot enable mod_rewrite

LaszloI

New Pleskian
Hello!

Cannot enable mod_rewrite, created everything I had read on Google.

I've created a custom config file in /var/www/vhosts/<domain>/conf/vhost.conf
Reconfigure-vhost was done, apache service restarted.

File vhost.conf contents:

<Directory "/var/www/vhosts/vital-force.eu/httpdocs">

Options +ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

</Directory>

In httpdocs .htaccess file contents:

Options +FollowSymLinks +SymLinksIfOwnerMatch

# php_flag report_errors On

RewriteEngine On

AddDefaultCharset ISO-8859-2
AddCharset ISO-8859-2 .php

# RewriteBase /

RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes$
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php

RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})

RewriteRule ^(.*)$ index.php [F,L]

In the browser: white page, response content-length is 0, in error log:

[Tue Oct 19 06:52:44 2010] [error] [client 87.229.83.2] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/vhosts/vital-force.eu/httpdocs/index.pl

Why cannot override the directives or what is the problem? Almost every site I made uses rewrite, so it is a big problem for me.

Thanks!
 
Back
Top