PDA

View Full Version : SSI and subdomain



b
January 3rd, 2001, 00:48
as far as know SSI work on one server and it does not work for other servers. now i only have one server
that has one domain name only mysite.com. i created a subdomain called something.mydomain.com which points to
http://www.mydomain.com/something/index.shtml
i have an SSI code there for banner advertisment
using this code <!--# exec cgi="/spon/ads.pl"-->
when i go to http://www.mydomain.com/something/index.shtml
the code work fine and i can see the banner but when i go to
something.mydomain.com/index.shtml
it does not work and i get an error. so what's teh code should like <!--# exec cgi="/path/to/spon/ads.pl"-->?
or <!--# exec cgi="http://www.mydomain.com/spon/ads.pl"-->?
i tried both of then and neither worked. what does work?

neon
January 3rd, 2001, 01:16
Try <!--#include virtual="/path/to/spon/ads.pl"--> also calling your subdomain with something.mydomain.com is the same as something.mydomain.com/index.shtml so just try calling it without the /index.shtml part. Hope that works out for ya and good luck.

kyle
January 3rd, 2001, 15:36
well,, what is happening is that the server is probably think that when you type something.mysite.com/index.htm and have for your ad "/path/to/ad" is that it is under the sub and looking for that and not forwarding it,, you whould probably use "http://www.mysite.com/path/to/ads"