403 Forbidden on symbolic links - totally won't do it.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have spent the past two hours trying to find the magic needed to get
my external drive symlink to be part of a friend's website.  I've
never been able to do this in the past and have simply reinstalled
linux on larger and larger volumes as a solution to running out of
free space, but I'm simply too busy to deal with a reinstall this
month.

I get a 403 Forbidden error at https://sellfam.com/minecraft/www/

I told it to follow symlinks in the sites-available files and it
should just work, but doesn't...  What on earth is wrong?  Oh yes, I
did remember to restart apache2 as well.

I really don't understand the paranoia surrounding symlinks in the
first place...  It's not like people make them by accident; they are
also files and all files should be treated the same.  I just want this
to work, it doesn't have to be this hard.

##sellfam_com_80.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/sellfam.com/public/
#<Directory /home/legg/extra/www/>   ### <--  This didn't work
<Directory />                                 ###  <--neither did this
   Options FollowSymLinks   ###  <-- I told it to follow symbolic
links two different ways
   AllowOverride None
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName sellfam.com
ServerAlias www.sellfam.com
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.sellfam.com [OR]
RewriteCond %{SERVER_NAME} =sellfam.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

#sellfam_com_443.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/sellfam.com/public/
#    <Directory /home/legg/extra/www/>
<Directory />
Options FollowSymLinks   ###   <---  I did the same here too
AllowOverride None
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName sellfam.com
ServerAlias www.sellfam.com
Include /etc/letsencrypt/options-ssl-apache.conf
Include /etc/letsencrypt/options-ssl-apache.conf
Include /etc/letsencrypt/options-ssl-apache.conf
Include /etc/letsencrypt/options-ssl-apache.conf
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/sellfam.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/sellfam.com/privkey.pem
</VirtualHost>
</IfModule>

And look, the permissions can't be any more relaxed than this...

# ls -al minecraft/
total 12
drwxr-xr-x 2 www-data www-data 4096 Jun  1 16:04 .
drwxr-xr-x 6 www-data www-data 4096 Jun  1 15:57 ..
-rw-r--r-- 1 root     root        6 Jun  1 16:04 hello.txt
lrwxrwxrwx 1 www-data www-data   21 Jun  1 15:57 www -> /home/legg/extra/www/

I have the ownership correct too.

 ls -al /home/legg/extra/www
total 272
drwxr-xr-x 5 www-data www-data   4096 Jun  1 15:54 .
drwxrwxr-- 5 legg     legg       4096 Jun  1 14:43 ..
-rw-r--r-- 1 www-data www-data     44 Jun  1 15:43 baseMarkers.js
-rw-r--r-- 1 www-data www-data    631 Jun  1 15:43 bed.png
-rw-r--r-- 1 www-data www-data   3947 Jun  1 15:43 compass_lower-left.png
-rw-r--r-- 1 www-data www-data   3955 Jun  1 15:43 compass_lower-right.png
-rw-r--r-- 1 www-data www-data   3960 Jun  1 15:43 compass_upper-left.png
-rw-r--r-- 1 www-data www-data   3952 Jun  1 15:43 compass_upper-right.png
drwxr-xr-x 2 www-data www-data   4096 Jun  1 15:43 icons
drwxr-xr-x 2 www-data www-data   4096 Jun  1 15:43 images
-rw-r--r-- 1 www-data www-data   1013 Jun  1 15:43 index.html
-rw-r--r-- 1 www-data www-data  14198 Jun  1 15:43 leaflet.css
-rw-r--r-- 1 www-data www-data 139643 Jun  1 15:43 leaflet.js
-rw-r--r-- 1 www-data www-data   3255 Jun  1 15:43 overviewer.css
-rw-r--r-- 1 www-data www-data  40101 Jun  1 15:43 overviewer.js
-rw-r--r-- 1 www-data www-data   1977 Jun  1 15:43 overviewerConfig.js
-rw-r--r-- 1 www-data www-data    714 Jun  1 15:43 regions.js
-rw-r--r-- 1 www-data www-data    257 Jun  1 15:43 signpost-shadow.png
-rw-r--r-- 1 www-data www-data    518 Jun  1 15:43 signpost.png
-rw-r--r-- 1 www-data www-data    171 Jun  1 15:43 signpost_icon.png
drwx------ 6 www-data www-data   4096 Jun  1 15:27 world-lighting

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux