Meu servidor (Apache 2x) está funcionando corretamente com certificado SSL porém preciso impedir que apenas uma única URL aceite conexão normal (somente HTTP).
A estrutura atual está assim (está bagunçado, devido a testes já realizados)
<VirtualHost *:80>
ServerName domain.com
ServerAlias www.domain.com
#Redirect permanent / https://domain.com/
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} on
#RewriteCond %{SERVER_NAME} =domain.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^/complemento/url [NC]
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
Redirect permanent / https://domain.com/
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin [email protected]
ServerName domain.com
ServerAlias www.domain.com
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /home/domain/domain.com.crt
SSLCertificateKeyFile /etc/apache2/ssl/domain.key
SSLCertificateChainFile /home/domain-bundle.crt
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
<Directory /var/www/html>
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
</IfModule>
Desta forma não funciona. Como proceder?