i need help doing the exact opisite of this post:
https://help.nextcloud.com/t/solved-change-address-of-nc-from-domain-nextcloud-to-just-domain/33044
i have the same setup, here on my configs:
this is my nextcloud config
?php
$CONFIG = array (
‘passwordsalt’ => ‘xxx’,
‘secret’ => ‘xxx’,
‘trusted_domains’ =>
array (
0 => xxx;com’,
1 => ‘xxx;com’,
2 => ‘192.168.1.8’,
),
‘datadirectory’ => ‘/var/www/vhosts/nextcloud/data’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘14.0.1.1’,
‘overwrite.cli.url’ => ‘httpp://localhost/nextcloud’,
‘dbname’ => ‘nextclouddb’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘nextcloud’,
‘dbpassword’ => ‘xxx’,
‘installed’ => true,
‘instanceid’ => ‘xxx’,
‘enable_previews’ => true,
‘enabledPreviewProviders’ =>
array (
0 => ‘OC\Preview\PNG’,
1 => ‘OC\Preview\JPEG’,
2 => ‘OC\Preview\GIF’,
3 => ‘OC\Preview\BMP’,
4 => ‘OC\Preview\XBitmap’,
5 => ‘OC\Preview\MarkDown’,
6 => ‘OC\Preview\MP3’,
7 => ‘OC\Preview\TXT’,
8 => ‘OC\Preview\Illustrator’,
9 => ‘OC\Preview\Movie’,
10 => ‘OC\Preview\MSOffice2003’,
11 => ‘OC\Preview\MSOffice2007’,
12 => ‘OC\Preview\MSOfficeDoc’,
13 => ‘OC\Preview\OpenDocument’,
14 => ‘OC\Preview\PDF’,
15 => ‘OC\Preview\Photoshop’,
16 => ‘OC\Preview\Postscript’,
17 => ‘OC\Preview\StarOffice’,
18 => ‘OC\Preview\SVG’,
19 => ‘OC\Preview\TIFF’,
20 => ‘OC\Preview\Font’,
),
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘filelocking.enabled’ => true,
‘redis’ =>
array (
‘host’ => ‘/var/run/redis/redis.sock’,
‘port’ => 0,
‘timeout’ => 0,
‘password’ => ‘xxx’,
),
‘memcache.local’ => ‘\OC\Memcache\Redis’,
);
this is my apache nextcloud config:
<VirtualHost *:80>
ServerAdmin “xxx”
DocumentRoot “/var/www/vhosts/nextcloud”
ServerName “xxxcom”
ServerAlias “xxxcom”
Alias /nextcloud "/var/www/vhosts/nextcloud/"
<Directory "/var/www/vhosts/nextcloud/">
AllowOverride All
Options -Indexes +FollowSymlinks
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME "/var/www/vhosts/nextcloud"
SetEnv HTTP_HOME "/var/www/vhosts/nextcloud"
</Directory>
<Directory "/var/www/vhosts/nextcloud/data/">
Require all denied
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/php7.0-fpm.nextcloud.sock|fcgi://localhost"
</FilesMatch>
RewriteEngine on
RewriteCond %{SERVER_NAME} =xxx.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
im trying to have a page at /var/www/index.html be what the site goes to, and to get to the next cloud it would be accessible via /nextcloud