Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite to subdomain, following a symlink -> 403

Configuration problem? Or a known 'feature' perhaps?

         

bwakkie

7:54 pm on Jul 31, 2008 (gmt 0)

10+ Year Member



Hi,

I have a strange problem. I have 2 domains and working out pretending the image folder is belonging to the other domain.

On the other domain I have a symlink back to the correct image folder.

But all i get is a 403 error and the error log tells me "Symbolic link not allowed" While everywhere I have Options FollowSymlinks.

So in example a request for an image:

[domain2img.domain1.com...]

rewrite rule makes this [domain1.com...]

but on file level /var/www/domain1/domain2img is a symlink to /var/www/domain2/img so the real image is at:

/var/www/domain2/img/myimage.jpg

This looks like a possible way right? I want this to get more open connections to a client, hence a quicker uploading website.
(see YUI rule # 8 -> [developer.yahoo.com...]

Any suggestions?

thanks,
Bastiaan

jdMorgan

8:25 pm on Jul 31, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Odd that it doesn't work... Have you tried using mod_alias at the server level instead of a symlink at the filesystem level?

Jim