Commit 96e8d5a0220b28b4087fbf985de4f6d096b6f2ca
1 parent
f4e7f711
Exists in
master
and in
1 other branch
Atualização do template de configuração do site no Apache.
Showing
1 changed file
with
11 additions
and
2 deletions
Show diff stats
contrib/apache/wikilibras.conf.tmpl
@@ -2,16 +2,25 @@ | @@ -2,16 +2,25 @@ | ||
2 | ServerName localhost | 2 | ServerName localhost |
3 | 3 | ||
4 | WSGIDaemonProcess wikilibras user=user1 group=group1 threads=5 | 4 | WSGIDaemonProcess wikilibras user=user1 group=group1 threads=5 |
5 | - WSGIScriptAlias / <path-to-project>/contrib/wikilibras.wsgi | ||
6 | - Alias /view <path-to-project>/view | 5 | + WSGIScriptAlias /wikilibras-backend <path-to-project>/contrib/wikilibras.wsgi |
7 | 6 | ||
8 | <Directory <path-to-project>> | 7 | <Directory <path-to-project>> |
9 | WSGIProcessGroup wikilibras | 8 | WSGIProcessGroup wikilibras |
10 | WSGIApplicationGroup %{GLOBAL} | 9 | WSGIApplicationGroup %{GLOBAL} |
11 | Order deny,allow | 10 | Order deny,allow |
12 | Allow from all | 11 | Allow from all |
12 | + Require all granted | ||
13 | </Directory> | 13 | </Directory> |
14 | 14 | ||
15 | + Alias /wikilibras <path-to-project>/view | ||
16 | + <Directory <path-to-project>/view> | ||
17 | + Order deny,allow | ||
18 | + Allow from all | ||
19 | + Require all granted | ||
20 | + </Directory> | ||
21 | + | ||
22 | + Header set Access-Control-Allow-Origin "*" | ||
23 | + | ||
15 | ServerAdmin webmaster@localhost | 24 | ServerAdmin webmaster@localhost |
16 | 25 | ||
17 | ErrorLog ${APACHE_LOG_DIR}/error.log | 26 | ErrorLog ${APACHE_LOG_DIR}/error.log |