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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin MillerCTOCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.