jimmylew52
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.
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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.
The install directory does not have very much space, 48gb. All of my storage space is in /var.
ASKER
researched the alias idea and it seems to be for executing files. I need to redirect to a folder and the files in it.
ASKER
looks like a selinux permission problem:
Flies had this: -rwxrwxrwx. apache apache system_u:object_r:home_roo t_t:s0 format
Need them to be this: -rwxrwxrwx. apache apache system_u:object_r:httpd_sy s_content_ t:s0 format
Ran semanage fcontext -a -t httpd_sys_content_t "/home/svn(/.*)?"
But there is no change
Flies had this: -rwxrwxrwx. apache apache system_u:object_r:home_roo
Need them to be this: -rwxrwxrwx. apache apache system_u:object_r:httpd_sy
Ran semanage fcontext -a -t httpd_sys_content_t "/home/svn(/.*)?"
But there is no change
ASKER
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.
chcon -Rv --type=httpd_sys_content_t
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>
Alias will not work with subversion:
<Location /svn>
DAV svn
svnparentpath /mnt/svn
</Location>
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.