symlink doesn't work (403 forbidden)

128 views
Skip to first unread message

christoph...@googlemail.com

unread,
Dec 4, 2009, 10:44:40 AM12/4/09
to Capistrano
Hi

You might hear it for the millionth time but I just spend some hours
on that issue. Search the internet, searched the capistrano mail etc.

My problem from apache's log:
Symbolic link not allowed or link target not accessible: /var/deploy/
deployments/myapp.com/current, referer: http://www.myapp.com/login



I deploy via Git, Apache, Capistrano and a *deployment* user. As far
as I know I set things up correctly like:
***********Vhosts***************
<VirtualHost *:80>
ServerName www.myapp.com
ServerAlias myapp.com
DocumentRoot /var/deploy/deployments/myapp.com/current/public
<directory /var/deploy/deployments/myapp.com/current/public>
Allow from all
Options FollowSymLinks
</directory>
</VirtualHost>
**********************************

The deployment user has all the rights for all the subdirectories of /
var/deploy.

But when I access let's say myapp.com/login I find this error in
Apaches log:
"Symbolic link not allowed or link target not accessible" although I
set symlinks correct. I don't get it. I even tried the tip from this
post: [
http://groups.google.com/group/capistrano/browse_thread/thread/421e2754a74f1d29/7e70c22651113073?lnk=gst&q=Symbolic+link+not+allowed+or+link+target+not+accessible#7e70c22651113073
]

After changing the document path like the post above suggest now
instead of an 403 forbidden
I get an passenger error that some file are missing (which isn't
true). The directory doesn't get it right.


I chmoded the current symlink => didn't work
I chmod the sqlite db => didn't work

If you need any more data please let me know.

Thanks for any help

Chris

Christoph Jasinski

unread,
Dec 4, 2009, 11:41:57 AM12/4/09
to Capistrano
Problem solved. It was a gem. Sorry, but after several hour of bug fixing I couldn't read clearly.

Cheers,
Chris
Reply all
Reply to author
Forward
0 new messages