ServerName api.vdm.rthoni.com Redirect permanent / https://api.vdm.rthoni.com/ ServerName api.vdm.rthoni.com DocumentRoot /var/api.vdm ServerAlias api.vdm.rthoni.com SSLEngine on SSLCertificateFile /etc/ssl/private/api.vdm.crt SSLCertificateKeyFile /etc/ssl/private/api.vdm.key SSLCertificateChainFile /etc/ssl/certs/sub.class1.server.ca.pem ProxyPreserveHost off ProxyRequests off ProxyPass /doc/ http://vdm.3ie.fr/doc/ ProxyPassReverse /doc/ http://vdm.3ie.fr/doc/ RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !^/medias/ ############### #ONLY FOR TESTS! SHOULD BE DELETED RewriteCond %{REQUEST_FILENAME} !^/misc/check.php ############### RewriteCond %{REQUEST_FILENAME} !^/doc/ RewriteRule ^(.*)$ /index.php?_url=$1 [QSA,L]