• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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