Koozali.org: home of the SME Server

Apache following SymLinks needed or something else ?

Garfield

Apache following SymLinks needed or something else ?
« on: June 04, 2005, 04:37:52 PM »
Hi,

Today I have added another hd to my SME 6.01 system.
Then I went about and moved some ibays to the new hd, including some websites. (Using Michiel Blotwijk's HowTo for an extra hd). I created symlinks to the new locations, and browsing them on the command line all went fine. However, browsing the websites with an Internet browser does not work: permission denied.

I am fairly sure that I have set the permissions correctly, as I have set them exactly as they were.

After doing some searching here and on the rest of the Internet, I have a feeling I need to change the Apache config to have Apache follow symlinks.

I fiddled a bit with the custom templates (including +FollowSymLinks) statements, but that did not have the desired results.

Has anyone done this successfully ?
I would appreciate any help greatly !

Garfield

Apache following SymLinks needed or something else ?
« Reply #1 on: June 05, 2005, 01:35:46 AM »
OK, that was easier than I thought.

For anyone interested: use apache template 85DefaultAccess.

In that, replace this line :
Code: [Select]
Options None
with this line :
Code: [Select]
Options FollowSymLinks

By doing that, you tell Apache that it can follow SymLinks everywhere by default. Maybe it can be done for ibays exclusively, but I couldn't get it to work.

Now I only have a strange thing left with FTP-ing to the moved ibay, but I'm sure I'll figure that one out too.

Offline jeroenm

  • *
  • 18
  • +0/-0
Apache following SymLinks needed or something else ?
« Reply #2 on: June 06, 2005, 12:27:42 AM »
Quote from: "Garfield"
..........
Maybe it can be done for ibays exclusively, but I couldn't get it to work.
..........


You can accomplish this by using htaccess.
...

Garfield

Apache following SymLinks needed or something else ?
« Reply #3 on: June 06, 2005, 09:18:36 PM »
I have done away with the symlinks alltogether because of FTP problems. I found a much simpler solution: mounting via /etc/fstab. I learned that as of the 2.4 kernel, filesystems can be mounted more than once. So I removed the symlinks and mounted the various ibays on my 2nd disk into the directory structure on the 1st disk, and voilĂ , it all works !