各位前輩您好
我在ubuntu 14.04上面使用samba mount 一個CIFS的目錄
然後依照user需求,安裝一個apache作為http file server
這邊裝完的apache是用symbolic link連結到上述的CIFS目錄
現在問題是
我在fstab使用
//10.11.11.11/public /CIFS cifs username=smbuser,password=smbuser,uid=www-data,gid=www-data,iocharset=utf8 0 0
可以順利讓此台ubuntu存取這個CIFS目錄
可是apache始終沒辦法看到CIFS的目錄
log是
AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/package
我照著昨天搜尋stackoverflow的結果
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
</Directory>
新增這些在apache2.conf
截至目前為止,我依然找不出問題
ps:因公司資安,我關閉了http,只留自認證的https
/etc/apache2/sites-enabled/ssl.conf
ssl.conf中的前半段內容是
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
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>
感謝各位前輩