Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: File access issue from new hdd through symlink folder |
|
Author |
|
tor2013
Joined: 21 Jun 2013 Posts: 2
|
Posted: Fri 21 Jun '13 8:36 Post subject: File access issue from new hdd through symlink folder |
|
|
I am using Centos 6.3 final and Apache 2.2.15. I recently installed a new HDD and created a symlink within my website's root directory so that my script can write big files to it and uses can access them through web. However, it looks like I misconfigured something or missed something and it's not working now.
This is what I did so far:
Old HDD:
/var/www/vhosts/mysite.com/httpdocs/bigfile2 (symlink to link to folder below in new HDD)
New HDD:
/newdisk/bigfile2
Now, the script writes files to new HDD properly but users can't access them from website. It gives 403, forbidden error when I try to visit mysite.com/bigfile2/file1.mov. I read your forum and saw a similar post here http://www.apachelounge.com/viewtopic.php?p=22932 where someone mentioned about adding something like this within httpd.conf file?
<Directory "/newdisk/bigfile2">
Options Indexes FollowSymLinks
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
And restart apache but still no luck! Do I need to add this to .htaccess ?
Any idea what am i missing?
Thanks |
|
Back to top |
|
tor2013
Joined: 21 Jun 2013 Posts: 2
|
Posted: Thu 27 Jun '13 6:22 Post subject: |
|
|
anyone?  |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7404 Location: EU, Germany, Next to Hamburg
|
Posted: Thu 27 Jun '13 11:43 Post subject: |
|
|
What are the file permissions of bigfile2 0755 ? |
|
Back to top |
|
|
|
|
|
|