Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSI code in cgi-bin files 4

Status
Not open for further replies.

JennyW

Technical User
Joined
Mar 1, 2001
Messages
323
Location
CA
Hi!

Is it possible to use SSI code in .txt files that are inside the cgi-bin?

I'm having a lot of problems doing this.
I use the following code without success:

<!--#include virtual=&quot;../scripts/ssi/template.txt&quot; -->

Thanks,
Jenny
 
Yes.

What server are you hosted on. Some servers will not allow certain functions to be carried out on files within the cgi-bin. I have seen servers that will not let you browse to a html file with in the cgi-bin. This situation is host specific I am affraid. You host may be of more value in answering this question.
 
in the httpd.conf:
<Directory /bla/bla/bla/cgi-bin>
...
Options Includes
...
</Directory>
 
Hi,

What's a httpd.conf: file?

Thanks,
Jenny :-)
 
httpd.conf is the main configuration file for apache servers. //Daniel
 
httpd.conf only available to access if you own your server, have a dedicated server... if you run on virtual server, you will never have access to it...

If you have DSL or cable, turn your comp into a server by download apache and install it... Play with httpd.conf and you will know

just a suggestion
 
Hi,

Yeah, I'm not really interested in turning my PC in to a server. I just want to have my site up on a hosts server.

I still can't seem to figure out how to use SSI from my cgi-bin to call .txt files from outside of my cgi-bin.

Does anyone know?

Thanks for reading,
Jenny :-)
 
you may ask admin of your server to configure it for you.

2 cgiNewbie:
there is Apache ver's in which all virtual servers has own httpd.conf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top