Start adding virtual sites with nginx.
This commit is contained in:
parent
03778e9834
commit
4be5e93c9c
7 changed files with 68 additions and 29 deletions
9
nginx/vhost.d/default
Normal file
9
nginx/vhost.d/default
Normal file
|
@ -0,0 +1,9 @@
|
|||
location /static/ {
|
||||
alias /staticfiles/;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
|
||||
location /media/ {
|
||||
alias /mediafiles/;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue