我试图在nextcloud.mydomain.com上设置nextcloud,而我在mydomain.com上有我的常规网站。这是我对nginx的default.conf:
server {
listen 80;
listen [::]:80;
server_name IP_HERE;
root /var/www/html/;
index index.php index.html index.htm index.nginx-debian.html;
location / {
try_files $uri $uri/ =404;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/html;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include snippets/fastcgi-php.conf;
}
location ~ /\.ht {
deny all;
}
}
nextcloud.conf文件遵循本教程的第4步:https://www.linuxbabe.com/ubuntu/install-nextcloud-11-ubuntu-16-04-nginx-config
我不知道为什么,但是当我访问nextcloud.mydomain.com时,我只是在/ html webroot中获取index.html而不是/ nextcloud文件夹中的nextcloud设置向导。
有什么想法吗?非常感谢你提前!