You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728
  1. <IfModule mod_ssl.c>
  2. <VirtualHost *:80>
  3. ServerName api.vdm.rthoni.com
  4. Redirect permanent / https://api.vdm.rthoni.com/
  5. </VirtualHost>
  6. <VirtualHost *:443>
  7. ServerName api.vdm.rthoni.com
  8. DocumentRoot /var/api.vdm
  9. ServerAlias api.vdm.rthoni.com
  10. SSLEngine on
  11. SSLCertificateFile /etc/ssl/private/api.vdm.crt
  12. SSLCertificateKeyFile /etc/ssl/private/api.vdm.key
  13. SSLCertificateChainFile /etc/ssl/certs/sub.class1.server.ca.pem
  14. ProxyPreserveHost off
  15. ProxyRequests off
  16. ProxyPass /doc/ http://vdm.3ie.fr/doc/
  17. ProxyPassReverse /doc/ http://vdm.3ie.fr/doc/
  18. <IfModule mod_rewrite.c>
  19. RewriteEngine on
  20. RewriteCond %{REQUEST_FILENAME} !-f
  21. RewriteCond %{REQUEST_FILENAME} !^/medias/
  22. RewriteCond %{REQUEST_FILENAME} !^/doc/
  23. RewriteRule ^(.*)$ /index.php?_url=$1 [QSA,L]
  24. </IfModule>
  25. </VirtualHost>
  26. </IfModule>