Help - Search - Members - Calendar
Full Version: .htaccess access
The Planet Forums > Control Panels > Plesk
zenhex
Can I set the .htaccess to show in FTP with plesk, or do I have to set that in Linux?
okita1
i think i understand what you mean, ... you can make the .htaccess file in notepad or whatever then upload it via ftp it should work fine
zenhex
QUOTE
Originally posted by okita1
i think i understand what you mean, ... you can make the .htaccess file in notepad or whatever then upload it via ftp it should work fine


Oh, I see. So, you are saying there is no .htaccess file there by default. You have to make one if you want one.

I thought they were not being shown to FTP but existed hidden in the folder.
LighthousePoint
FTP will hide .htaccess files -- however, no .htaccess file exists by default.
zenhex
What's the best way to see a hidden .htaccess file?
GraphicsGuy
Use Putty or your favorite SSH client to go to the folder and then type:

pico -w .htaccess

If there is one, you will see it. If there isn't you can now create one.

(You could also use VI or whatever your favorite command line text editor is rather than pico.)
konasam
You can force the server's proFTPd to always display hidden files for users who FTP in.

edit /etc/proftpd.conf

and add the line :

LsDefaultOptions "-a"

(put it under DefaultServer on)


Aloha,
Sam


QUOTE
Originally posted by zenhex
What's the best way to see a hidden .htaccess file?
zenhex
QUOTE
Originally posted by konasam
You can force the server's proFTPd to always display hidden files for users who FTP in.

edit /etc/proftpd.conf

and add the line  :

LsDefaultOptions "-a"

(put it under DefaultServer       on)


Aloha,
Sam


This didn't work. Do I have to restart?


BTW, I tried uploading an .htaccess file into a 'harmless' folder and it wouldn't show in my FTP client.
konasam
You shouldn't have to restart .. I just tried it on my end and it worked ok .. here's the top part of /etc/proftpd.conf


ServerName "ProFTPD"
ServerType inetd
ServerType inetd
DefaultServer on
LsDefaultOptions "-a"


(there's a tab between LsDefaultOptions and "-a")

Sam
zenhex
Thankyou, konasam!

It worked.

Is there any type of security vulnerability because of this?
konasam
Yes, more customers will email you asking what all those files are that begin with a dot (.) and the security of your sanity will be compromised :-)

Sam


QUOTE
Originally posted by zenhex
Thankyou, konasam!

It worked.

Is there any type of security vulnerability because of this?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.