Nextcloud version (eg, 12.0.2): 16.0.4
Operating system and version (eg, Ubuntu 17.04): 18.04
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.14
PHP version (eg, 7.1): 7.2
The issue you are facing:
Hello i have a problem, i dont know how to setup, Ubuntu 18.04 with two virtual servers ( both in localhost):
Im following this tutos: https://www.linuxbabe.com/ubuntu/integrate-nextcloud-onlyoffice
But i wanted to have three different virtual hosts or addresses:
nextcloud.eduardo.com -> nextcloud as told in other tutorial works well -> stored in /usr/share/nginx/nextcloud16 and usr/share/nginx//data… all seems to work well, i enter with my user, added files, installed onlyoffice app
onlyoffice.eduardo.com -> document server should show the running installation completed -> in folder /var/www/onlyoffice
default server -> would go to wherever just to be polite
1- Tweaked /etc/hosts:
127.0.0.1 localhost
127.0.0.1 nextcloud.eduardo.com
127.0.0.1 onlyoffice.eduardo.com
2 – Now seems nextcloud works great: nextcloud.eduardo.com redirects to http://nextcloud.eduardo.com/index.php/apps/files/?dir=/&fileid=6 and everything works…
3 – Installed onlyoffice app, and worked i get to make a document of word…. setting up my office seve using the app onlyoffice: http://onlyoffice.eduardo.com
Im using all the time http as https seems too difficult to get it to work…
Dont know what ive changed or anything… now onlyoffice can get to document server it says an error, and if i put onlyoffice.eduardo.com: 403 Forbiddennginx/1.14.0 (Ubuntu)
Error log on nginx: 2019/11/11 18:49:03 [error] 11394#11394: *1 directory index of “/var/www/onlyoffice/” is forbidden, client: 127.0.0.1, server: onlyoffice.eduardo.com, request: “GET / HTTP/1.1”, host: “onlyoffice.eduardo.com”
My nginx configuration:
https://drive.google.com/drive/folders/1I2ZiRUKqmm8u5U5TsqyoOKUvfTwY-SPA?usp=sharing
pd: also localhost goes to nextcloud but to initial login page…
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Enter nextcloud -> Settings > Onlyoffice app
- Configure the server of document server: put http://onlyoffice.eduardo.com ( once it worked) but no more:
Error al intentar establecer la conexión (Client error: GET http://onlyoffice.eduardo.com/healthcheck
resulted in a 404 Not Found
response: 404 Not Found
404 Not Found
(truncated…) )
- Also i cant get the installation working fine…of document server ( it was working fine) as the tuto…
The output of your Nextcloud log in Admin > Logging:
PASTE HERE
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
PASTE HERE
The output of your Apache/nginx/system log in /var/log/____
:
PASTE HERE
Error log on nginx: 2019/11/11 18:49:03 [error] 11394#11394: *1 directory index of "/var/www/onlyoffice/" is forbidden, client: 127.0.0.1, server: onlyoffice.eduardo.com, request: "GET / HTTP/1.1", host: "onlyoffice.eduardo.com"