|
@@ -0,0 +1,28 @@
|
|
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
|
+
|
|
11
|
+ SSLEngine on
|
|
12
|
+ SSLCertificateFile /etc/ssl/private/api.vdm.crt
|
|
13
|
+ SSLCertificateKeyFile /etc/ssl/private/api.vdm.key
|
|
14
|
+ SSLCertificateChainFile /etc/ssl/certs/sub.class1.server.ca.pem
|
|
15
|
+
|
|
16
|
+ ProxyPreserveHost off
|
|
17
|
+ ProxyRequests off
|
|
18
|
+ ProxyPass /doc/ http://vdm.3ie.fr/doc/
|
|
19
|
+ ProxyPassReverse /doc/ http://vdm.3ie.fr/doc/
|
|
20
|
+ <IfModule mod_rewrite.c>
|
|
21
|
+ RewriteEngine on
|
|
22
|
+ RewriteCond %{REQUEST_FILENAME} !-f
|
|
23
|
+ RewriteCond %{REQUEST_FILENAME} !^/medias/
|
|
24
|
+ RewriteCond %{REQUEST_FILENAME} !^/doc/
|
|
25
|
+ RewriteRule ^(.*)$ /index.php?_url=$1 [QSA,L]
|
|
26
|
+ </IfModule>
|
|
27
|
+</VirtualHost>
|
|
28
|
+</IfModule>
|