author | ymh <ymh.work@gmail.com> |
Tue, 08 Nov 2016 11:18:02 +0100 | |
changeset 398 | a5bd0f6082f3 |
parent 318 | 5564f5065f81 |
permissions | -rw-r--r-- |
28 | 1 |
# ************************************ |
2 |
# Vhost template in module sysconfig |
|
3 |
# Managed by Puppet |
|
4 |
# ************************************ |
|
5 |
||
6 |
<VirtualHost *:80> |
|
7 |
ServerName <%= @vhost %> |
|
8 |
||
9 |
## Vhost docroot |
|
10 |
DocumentRoot "/var/www/corpusdelaparole/drupal" |
|
11 |
||
12 |
## Alias declarations for resources outside the DocumentRoot |
|
318
5564f5065f81
add a root url for corpus back apis. it is set to the same than root api for the moment
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
13 |
Alias /corpus-back "/var/www/corpusdelaparole/corpus-back/public" |
28 | 14 |
|
15 |
<Directory "/var/www/corpusdelaparole/drupal"> |
|
16 |
AllowOverride all |
|
17 |
Require all granted |
|
18 |
</Directory> |
|
19 |
||
20 |
||
318
5564f5065f81
add a root url for corpus back apis. it is set to the same than root api for the moment
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
21 |
<Directory "/var/www/corpusdelaparole/corpus-back/public"> |
28 | 22 |
AllowOverride None |
23 |
Require all granted |
|
24 |
IncludeOptional /etc/www/corpus_env.con[f] |
|
25 |
<IfModule mod_rewrite.c> |
|
26 |
<IfModule mod_negotiation.c> |
|
27 |
Options -MultiViews |
|
28 |
</IfModule> |
|
29 |
||
30 |
RewriteEngine On |
|
318
5564f5065f81
add a root url for corpus back apis. it is set to the same than root api for the moment
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
31 |
RewriteBase /corpus-back/ |
28 | 32 |
|
33 |
# Redirect Trailing Slashes... |
|
318
5564f5065f81
add a root url for corpus back apis. it is set to the same than root api for the moment
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
34 |
RewriteRule ^(.*)/$ /corpus-back/$1 [L,R=301] |
28 | 35 |
|
36 |
# Handle Front Controller... |
|
37 |
RewriteCond %{REQUEST_FILENAME} !-d |
|
38 |
RewriteCond %{REQUEST_FILENAME} !-f |
|
39 |
RewriteRule ^ index.php [L] |
|
40 |
</IfModule> |
|
41 |
</Directory> |
|
42 |
||
43 |
## Logging |
|
44 |
ErrorLog "/var/log/httpd/corpusdelaparole_error.log" |
|
45 |
ServerSignature Off |
|
46 |
CustomLog "/var/log/httpd/corpusdelaparole_access.log" combined |
|
47 |
||
48 |
</VirtualHost> |