View Full Version : html in cgi-bin
gwlubin
03-08-1999, 08:18 AM
are we able to put html files in our cgi-bins.
I can can see this file with my ftp but when I try and view it from a browser I get::
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@loobie.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
Premature end of script headers: /big/dom/xloobie/cgi-bin/index/index.html
--------------------------------------------------------------------------------
Apache/1.3.3 Server at www.loobie.com Port 80
hearts
03-08-1999, 11:27 AM
graham.. forgive me on guessing.. but i never pretend to know everything. I feel confident that you cannot do that, because your cgi-bin is not in your www dir. Anything above your www is not viewable via the web, so you will need to move that html file to your www like this:
/big/dom/xloobie/www/index/index.html
------------------
~~~ hearts ~~~
Heartistic Designs www.heartisticdesigns.com (http://www.heartisticdesigns.com)
Hearts www.heartsangels.com/hearts (http://www.heartsangels.com/hearts)
Heartistic Wishes www.heartsweb.com/heartisticwishes (http://www.heartsweb.com/heartisticwishes)
Justin
03-08-1999, 11:34 AM
Actually, the reason you cannot is that anything in the cgi-bin is treated as a script. That's why it gave you a 500 error - the "script" isn't exactly executable...
It is accessible from the web, as it is an aliased directory. However, only scripts can be run from it - it's a ScriptAlias. You could alias any directory on the server to be accessible from the web even if it's below the www root, though, but that's a different subject all together.
Why would you want to run HTML from the cgi-bin, anyway?
Oh, and there are ways to make that possible - I don't think it can be done with .htaccess, but I know it can be done.
On FQ, anything with any extention in the cgi-bin is treated as a script. Some servers require a .pl or .cgi or something else, and anything else is treated normally, but that's not very secure. You don't want ppl to have the ability to see inside your cgi-bin from the web, anyway http://www.aota.net/ubb/wink.gif
------------------
Justin Nelson, SFE Software
www.vdj.net (http://www.vdj.net)
gwlubin
03-08-1999, 11:49 AM
hearts, justin,
what can I say?
you are the people that make FQuest the place that it is.
keep on keeping on!
/g
vBulletin® v3.6.8, Copyright ©2000-2013, Jelsoft Enterprises Ltd.