nextcloud URL issue

Hi Experts

i just installed nextcloud 13.0.1  on centos 7 it is working now

but i want our users to write in the browser           without /nextcloud    in the end i mean   not like this

i know there is something i have to do on apache but i don't know where and how maybe in index.php   i am not sure and i don't know how

so please if you know give me step by step procedure

Who is Participating?
Martin MillerConnect With a Mentor CTOCommented:
The paradigm you are seeking is the DOCUMENT ROOT, docroot, or home directory. From their documentation, it looks like a recursive copy into DOCROOT, see image below.

The command for you might look like this...

cp nextcloud
cp -r .  ..

Open in new window

I know that looks odd, but copy recursive current directory, out to next directory.
sword12Author Commented:

so in my case my nextcloud right now up and running

and the location of nextcloud directory   /var/www/html/nextcloud

so can right now just issue this command without modifying any other confige file and you think everything will work

cp -r /var/www/html/nextcloud /var/www

and then you think it will work wihotu any issue ?
Martin MillerCTOCommented:
Make a directory backup first, then do the cp.

You can restore if something is wrong and then adjust the target directory.
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

sword12Author Commented:
i will do this just i think i have to change the path in two files  if i am right please confirm

number one
[root@nextcloud ~]# more /etc/httpd/conf.d/nextcloud.conf
Alias /nextcloud "/var/www/html/nextcloud/"

<Directory /var/www/html/nextcloud/>
  Options +FollowSymlinks
  AllowOverride All

 <IfModule mod_dav.c>
  Dav off

 SetEnv HOME /var/www/html/nextcloud
 SetEnv HTTP_HOME /var/www/html/nextcloud



number two

[root@nextcloud ~]# more /var/www/html/nextcloud/config/config.php
$CONFIG = array (
  'instanceid' => 'ocfmpj6oq3t4',
  'passwordsalt' => 'Rq1wz7ucw/2UY0uXdpjQilSpxTCvktp',
  'secret' => 'i4xzK0TzoITn93XSX25pxA0TNHcAR8Gz6mmkkoyN6bpzggbKz',
  'trusted_domains' =>
  array (
    0 => '',
  'datadirectory' => '/var/www/html/nextcloud/data',
  'overwrite.cli.url' => '',
  'dbtype' => 'mysql',
  'version' => '',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nc_user',
  'dbpassword' => 'hieverybody',
  'installed' => true,
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  '' => 'stable',
  'appstoreenabled' => true,
  'appstoreurl' => '',
  'has_internet_connection' => true,
  'appcodechecker' => false,

so do you think i have to change in any other place also ?

thanks again
Martin MillerCTOCommented:
Yes, the configuration change should be made in nextcloud.conf and the config.php

I think these should cover the critical changes.
sword12Author Commented:
thanks but i found this i found it more easy
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.