We help IT Professionals succeed at work.

Create link to folder for use with apache.

306 Views
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.
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Top Expert 2015

Commented:
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.

Author

Commented:
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.

Author

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

Author

Commented:
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

Author

Commented:
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

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

Alias will not work with subversion:
<Location /svn>
 DAV svn
 svnparentpath /mnt/svn
</Location>
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.

OR

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.