Update 01 Install
parent
a55e34ee48
commit
8bcf923dc2
1 changed files with 42 additions and 0 deletions
|
@ -47,6 +47,48 @@ server {
|
|||
</VirtualHost>
|
||||
```
|
||||
|
||||
### NOTE for Yunohost Config
|
||||
Fipamo is not an official Yunohost app (yet) but it does work with the [MyWebApp](https://github.com/YunoHost-Apps/my_webapp_ynh) application since it a pure PHP platform.
|
||||
|
||||
The only caveat is that MyWebApp has a unique NGINX set up that may cause problems when its time to render the site.
|
||||
|
||||
Let's take a look at `location` block of the configuration file located at `/etc/nginx/conf.d/your.site/my_webapp.conf`.
|
||||
|
||||
The `alias` and `index` parameters are located inside the `location` block, which prevents NGINX from knowing what to serve because the parameters it needs are not where they should be.
|
||||
|
||||
```
|
||||
location / {
|
||||
|
||||
# Path to source
|
||||
alias /var/www/my_webapp/www/your-site/public/; #needs to moved
|
||||
|
||||
# Default indexes and catch-all
|
||||
index index.html index.php; #needs to be moved
|
||||
try_files $uri /index.php?$args;
|
||||
# Prevent useless logs
|
||||
location = /favicon.ico {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
```
|
||||
|
||||
Fortunatley, it's an easy fix. You just need to move the `alias` and `index` parameters outside of the `location` bloc, so NGINX can find them. Once that's done, reset NGINX to load the new config and it's all good.
|
||||
|
||||
```
|
||||
# Path to source
|
||||
alias /var/www/my_webapp/www/your-site/public; #new location
|
||||
# Default indexes and catch-all
|
||||
index index.html index.php; #new location
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php?$args;
|
||||
# Prevent useless logs
|
||||
location = /favicon.ico {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
```
|
||||
|
||||
Also it is strongly recommened to set up a ssl certificate to protect yourself if your using Fipamo through a web server. [Certbot](https://certbot.eff.org/instructions) makes this process dead simple.
|
||||
|
||||
### Updating Fipamo
|
||||
|
|
Loading…
Reference in a new issue