LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-22-2013, 04:50 AM   #1
cp303
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
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>
 
Old 10-22-2013, 05:35 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with HTACCESS Arty Ziff Linux - Newbie 8 10-25-2009 07:01 AM
Problem With Htaccess Arty Ziff Linux - Newbie 3 09-10-2009 08:56 PM
problem with .htaccess thidranki Linux - Networking 3 01-27-2009 01:48 AM
.htaccess problem soroccoheaven Linux - Server 2 09-23-2007 03:28 PM
.htaccess problem mwmethe Linux - Security 1 08-31-2002 12:32 PM


All times are GMT -5. The time now is 10:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration