You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andre Rodrigues <ac...@yahoo.com.br> on 2009/10/13 14:35:42 UTC

[users@httpd] virtualhost doubt

Hi,

I´ve configured a virtualhost like this:

<VirtualHost *:443>

ServerName portal

# SSL config

....

JkMount /app dmb

JkMount /app2 dmb

Errorlog /var/log/apache2/app-error_log

</VirtualHost>

If user types http://portal/app the Errorlog would be "Errorlog /var/log/apache2/app-error_log".
OR
If user type http://portal/app2 the Errorlog would be "Errorlog /var/log/apache2/app2-error_log".


How to config the Errorlog directive in order to have application´s specific logs?


Thanks,
André



      

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] virtualhost doubt

Posted by Andre Rodrigues <ac...@yahoo.com.br>.
Hi,

But if I create a second virtualhost, for example portal2, the user oughts to type https://portal2/app and https://portal2/app2.

Is there a way to serve many apps below a virtualhost and do the access log per application?

 Thanks,
André



----- Original Message ----
From: Devraj Mukherjee <de...@gmail.com>
To: users@httpd.apache.org
Sent: Wed, October 14, 2009 9:34:24 PM
Subject: Re: [users@httpd] virtualhost doubt

Hi Andre,

I believe this would be easier handled at the application server /
application level than trying to get Apache to direct error logs based
on URLs.

Unless of course you can create two VirualHost entries in which case
you can redirect the logs to different locations.

On Tue, Oct 13, 2009 at 11:35 PM, Andre Rodrigues
<ac...@yahoo.com.br> wrote:
> Hi,
>
> I´ve configured a virtualhost like this:
>
> <VirtualHost *:443>
>
> ServerName portal
>
> # SSL config
>
> ....
>
> JkMount /app dmb
>
> JkMount /app2 dmb
>
> Errorlog /var/log/apache2/app-error_log
>
> </VirtualHost>
>
> If user types http://portal/app the Errorlog would be "Errorlog /var/log/apache2/app-error_log".
> OR
> If user type http://portal/app2 the Errorlog would be "Errorlog /var/log/apache2/app2-error_log".
>
>
> How to config the Errorlog directive in order to have application´s specific logs?
>
>
> Thanks,
> André
>
>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


      

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] virtualhost doubt

Posted by Devraj Mukherjee <de...@gmail.com>.
Hi Andre,

I believe this would be easier handled at the application server /
application level than trying to get Apache to direct error logs based
on URLs.

Unless of course you can create two VirualHost entries in which case
you can redirect the logs to different locations.

On Tue, Oct 13, 2009 at 11:35 PM, Andre Rodrigues
<ac...@yahoo.com.br> wrote:
> Hi,
>
> I´ve configured a virtualhost like this:
>
> <VirtualHost *:443>
>
> ServerName portal
>
> # SSL config
>
> ....
>
> JkMount /app dmb
>
> JkMount /app2 dmb
>
> Errorlog /var/log/apache2/app-error_log
>
> </VirtualHost>
>
> If user types http://portal/app the Errorlog would be "Errorlog /var/log/apache2/app-error_log".
> OR
> If user type http://portal/app2 the Errorlog would be "Errorlog /var/log/apache2/app2-error_log".
>
>
> How to config the Errorlog directive in order to have application´s specific logs?
>
>
> Thanks,
> André
>
>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org