Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using Ubuntu 13.04 x64. I have installed Apache, php5.

I have configured two sites folders in the /etc/apache2/sites-available/default One is the in /home/me/www and the other is on the external disk let's say /media/me/www.

I think the problem is that /media is owned by root and all files had restrictive permissions, so I can only see my files in my computer, or with sftp or samba, login with my username.

What I want is to view those files in apache from another computer, but the server always gave me the 403 Forbidden message.

I was thinking of changing the owner of the media folder, and to change the files permissions. Or I found I could mount the drive in another path, but that would be more problematic because I already have some apps using that path.

My question what do I have to do to allow access to apache to show the media folder?

The hard drive is NTFS format. Also I'm not an expert in linux, but knows the basics.

share|improve this question
    
I would suggest changing the mount point and then create a symbolic link at the old location to point to the new one - so you won't need to change the path in programs that point to it since they will follow the link. –  Pieter Jul 6 '13 at 15:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.