Ok, having uploaded the files (thanks all) I now have the following
problem.
In the "/web" dir on the host I have a htaccess file with the
following:
Order allow,deny
Allow from all
AddType application/x-httpd-php3 .html
php3_include_path /web/inc
php3_auto_append_file footer.inc
php3_auto_prepend_file header.inc
What this does is treat all HTML files as PHP files, and stick a
header and footer on each. The problem is that there is a directory
"/web/stats" to which I do not have write access (ie I can't stick a
new htaccess file there) and whose content is supplied by some stats
program. When I try to view http://www.foobar.com/stats/index.html
thru my web browser, PHP (as directed in the top-level htaccess) tries
to prepend header.inc and append footer.inc. This results in garbled
output as there are now multiple <HTML>, <HEAD> and <BODY> tags, etc.
So I tried to add this in the top-level htaccess:
<Directory /web/stats>
Order allow,deny
Allow from all
php3_auto_append_file none
php3_auto_prepend_file none
</Directory>
but this gives me a 500 error when I try to view the stats?
Any ideas why this doesn't work?
Thanks
--
Matthew | When a fire starts to burn, there's a lesson you must learn,
Sammon. | something, something, then you'll see, you'll avoid
CmpSci3 | catastrophe... d'oh! -- Homer Simpson
TCD. |
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!