alexfung Posted March 17, 2004 Posted March 17, 2004 I am new to web programming. And I can't make these options work. Not even make them "work as intended". <Location /test/alex.txt> SetHandler application/x-httpd-php </Location> gives me a 500 Internal Server Error. Same when without the SetHandler directive. What's wrong with my <location>? Changing it to Files worked: <Files alex.txt> SetHandler application/x-httpd-php </Files> but why the original one crashed? Similarly: ExpiresActive On ExpiresByType text/xml A3600 ExpiresByType text/html A300 nearly copied and pasted from apache doc. Placed in .htaccess, any of these lines crashes any file access. Is it because the module is not loaded with the TCH apache? Finally the XBitHack. I added XBitHack Full I traced the http headers and can't see any effect. I turned several .htm files to 654, and then 755. I can't see any Modified tag generated. Why? Thanks for reading. Quote
a__kc Posted January 15, 2005 Posted January 15, 2005 (edited) Finally the XBitHack. I addedXBitHack Full I traced the http headers and can't see any effect. I turned several .htm files to 654, and then 755. I can't see any Modified tag generated. Why? Maybe it's a server-level configuration? Frankly I know little about Apache directives (just enough RewriteRule to get by). It would be useful, though, to be able to make some HTML files behave like .shtml. Otherwise I'd need to change filenames and set up redirects. Update: "XBitHack on" works fine for me (hurray!!). This is a lot better than forcing all .html files to be parsed Edited January 15, 2005 by a__kc Quote
TCH-Don Posted January 15, 2005 Posted January 15, 2005 While I dissagree about the performance hit by parsing all files for SSI or php Years ago this was an issue with single processors and less ram but with todays quad 2 gig+ processors and gigabytes of ram you will be hard pressed to find a performance hit. So I am not sure its worth the trouble, but I did find this CHMOD the page files, and only the page files, that you want parsed (i.e. that will contain SSI directives) to 744 (instead of 644). This is what tells the server to parse the page. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.