Find the answer to your Linux question:
Results 1 to 2 of 2
I've got the following line in /etc/apache2/httpd.conf <FilesMatch "^\.ht"> Order allow,deny Deny from all </FilesMatch> but if I create a file called /var/www/htdocs/test.htaccess and then browse to http://mysite/test.htaccess , it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2006
    Posts
    123

    help! able to view htaccess file!


    I've got the following line in /etc/apache2/httpd.conf

    <FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    </FilesMatch>


    but if I create a file called /var/www/htdocs/test.htaccess and then browse to http://mysite/test.htaccess, it serves up the content of it!

    How can i get it to work correctly? This is worrying.
    I am using gentoo.

  2. #2
    Linux Newbie
    Join Date
    Nov 2006
    Posts
    123
    edit: actually don't worry about it i've realised that it has to start with a dot rather than just have that as the extension.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •