I used “mount cifs” to mount a folder. According to the request of users, I need to install an apache as a http file server. Then, I use symbolic link, linked all the CIFS folder to /var/www/html I add one in /etc/fstab: “//10.11.11.11/public /CIFS cifs username=smbuser,password=smbuser,uid=www-data,gid=www-data,iocharset=utf8 0 0” to mount this CIFS folder. I can use command line to access this folder. However, the apache server cannot link to this CIFS folder. The log is “AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/package”
I add this in apache2.conf: Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
In “/etc/apache2/sites-enabled/ssl.conf”
I add this config: ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
DocumentRoot /var/www/html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Ps: I also try to use Alias in apache, but I met the same error log while access the deeper folder under the folder setting in “Alias”
Is anyone can give me an idea?