PDA

View Full Version : .htaccess not visible from ftp


gkovacs
28th April 2009, 17:46
If I upload a .htaccess file via FTP, it becomes invisible as soon as I refresh.
(This is a newly created, empty site and new ftp user to avoid any problems.)

I can see the file from the shell fine:
root@ispconfig:/var/clients/client4/web40/web# ls -la
total 36
drwxr-xr-x 4 web40 client4 4096 Apr 28 16:44 .
drwxr-xr-x 6 root root 4096 Apr 28 16:18 ..
-rw-r--r-- 1 web40 client4 9 Apr 28 16:35 .htaccess
-rw-r--r-- 1 web40 client4 9 Apr 28 16:44 a.htaccess
drwxr-xr-x 2 web40 client4 4096 Apr 28 16:18 error
-rwxr-xr-- 1 web40 client4 1406 Apr 28 16:18 favicon.ico
-rwxr-xr-- 1 web40 client4 1861 Apr 28 16:18 index.html
-rwxr-xr-- 1 web40 client4 34 Apr 28 16:18 robots.txt
drwxr-xr-x 2 root root 4096 Apr 28 16:18 stats


From this list, a.htaccess is visible from FTP, while .htaccess is not:
http://www.pannonline.hu/gergo/ftphtaccess.jpg

What gives?

SirLancelot
28th April 2009, 18:46
Look Here:-

http://how2forge.net/perfect-server-debian-lenny-ispconfig3-p5#comment-11759

gkovacs
28th April 2009, 21:09
Thanks for the idea, but the problem is NOT CAUSED BY the DisplayDotFiles config directive of Pure-FTPD.

I have a site where I can see .htaccess files from FTP, while on another one I cannot, regardless of DisplayDotFiles setting. Any other idea?

SirLancelot
29th April 2009, 01:57
I'm not sure if I am reading your issue correctly but from you screen captures and description it looks as though you can see "a.htaccess" but not ".htaccess" of course you will see "a.htaccess" because it does not begin with a "."

gkovacs
29th April 2009, 04:47
You might want to read what I wrote again.

SirLancelot
29th April 2009, 11:08
What ftp client are you using?
Is there an option in your ftp client to show/hide hidden files?
Have you tried any other ftp clients?
This may be distribution related, what Linux Distro is your server using?
From your first post there is no indication if you have enabled the DisplayDotFiles config directive.

tebokkel
29th April 2009, 11:19
Perhaps an explicit filter on .htaccess filenames in PureFTPd?

Or perhaps a custom setting on the FTP-client? Does a local (commandline) FTP show or hide the .htaccess?

Paul

ggarcia24
1st May 2009, 03:12
I know that Filezilla (that's what it looks to me) have an option to "not list" hiddend files, I'm remembering it right now but as soon as I get home i'll post where is it ;-)