What's xbithack?
Hello,
What is xbithack and where can I get it?
Thanks
Boris
------------------
-------------------------
Echo Web: The Web Developer's Starting Point
http://echoweb.newn.com
http://EchoWebHQ.com
WIN cash, free web hosting and up to 50,000 button exposures at http://echodev.com/contest/ in less than 60 seconds. EVERYONE IS A WINNER (seriously)!
Maverick posted this at 21:42 — 28th February 2000.
They have: 334 posts
Joined: Dec 1999
It's not a file, it an .htaccess modification for Apache webservers.
Just add the following line to your .htacess file:
XBitHack on
echoweb posted this at 21:56 — 28th February 2000.
They have: 52 posts
Joined: Nov 1999
All right, thanks
In my previous post, somebody told me that using XBitHack wil allow me to use ssi in .cgi files...
What do I do now?
Thanks
Boris
p.s. Sorry for asking so many questions
http://EchoWebHQ.com
WIN cash, free web hosting and up to 50,000 button exposures at http://echodev.com/contest/ in less than 60 seconds. EVERYONE IS A WINNER (seriously)!
Maverick posted this at 22:16 — 28th February 2000.
They have: 334 posts
Joined: Dec 1999
I don't think it was explained right. XBitHack changes how the server views and handles the CGI output, but it DOES NOT allow it to be parsed. So you can't use XBitHack to do things like includes and echoes for time/date
From the apache.org FAQ
This is a feature The Apache Group hopes to add in the next major release after 1.3.
Personally, I'm hoping this does get implemented in Apache 2.x It would be really useful for those of us that rely on includes for site maintenence. It would mean the end of editing all the CGI output template files.
[This message has been edited by Maverick (edited 28 February 2000).]
joshuac posted this at 16:38 — 29th February 2000.
They have: 12 posts
Joined: Feb 2000
So what exactly does XBitHack do? I had read somewhere that it did in fact cause CGI output to be parsed for SSI.
------------------
"The way that can be told is not the eternal,
it cannot be defined or explained,
it can only be experienced..." Ashida Kim
"The way that can be told is not the eternal,
it cannot be defined or explained,
it can only be experienced..." Ashida Kim
Maverick posted this at 21:06 — 29th February 2000.
They have: 334 posts
Joined: Dec 1999
Maybe one of the Apache gurus can clear this up or explain it better in case I have it wrong, but here goes.....
By default, the server doesn't allow caching of parsed documents. Since it can't be sure if the output of the parsing will be the same as the last time a client viewed that document (as in the case of a simple include) or if the parsing output will differ (like adding a date/time stamp), the default is no caching. That prevents the server from delivering an outdated version of the file rather than the most current version.
XBitHack sort of works around that. It tells the server to treat certain documents, like CGI output, as if they were in fact SSI. But that's generally only for cache/no-cache purposes as far as I can tell. Rest assured though, even if the server treats the CGI output as a parsable document, it WILL NOT actually process the SSI directives. I've tested that myself in myriad ways and including SSI tags like a simle <!--#echo var="DATE_LOCAL" --> in CGI output will cause server errors with XBitHack enabled.
joshuac posted this at 14:54 — 1st March 2000.
They have: 12 posts
Joined: Feb 2000
Here is what the Apache documentation says about XBitHack:
"The way that can be told is not the eternal,
it cannot be defined or explained,
it can only be experienced..." Ashida Kim
Suzanne posted this at 20:17 — 1st March 2000.
She has: 5,507 posts
Joined: Feb 2000
http://www.bignosebird.com/sdocs/enable.shtml
Suzanne
------------------
Zero Cattle
Suzanne
Tables DeMystified
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.