12345678910111213141516171819202122232425262728 |
- <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/
- RewriteCond %{REQUEST_FILENAME} !^/doc/
- RewriteRule ^(.*)$ /index.php?_url=$1 [QSA,L]
- </IfModule>
- </VirtualHost>
- </IfModule>
|