LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Apache 2.0.52 and .htaccess (https://www.linuxquestions.org/questions/linux-general-1/apache-2-0-52-and-htaccess-446058/)

ZC1 05-18-2006 09:08 AM

Apache 2.0.52 and .htaccess
 
Hi,

I am using CentOS 4.3 and Apache 2.0.52 setup but when I try and setup a .htaccess with Options +Indexes it does not show the Directory listings, so I am thinking .htaccess files are not being used.

Could someone tell me how to get .htaccess files to work ?

--

Also the .htaccess files are all hiding and can not be seen by the user in FTP, nor by root by the command line, just like it is not there, but when

logged in as root I type nano .htaccess in the folder, it loads the file, seems a bit strange to me

Anyone has any idea how to fix it so you can see them, via root and ftp.

The only time I can see .htaccess files is, when I type: dir .htaccess -ls

I am not sure what sshd I am using, but I am using Pure-FTP for an ftp server

Regards,
Garry

bathory 05-18-2006 09:32 AM

Quote:

Could someone tell me how to get .htaccess files to work ?
You should change the AllowOveride to:
Code:

AllowOverride Options
Quote:

Anyone has any idea how to fix it so you can see them, via root and ftp.
That's what the dot in front of the file is doing (makes the file hidden). It's not good to view these files from ftp

ZC1 05-19-2006 12:19 PM

Hi,

Thank you for your reply :)

How do I see .htaccess etc... and .FOLDERS in root (if it is possible) without having to do dir -a all the time, on the command line ?

Regards.
Garry

ZC1 05-20-2006 10:38 AM

Hi,

I have worked it out, how to see .FILES and .FOLDERS in root.
I add alias dir="dir -a" to .bash_profile and re-connected to SSH.

Regards,
Garry


All times are GMT -5. The time now is 11:20 AM.