1234567891011121314151617181920212223242526272829303132 |
- <IfModule mod_ssl.c>
- <VirtualHost *:80>
- ServerName api.vdm.rthoni.com
- Redirect permanent / https://api.vdm.rthoni.com/
- </VirtualHost>
- <VirtualHost *:443>
- 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/
- <IfModule mod_rewrite.c>
- 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]
- </IfModule>
- </VirtualHost>
- </IfModule>
|