We help IT Professionals succeed at work.

Create link to folder for use with apache.

Last Modified: 2017-03-14
I want a link from /home/svn to be available in /mnt.

My path in apache is /mnt/svn.........

I created the svn link in /mnt but when I try to access from a browser I get path not found.

Any suggestions on how to get this to work. All of my storage space for the web page is in /home. I tried mounting svn in /mnt but it is not seen that way either.

I would rather have the link in /var/www but I cannot create the link there.
Watch Question

Most Valuable Expert 2015
Unlock this solution and get a sample of our free trial.
(No credit card required)
Top Expert 2015

You can use Alias to link directories or files to web content
Is it about mod_dav_svn? Then you just specify any paths you want in SVN DAV mount, no need for any links or whatever.


Apache has permissions. I have not tried the alias. How do I create an alias, I have not heard of that.

The install directory does not have very much space, 48gb. All of my storage space is in /var.


researched the alias idea and it seems to be for executing files. I need to redirect to a folder and the files in it.


looks like a selinux permission problem:

Flies had this: -rwxrwxrwx. apache apache system_u:object_r:home_root_t:s0 format

Need them to be this:   -rwxrwxrwx. apache apache system_u:object_r:httpd_sys_content_t:s0 format

Ran    semanage fcontext -a -t httpd_sys_content_t "/home/svn(/.*)?"

But there is no change


Did not understand what you were saying as I have never delt wit selinux permissions before. Ran this command to change selinux permissions on /home/svn so apache could access it.

chcon -Rv --type=httpd_sys_content_t /home/svn

This command changed the permissions on the svn folder and all sub folders and files.
Top Expert 2015

I am talking about httpd.conf 'Alias' statement.

Alias will not work with subversion:
<Location /svn>
 DAV svn
 svnparentpath /mnt/svn
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.