403 forbidden error with apache when symlinking to different partition

403 forbidden error with apache when symlinking to different partition

Post by Marti » Sat, 10 May 2003 05:46:25



I have separate partition which has the document root for apache on it
and all the websites and it's mounted under /w3. Recently I have been
running out of space and wanted to move the website to the home
directory /home/mj/web and I made a symlink from its original location
to /home/mj/web but I get a 403 error and in the error log it says
"Symbolic link not allowed".

I have no problem symlinking within the /w3 partition but you can't
symlink outside. I would love to be able to move the files to the
different partition so I can free space on the /w3 partition.

I seem to be the only one with this problem ever because I searched
Google for a solution and I can't seem to find any information.

So I hope some Apache guru will be able to help me with this.

 
 
 

403 forbidden error with apache when symlinking to different partition

Post by David Efflan » Sat, 10 May 2003 09:37:08



Quote:> I have separate partition which has the document root for apache on it
> and all the websites and it's mounted under /w3. Recently I have been
> running out of space and wanted to move the website to the home
> directory /home/mj/web and I made a symlink from its original location
> to /home/mj/web but I get a 403 error and in the error log it says
> "Symbolic link not allowed".

> I have no problem symlinking within the /w3 partition but you can't
> symlink outside. I would love to be able to move the files to the
> different partition so I can free space on the /w3 partition.

You probably want to Alias 1 or more directories to the other location
instead of multiple symlinks.  But you have to make sure that you define
what is allowed in <Directory /home/mj/web>.  You cannot symlink out of
webspace, but a defined <Directory> section becomes webspace (assuming
it has proper ownership and permissions).

For example I Alias /flash /media/flash, define what is allowed there with
<Directory /media/flash></Directory> section (including Options Indexing),
and then view photos on my digital camera media (pc card adapter) at
http://localhost/flash/ (or http://hostname/flash/ from elsewhere on my
LAN).

--
David Efflandt - All spam ignored  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

 
 
 

1. Annoying Error! Apache: 403 Forbidden

What is wrong with my setup!  I have re-installed Apache 1.3.12 from
scratch, have put public_html in my home directory
(/home/michael/public_html), put an index.html in it with simple html code,
yet I STILL GET A 403 ERROR!  Here is the relevant section of my httpd.conf
file:

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        Order deny,allow
        Deny from all
    </Limit>
</Directory>

--
M i c h a e l   B e r n a r d o

2. plip irq question

3. Apache 403/forbidden error

4. patch to add i875p support applied - now what?

5. Apache error "403 Forbidden access to /~user/"

6. 2nd EIDE disk

7. Apache error: 403 Forbidden by Rule

8. Lexmark ?

9. Error 403 Forbidden! and Apache/php4

10. 403 Forbidden Error on Apache

11. Apache/RH5.2 getting forbidden/403 error on symbolically linked directory

12. Apache 1.3.19 return 403 Forbidden on PDF file

13. apache user dirs 403 forbidden w/redhat 5.0