httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Rectanus" <brect...@gmail.com>
Subject Re: [users@httpd] separate logs for aliases
Date Fri, 26 May 2006 03:49:19 GMT
On 5/25/06, Shai <shaibn@gmail.com> wrote:
> Hi,
>
> Since I'm a home user and I only have 1 IP but I still want to make
> access to my SSL secured sites, I decided I can't use vhosts since
> those either need to configure different ports or separate IP per
> vhost.
>
> So what I want to use now are aliases like:
>
> https://mydomain.com/webmail
> and
> https://mydomain.com/admin
>
> etc etc ...
>
> That said, I still want to have separate logs per site. Can that be
> done? If yes, how?
>
> Thanks in advance,
> Shai
>

Couple of different ways:

1) Set env vars for different 'sites'

SetEnvIf Request_URI ^/webmail site-webmail
SetEnvIf Request_URI ^/admin site-admin
CustomLog webmail-access_log common env=site-webmail
CustomLog admin-access_log common env=site-admin

2) Reverse proxy to vhost on localhost port

Listen 443
<VirtualHost *:443>
...
ProxyPass /webmail/ http://localhost:8443/
ProxyPass /admin/ http://localhost:9443/
ProxyPassReverse /webmail/ http://localhost:8443/
ProxyPassReverse /admin/ http://localhost:9443/
</VirtualHost>

Listen localhost:8443
<VirtualHost *:8443>
...
</VirtualHost>

Listen localhost:9443
<VirtualHost *:9443>
...
</VirtualHost>

Well, there is two ways at least.

-B

---------------------------------------------------------------------
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


Mime
View raw message