cancel
Showing results for 
Search instead for 
Did you mean: 

Include Virtual from the HomePage Server

OldDuffer
Dabbler
Posts: 23
Registered: 31-07-2007

Include Virtual from the HomePage Server

Object of the excercise:-
To call a simple counter cgi script from a page on the homepages server to a cgi script that is located in the cgi-bin on crofters. The object is to display a page count.

Script used in shtml page:-
<!--#include virtual="/cgi-bin/myfolder/myfile.cgi"-->

Running a simple test page (test.shtml) with several examples from the root directory of crofters, the following work ok:-
<!--#include virtual="cgi-bin/myfolder/myfile.cgi"-->
<!--#include virtual="/cgi-bin/myfolder/myfile.cgi"-->
<!--#exec cgi="cgi-bin/myfolder/myfile.cgi"-->
<!--#exec cgi="/cgi-bin/myfolder/myfile.cgi"-->

The following do NOT work:-
<!--#include virtual="http://cgi.username.force9.co.uk/cgi-bin/myfolder/myfile.cgi"-->
<!--#include virtual="http://www.username.f9.co.uk/cgi-bin/myfolder/myfile.cgi"-->
<!--#include virtual="http://cgi.username.co.uk/cgi-bin/myfolder/myfile.cgi"-->
<!--#include virtual="http://www.username.co.uk/cgi-bin/myfolder/myfile.cgi"-->
<!--#exec cgi="http://cgi.username.force9.co.uk/cgi-bin/myfolder/myfile.cgi"-->
<!--#exec cgi="http://www.username.f9.co.uk/cgi-bin/myfolder/myfile.cgi"-->
<!--#exec cgi="http://cgi.username.co.uk/cgi-bin/myfolder/myfile.cgi"-->
<!--#exec cgi="http://www.username.co.uk/cgi-bin/myfolder/myfile.cgi"-->


Running the same test page from the homepages server NONE work.

I have created an .htaccess file with:-
AddType text/html .shtml
AddHandler server-parsed .shtml

Adding the following line gives a server error:-
Options Indexes FollowSymLinks Includes
(extracted from forum tutorials & FAQs, topic 1844, General: .htaccess)

How can this be achieved. I do not wish to run my site from the CGI server as my search engine (php on crofters) fails, for some reason, to spider any html files on the CGI server, even with the domain records pointed to the CGI server.

Please help. I have imported a domain to F9 and ever since I have lost functionality due to this split of servers.
4 REPLIES
N/A

Include Virtual from the HomePage Server

I always found my scripts worked with the include virtual path, but instead of placing the full script address, only ../. e.g. For a file kept in cgi-bin/scripts to work in a shtml page outside the cgi-bin would be <!--#include virtual="../../../script.pl"--> (I think, or is that one too many dots and slashes?).

The test (shtml?) page will not work on the homepages server, it has to be on the cgi server.

Your search engine is also unlikely to work on the homepages server because it needs the ability to r-w-x which is not an option on that server (as far as I am aware). Your best bet is to place it on the cgi server (I know you said you don't want to) and then maybe you could ask the question about indexing in the plusnet.www.cgi newsgroup. They are all fairly human (and helpful even though they are PN and not F9). Soem of the file paths will be different but i'm sure we can all help you with them.

Regards

Mark
OldDuffer
Dabbler
Posts: 23
Registered: 31-07-2007

Include Virtual from the HomePage Server

Mark - thanks for your deliberations.

Let me recap the aims:-
All html type files are to reside on the homepages server, the cgi and php files on crofters.
The search engine (php & sql) resides on crofters.
The search engine is required to spider and index the html type files on the homepage server.
Selected shtml type files require a text counter using 'include virtual'.

What is happening:-
The shtml files counter does not work despite the fact that in Ian Wild's reply dated 22nd July 2003 in Force9 Forum Index -> CGI Forum -> SSI on homepages server -> he states that you can already use SSI on the homepages server.

I agree that the html type files could be hosted on crofters but that creates another problem as the search engine will not produce results. I have another domain which is pointed to crofters, other people can use the spider search engine on this domain from theirs but I cannot. I have raised a ticket on this with F9.

So at this moment I either have the search engine or page counting but not both.
Are Ian's assurances correct or missleading, if they are incorrect then they should be removed.
What is neaded is a difinitave article with examples but aimed at duffers like me.

Regards
Bob Finch
N/A

Include Virtual from the HomePage Server

Quote
What is happening:-
The shtml files counter does not work despite the fact that in Ian Wild's reply dated 22nd July 2003 in Force9 Forum Index -> CGI Forum -> SSI on homepages server -> he states that you can already use SSI on the homepages server.


I hadn't realised that, I was always lead to believe it was not possible. Sorry.

Mark
N/A

Include Virtual from the HomePage Server

Mark

I was hoping that someone in F9 would pick this up and deliberate.

This SSI thing is an example of conflicting information available, it can only be corrected by a difinative answer from F9 (with tutorial for idiots like me!).

I seem to spend lots of time searching and getting nowhere.

p.s. My other problem has now been escalated higher up the F9 chain (twice today).

I hope I can get an answer otherwise I will be forced to search elswhere for hosting for my .org pages.

ttfn Bob