Hey guys,
i want to install nextcloud in a jail with php-fpm, nginx and sqlite.
Here is what i've done so far:
installed nextcloud over fresh ports, with "make config" (select sqlite) and " make clean install" you should get nextcloud with php-fpm & sqlite.
installed nxginx over freshports with standard settings.
settings for php.ini
with following changes:
output_buffering = OFF
session.save_path = "/tmp"
upload_max_filesize = 5120M
post_max_size = 5120M
date.timezone = Europe/Berlin
settings for php-fpm.config
with following changes:
listen = 127.0.0.1:9000
Listen.backlog = -1
listen.owner = www
listen.group = www
listen.mode = 0660
settings for nginx.config
with following changes:
user = www;
server name <ip.of.the.jail>
root /usr/local/www/nextcloud/
gzip = off
start the services
Now the Problem:
if i enter http://<ip.of.the.jail> i get forwarded on https://example.com.
I think i'm doing something fundamentally wrong, because in my nginx.config doesnt even has a redirection to 433 entry (letsencrypt comes later when http is working)...
I mean the concept of this should work in principle, shouldn't it?
What am i missing?
I would be really happy for your help.
Thanks!
i want to install nextcloud in a jail with php-fpm, nginx and sqlite.
Here is what i've done so far:
installed nextcloud over fresh ports, with "make config" (select sqlite) and " make clean install" you should get nextcloud with php-fpm & sqlite.
installed nxginx over freshports with standard settings.
settings for php.ini
Code:
cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini edit /usr/local/etc/php.ini
with following changes:
output_buffering = OFF
session.save_path = "/tmp"
upload_max_filesize = 5120M
post_max_size = 5120M
date.timezone = Europe/Berlin
settings for php-fpm.config
Code:
edit /usr/local/etc/ Php-fpm.config
with following changes:
listen = 127.0.0.1:9000
Listen.backlog = -1
listen.owner = www
listen.group = www
listen.mode = 0660
settings for nginx.config
Code:
edit /usr/local/etc/nginx.conf
with following changes:
user = www;
server name <ip.of.the.jail>
root /usr/local/www/nextcloud/
gzip = off
start the services
Code:
Service php-fpm onestart Service nginx onestart
Now the Problem:
if i enter http://<ip.of.the.jail> i get forwarded on https://example.com.
I think i'm doing something fundamentally wrong, because in my nginx.config doesnt even has a redirection to 433 entry (letsencrypt comes later when http is working)...
I mean the concept of this should work in principle, shouldn't it?
What am i missing?
I would be really happy for your help.
Thanks!