>> Why not use mod_rewrite for this? Or even plain old mod_alias. For >> instance: >> >> <Directory /www/dedasys.com/dedasys> >> Redirect permanent /articles >> http://www.welton.it/articles Redirect permanent /davidw > http://www.welton.it/davidw >> Redirect permanent /freesoftware >> http://www.welton.it/freesoftware
> The aliases are in a database. I have some plan to extend this > mechanism to some dynamical content on the website. > I don't have experience with mod_rewrite, would it help with > a database? Hrm, yeah, in that case it might be trickier. Using the 404 handler, though, is sort of abusing the system, though:-) One thing you could do is something like this: Rewrite /foo/.* to /foo.tcl?realpath, with mod_rewrite, and then have foo.tcl manage the actual lookups. >> > As a consequence the command 'makeurl' (a quite simple >> > wrapper of ap_construct_url) builds a wrong url and the >> > requests are redirected to the wrong webserver. 'ap_construct_url' >> > code is very simple too and left me clueless about the >> > reason for this. I googled this problem but found out nothing. >> >> > any idea? Is the core mishandling the error? >> >> Seems weird... Can you create a test case for it? > > It is. Do you want me to add a new test in the test suite? Yes please! > Actually it should be simple: change the port of your apache > server, add the line > I still have to test it outside of a VirtualHost > definition, that's a degree of freedom i haven't tested yet. > Anyway apache is supposed to put the right port even in the > case of a Virtual Host. It is. -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
