Re: Virtual host with mod_perl

2008-03-28 Thread Valerio
Hi Torsten, if my page contains relative paths (for example for images), I suppose that I have to set document root and return DECLINED. It is correct? It seems to work using this solution thank you Valerio 2008/3/28, Torsten Foertsch <[EMAIL PROTECTED]>: > On Fri 28 Mar 2008, Valerio wrote:

Re: Virtual host with mod_perl

2008-03-28 Thread Torsten Foertsch
On Fri 28 Mar 2008, Valerio wrote: > I set both document_root and filename: can I set just only the > filename or the document-root or I have to set both them? filename is just enough. You need to set docroot only if you have CGI scripts or similar that use it. You can also set only docroot and r

Re: Virtual host with mod_perl

2008-03-28 Thread Valerio
Hi all, thank you so much for you help :) I will try to use other solutions a part from mod_perl (mod_vhost_alias for example) but I managed to do quite what I want by this way: package My::Trans; use Apache2::Const -compile => qw(OK DECLINED); use DBI; use Data

Re: Virtual host with mod_perl (off-topic)

2008-03-28 Thread Ryan Gies
Ahem, sorry folks about the HTML email Ryan Gies wrote: I'm curious, how would this be possible with mod_perl? The below will fail as: $r->add_config() has failed: and when $r->add_config is changed to $r->server->add_config it will fail as: Can't run '$s->add_config' after server startup

Re: Virtual host with mod_perl

2008-03-28 Thread Perrin Harkins
On Fri, Mar 28, 2008 at 11:36 AM, Ryan Gies <[EMAIL PROTECTED]> wrote: > I'm curious, how would this be possible with mod_perl? I'd probably use mod_vhost_alias and make a mod_perl handler that just checks whether the current IP or hostname is legit. - Perrin

Re: Virtual host with mod_perl

2008-03-28 Thread Ryan Gies
I'm curious, how would this be possible with mod_perl?  The below will fail as: $r->add_config() has failed: and when $r->add_config is changed to $r->server->add_config it will fail as: Can't run '$s->add_config' after server startup In /etc/hosts 127.0.0.1 local.example.com In httpd.con

Re: Virtual host with mod_perl

2008-03-28 Thread Perrin Harkins
On Fri, Mar 28, 2008 at 8:30 AM, Valerio <[EMAIL PROTECTED]> wrote: > Instead I need a solution that allow adding a vhost to the database > without need of restarting apache. This is not usually done with mod_perl because there are lighter-weight solutions available. There's some info on vhosts

Re: Virtual host with mod_perl

2008-03-28 Thread Valerio
Hi all, reading along internet the huge amount of docs found about mod_perl and mass hosting, I didn't find examples or solutions for what I am trying to do: I found the way to realize a dynamic vhost conf file, but I understood that this conf will be generated during startup. Instead I need a sol

Re: Virtual host with mod_perl

2008-03-21 Thread Valerio
I will check the books you have suggested. :-) Thanks a lot Valerio 2008/3/21, André Warnier <[EMAIL PROTECTED]>: > I believe I saw an example of just that kind of stuff in one of the > books about Apache and/or mod_perl. > Maybe you want to check "the Mod_perl Developers Cookbook" or "Practic

Re: Virtual host with mod_perl

2008-03-21 Thread André Warnier
I believe I saw an example of just that kind of stuff in one of the books about Apache and/or mod_perl. Maybe you want to check "the Mod_perl Developers Cookbook" or "Practical Mod_perl". I don't have them with me right now, so I cannot tell you which one for sure. They are excellent books any

Re: Virtual host with mod_perl

2008-03-21 Thread Valerio
2008/3/20, Roberto C. Sánchez <[EMAIL PROTECTED]>: > On Thu, Mar 20, 2008 at 06:50:55PM +0100, Valerio wrote: > > Hi all, > > > > I am new of this mailing list. > > I spent the last 3 days studying mod_perl and apache: I am trying to > > configure dynamic virtual hosts on apache. > > I need t

Re: Virtual host with mod_perl

2008-03-20 Thread Roberto C . Sánchez
On Thu, Mar 20, 2008 at 06:50:55PM +0100, Valerio wrote: > Hi all, > > I am new of this mailing list. > I spent the last 3 days studying mod_perl and apache: I am trying to > configure dynamic virtual hosts on apache. > I need to query a db to get the real filesystem location of a virtual > server

Virtual host with mod_perl

2008-03-20 Thread Valerio
Hi all, I am new of this mailing list. I spent the last 3 days studying mod_perl and apache: I am trying to configure dynamic virtual hosts on apache. I need to query a db to get the real filesystem location of a virtual server hosted. (I query the db using the requested hostname) I have configur