Commit 64ad0b96d5d2348b06a58a220d7fbca5196f8fe5
1 parent
02c3927e2c
Exists in
master
Reformatted nginx conf and fixed php
Showing 1 changed file with 8 additions and 8 deletions Side-by-side Diff
nginxconf/flashy.cards
View file @
64ad0b9
... | ... | @@ -7,18 +7,18 @@ |
7 | 7 | |
8 | 8 | server_name flashy.cards; |
9 | 9 | listen 443 ssl; |
10 | - location ~ \.php$ { | |
10 | + | |
11 | + | |
12 | + location / { | |
13 | + root /srv/flashy.cards/; | |
14 | + index index.html /docs/_h5ai/server/php/index.php; | |
15 | + location ~ \.php$ { | |
11 | 16 | try_files $uri =404; |
12 | 17 | fastcgi_pass unix:/var/run/php5-fpm.sock; |
13 | - fastcgi_index index.php; | |
14 | - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
15 | 18 | include fastcgi_params; |
19 | + } | |
16 | 20 | } |
17 | 21 | |
18 | - location / { | |
19 | - root /srv/flashy.cards/; | |
20 | - } | |
21 | - | |
22 | 22 | location ^~ /static { |
23 | 23 | root /srv/; |
24 | 24 | access_log off; |
... | ... | @@ -27,7 +27,7 @@ |
27 | 27 | |
28 | 28 | location ^~ /app/ { |
29 | 29 | alias /srv/flashy-frontend/; |
30 | - try_files $uri /app/home.html; | |
30 | + try_files $uri /app/home.html; | |
31 | 31 | } |
32 | 32 | |
33 | 33 | location ~ /(api|admin|api-auth)/ { |