Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pathing Issue
Message
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Title:
Miscellaneous
Thread ID:
00696852
Message ID:
00698019
Views:
16
Rick,

We are not using a virtual directory in this case. The reverse path works for showing the graphics, but the FrontPage extensions are not working correctly, and I am not sure how to fix that. I am using expandtemplate to display the page. The page itself is very simple. If I move the dll back to the root everything works fine. I can't seem to make it work using a scriptmap. Any suggestions?

>James,
>
>Whenever you reference a URL in a specific directory it becmes the active directory. So if you ref:
>
>/cgi-bin/wc.dll?somequerystrign
>
>/cgi-bin becomes your current directory. If you now reference an image with:
>
>images/someimage.gif you're actually saying look in:
>
>/cgi-bin/images/
>
>for the image. Of course there's no image there.
>
>As Michel suggest you either have to use a more absolute URL off the root (/somvirtual/) or you have to use reverse pathing. For example if your structure is:
>
>/yourapp/
>/yourapp/images/
>yourapp/cgi-bin/
>
>You can use:
>
>../images/someimage.gif
>
>to get to the image too.
>
>If possible always use relative pathing like the latter as it makes the app more portable.
>
>Another alternative that bypasses this whole mess with cgi-bin is to use scriptmaps. Using scriptmaps it doesn't matter where the actual DLL sits and you can 'naturally' reference any links via the scriptmap in any location.
>
>
>+++ Rick ---
>
>>I created a West Wind app and am now getting ready to roll it out. I want to put my exe and wc.dll in a cgi_bin subdirectory underneath my webserserver main directory.
>>
>>c:\inetpub\wwwroot\myproject\cgi_bin
>>
>>Everthing works except it can't find the graphics. It keeps looking for the graphics directory under: c:\inetpub\wwwroot\myproject\cgi_bin\graphics. The graphics directory is c:\inetpub\wwwroot\myproject\graphics.
>>
>>Does anyone know how to resolve this issue?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform