How to configure a local repository in other directory or file system?

Hello everyone!

I’ve installed CentOS as my local repository server and I configured LVM file system just like this:

/
/opt
/home
/var
/repositories (For packages repositories)

I don’t know if you all help me with a configuration. I want to set up all my packages repositories in /repositories/CentOS6 directory, but I don’t know how to do this.

I know that the default configuration is /var/www/html/“directory name” but I need other ways of configuring a local repository. Do you know how can I do this? Are there some suggestions?

Many thanks, regards!

This is for those who wants the answer.

The solution is:

=========================================

You need to change the DocumentRoot setting in your httpd.conf file. Chances are it will be under something like /etc/httpd/conf/httpd.conf

Use your favorite editor (I recommend vim) and look for the DocumentRoot and change it to /repositories/CentOS6. Also look a little

further down for a setting that looks like this:

<Directory “/var/www”>

You will also want to change what is in the quotes to your new directory. This gives Apache access to read from that directory when a user

makes a request that call on it.

Now restart your apache service (httpd -k restart) and you should be good to go.

=========================================

Regards!