VirtualHost, ScriptAlias, AddHandler, and relative URLs..

"Roger Mayes" <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
I have a virtual host set up, I've used ScriptAlias and AddHandler to
get it to run my main script for any request sent to the virtual host.
(I ScriptAlias'd / to my .fcgi script)  My main script then looks at the
request information, and routes the request to a handler in a module, or
maps it to a static file, etc.  But I have a problem:  Within my script,
how do I tell if a request is relative?  The REQUEST_URI always has a
leading /, whether the url requested by the page has one in it or not.
The HTTP_REFERER is the same either way as well.  In fact, everything is
the same either way, so far as I can see.  Is there any way to tell?  

If the page returned when http://my.host.com/moduleA is requested asks
for css/mystyles.css, the request uri is /css/mystyles.css.  (It puts in
a leading slash whether url the page asked for has one or not.)  The
thing is, I want to map /css/mystyles.css to /myhost/htdocs/css/mystles,
not to /myhost/moduleA/htdocs/css/styles.  But I want to map
css/mystles.css to the later.  But I have no way to tell which of the
two was requested.

Any help?

Roger

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.