FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Coding/Development
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-07-2000, 09:23 AM   Postid: 21854
pdm
Site Owner

Forum Notability:
26 pts: User-friendly
[Post Feedback]
 
Join Date: Nov 2000
Posts: 12
Ssi & Ssl

Hello,

I'm trying to use includes on a form on our secure site, but they aren't working. Does the secure server have SSI enabled? The code had worked fine on a previous setup; here's an example:



<select name="specialty"><!--#include virtual="degreecodes.inc"--></select></p>

I tried "virtual" and "file" to see if that made a difference, but neither worked. The file is an .shtml file. Any ideas??

Thanks!

Paula
pdm is offline   Reply With Quote
Old 11-07-2000, 03:10 PM   Postid: 21855
Keiichi
Visitor

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Aug 2000
Location: in the US...
Posts: 122
for that one, you use 'file' instead of 'virtual'
Have you tried to see if SSI worked on your server?

And also, some servers require a space before the '-->' to work. like this:
<!--#include file="degreecodes.inc" -->
Keiichi is offline   Reply With Quote
Old 11-07-2000, 03:36 PM   Postid: 21856
pdm
Site Owner

Forum Notability:
26 pts: User-friendly
[Post Feedback]
 
Join Date: Nov 2000
Posts: 12
Hmmm, I tried adding the space and using file, but still no luck. Thanks for the ideas tho! Anyone else have any experience with this? 
pdm is offline   Reply With Quote
Old 11-07-2000, 10:05 PM   Postid: 21857
 Terra
CTO FutureQuest, Inc.
 
Terra's Avatar
 
Join Date: Jun 1998
Location: Z'ha'dum
Posts: 7,672
Please identify your domain so that I can look closer?

--
Terra
sysAdmin
FutureQuest
Terra is offline   Reply With Quote
Old 11-07-2000, 10:19 PM   Postid: 21858
pdm
Site Owner

Forum Notability:
26 pts: User-friendly
[Post Feedback]
 
Join Date: Nov 2000
Posts: 12
Thanks for taking a look. It's iaglr.org

In particular, the following file:

https://xiaglr.merchantquest.net/members/renewal.shtml which calls the SSI files degreecodes.inc once and interestcodes.inc three times.

For now I hardcoded in the text of the includes in https://xiaglr.merchantquest.net/members/renewal.html so that we could get it to work, but the includes are for really long pick lists (103 items. gack!) so wanted to shorten the main page by using the includes.
pdm is offline   Reply With Quote
Old 11-07-2000, 11:08 PM   Postid: 21859
 Terra
CTO FutureQuest, Inc.
 
Terra's Avatar
 
Join Date: Jun 1998
Location: Z'ha'dum
Posts: 7,672
Confirmed, with notation...

SSI is in fact working, but including a file/virtual is not...

Tracking down the config issue now...  Most likely this is a issue that snuck in during an upgrade...

--
Terra
sysAdmin
FutureQuest
Terra is offline   Reply With Quote
Old 11-07-2000, 11:33 PM   Postid: 21860
 Terra
CTO FutureQuest, Inc.
 
Terra's Avatar
 
Join Date: Jun 1998
Location: Z'ha'dum
Posts: 7,672
It just dawned on me what is going on... A case of looking at the problem, instead of looking around the problem...

What you are running into is a new Security Control that was put into place for the PHP users...

<Files "*.inc">
Order allow,deny
Deny from all
</Files>

That is the Apache config culprit...

Many pre-canned PHP scripts use 'filename.inc' to hold sensitive information like MySQL login information with passwords...

This denies access to anyone trying to view this file directly, as was added into the SSL core for obvious e-commerce reasons...

PHP require() does not depend on Apache to deliver the file, rather it goes directly to the file and reads it in...

However, SSI "include virtual=file.inc" depends on a sub-request in Apache to deliver the file... That sub-request is being denied by the above <Files> directive...

The solution to your problem is to _not_ use the '.inc' extension for include files... Once you change this, your includes will once again start working as desired...

Hope this clears the confusion...

--
Terra
--Consider it a _feature_ and not a bug--
FutureQuest
Terra is offline   Reply With Quote
Old 11-08-2000, 07:37 AM   Postid: 21861
pdm
Site Owner

Forum Notability:
26 pts: User-friendly
[Post Feedback]
 
Join Date: Nov 2000
Posts: 12
Terra,

Thanks for tracking down the problem. Works like a charm! And a nice simple fix, too Always the best kind. BTW, we recently switched from another host, and I cannot begin to tell you the difference in customer support. The FQ team is great, and I'm so happy we made the move!

Paula
pdm is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 04:43 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.