Re: [users@httpd] .htaccess & php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



well, i tried to move .htaccess to /var/www/html/ folder and my website it not accessible at all (or any sub folders), even .htaccess contains nothing in it. It seems to me that wherever I place .htaccess file, it prevents the entire directory and sub-directory from user access. I think there is conflict settings somewhere in Apache, but i don't know where to start. Can somebody point me to the right direction? I'm newbie to linux.


Thanks,
T. Hiep

On Thu, 11 Aug 2005, James Carr wrote:

I think what your doing is completely preventing people from accessing
images at all. They need to access images to see them on the web
pages. You may try either placing an index file in the images
directory, or in your .htaccess specify to use some other page as the
directory index.

Hope that helps,
JC


On 8/11/05, Hiep Nguyen <hiep@xxxxxxxxxx> wrote:
Hi everyone,

I have this problem with my web server.

I'm running mysql, apache, and php that come with fedora 4.  I want to
place .htaccess file in /var/www/html/images/ folder to prevent users to
see
all images in this dictory, but this causes my web page unable to display
any images on the web server.

Here is content of .htaccess file:

IndexIgnore *

I even tried:
IndexIgnore *.gif *.jpg

but it's not working.  Anybody got any idea how to fix this?

Here is the last error in /etc/httpd/logs/error_log
[Thu Aug 11 16:37:37 2005] [alert] [client 10.0.0.128]
/var/www/html/images/.htaccess: IndexIgnore not allowed here, referer:
http://10.0.0.120/company/manual.php

By the way, I already enable .htaccess in httpd.conf

Thank you so much,
T. Hiep

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



--


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux