Link to home
Start Free TrialLog in
Avatar of jimmylew52
jimmylew52Flag for United States of America

asked on

Create link to folder for use with apache.

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.
ASKER CERTIFIED SOLUTION
Avatar of Jan Bacher
Jan Bacher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of jimmylew52

ASKER

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.
I am talking about httpd.conf 'Alias' statement.

Alias will not work with subversion:
<Location /svn>
 DAV svn
 svnparentpath /mnt/svn
</Location>