Forum Moderators: phranque
It appears that apache is
having the wrong handler for that particular
file.
When you try to access it, the server
tries to execute it instead of outputing it
(403 Forbidden. error_log shows:
access to
/home/httpd/vhosts/terragalleria.com/httpdocs/parks/np-region.plateau.all.html failed
for 130.107.65.15, reason: file permissions deny server execution).
What is strange is that this only one of two
files for which this problem occurs, the
other being np-region.plateau.all.html. All the
files have the same permissions:
[terragalleria@ns parks]$ ll np-region.*
-rw-r--r-- 1 terragal psacln 6612 Aug 25 14:27 np-region.alaska.all.html
-rw-r--r-- 1 terragal psacln 7104 Aug 25 14:27 np-region.alaska.html
-rw-r--r-- 1 terragal psacln 5777 Aug 25 14:27 np-region.desert.all.html
-rw-r--r-- 1 terragal psacln 6285 Aug 25 14:27 np-region.desert.html
-rw-r--r-- 1 terragal psacln 193 Aug 25 14:27 np-region.hardwood.html
-rw-r--r-- 1 terragal psacln 6692 Aug 25 14:27 np-region.hardwoods.all.html
-rw-r--r-- 1 terragal psacln 7184 Aug 25 14:27 np-region.hardwoods.html
-rw-r--r-- 1 terragal psacln 7634 Aug 25 14:27 np-region.pacific.all.html
-rw-r--r-- 1 terragal psacln 8110 Aug 25 14:27 np-region.pacific.html
-rw-r--r-- 1 terragal psacln 7617 Aug 25 17:04 np-region.plateau.all.html
-rw-r--r-- 1 terragal psacln 8093 Aug 25 17:04 np-region.plateau.html
-rw-r--r-- 1 terragal psacln 6695 Aug 25 14:27 np-region.rockies.all.html
-rw-r--r-- 1 terragal psacln 7187 Aug 25 14:27 np-region.rockies.html
-rw-r--r-- 1 terragal psacln 219 Aug 25 14:27 np-region.rocky.html
-rw-r--r-- 1 terragal psacln 6213 Aug 25 14:27 np-region.tropics.all.html
-rw-r--r-- 1 terragal psacln 6713 Aug 25 14:27 np-region.tropics.html
I have tried:
delete the files and re-rcp them,
restart apache,
chmod a+x the files
which did not solve the problem.
$ cp np-region.plateau.html np-region.plateau2.html
$ cat > .htaccess
RedirectPermanent /parks/np-region.plateau.html myurl/np-region.plateau2.html
did not work, but:
$ cp np-region.plateau.html plateau.html
$ cat > .htaccess
RedirectPermanent /parks/np-region.plateau.html myurl/plateau.html
did work.
This is really puzzling. Any ideas?
Thanks,
Tuan.
Thanks,