LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   VSFTPD and .htaccess problem (https://www.linuxquestions.org/questions/programming-9/vsftpd-and-htaccess-problem-4175481712/)

cp303 10-22-2013 04:50 AM

VSFTPD and .htaccess problem
 
Hi all!

Have a Linux VPS running VSFTPD. Whenever I upload a .htaccess file, it disappears. This is obviously because Force_dot_files = NO.

However, the .htaccess file when I log in as root is still there but doesn't work, the user can still upload any file that isn't the following:

.mp3 / .wav / .jpg / .png / .gif

Here is my .htaccess file, am I doing something wrong?

order allow,deny
<Files ~ "\.(mp3|wav|jpg|png|gif)$">
allow from all
</Files>

bathory 10-22-2013 05:35 AM

Hi and welcome to LQ,

Perhaps apache does not read .htaccess files. To enable reading them, you need to add
Code:

AllowOverride All
To check if it reads .htaccess, put some gibberish in it and see if you get a 500 error.

Cheers


All times are GMT -5. The time now is 12:01 PM.