Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


LinkBack Search this Thread
Old 10-22-2013, 04:50 AM   #1
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
Old 10-22-2013, 05:35 AM   #2
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,775

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Hi and welcome to LQ,

Perhaps apache does not read .htaccess files. To enable reading them, you need to add
AllowOverride All
To check if it reads .htaccess, put some gibberish in it and see if you get a 500 error.



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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 07:09 PM.

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