Re: VirtualHost, ScriptAlias, AddHandler, and relative URLs..
"Eric Covener" <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
On 9/28/06, Roger Mayes <[email protected]> wrote: > I'm returning a page in response to a request for > 'http://my.host.com/mymodule'. > That page requests 'css/mystyles.css'. > So I should get a request for > 'http://my.host.com/mymodule/css/mystyles.css'. How do you expect the browser to know /mymodule represents something akin to a directory? From browser standpoint this is no different than referencing "index.jpg" from /index.html -- you wouldn't expect to see on the wire a request for /index.html/index.jpg. > But I'm not: I'm > getting a request for 'http://my.host.com/css/mystyles.css'. Why is > that? Maybe you need to make sure your server sends a redirect to fixup " /mymodule" and redirect to "/mymodule/" ? (emphasis on the second slash). (rewrite probably not sufficient because you need the browser to do the right thing with relative paths) See mod_dir / DirectorySlash for how things work for static files int he fs. -- Eric Covener [email protected] ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/