Mailing List Archive

hit counts
I have 2 domain names pointing to the same apache server. both see the all
the same pages also. we would like to know if there is a way to get hit
counts accessed by each domain name.
since domain1.com & domain2.com share the same document root i'm not sure
how to do this.
we want to know how many people access the pages through domain1.com & how
many by domain2.com


Thanks in advance.


Brian


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
Re: hit counts [ In reply to ]
You can configure the VirtualHost like this, for example:

<VirtualHost ip>
ServerName domain1.com
DocumentRoot /my/document/root
CustomLog logs/domain1_access.log common
</VirtualHost>

<VirtualHost ip>
ServerName domain2.com
DocumentRoot /my/document/root
CustomLog logs/domain2_access.log common
</VirtualHost>

Good luck,
Carlos.

http://www.tertulandia.com : sea cual sea tu tema... allí está tu sitio!

_______Carlos Costa Portela_________________________________________________
| e-mail: ccosta@servidores.net | home page: http://casa.ccp.servidores.net |
|_____Tódalas persoas maiores foron nenos antes, pero poucas se lembran______|


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
Re: hit counts [ In reply to ]
ok, i was hoping there was another way to do that since they both have the
same exact content
i will give that a shot

Thanks for the responce


Brian




At 12:26 PM 2/25/2002 +0100, you wrote:
> You can configure the VirtualHost like this, for example:
>
><VirtualHost ip>
> ServerName domain1.com
> DocumentRoot /my/document/root
> CustomLog logs/domain1_access.log common
></VirtualHost>
>
><VirtualHost ip>
> ServerName domain2.com
> DocumentRoot /my/document/root
> CustomLog logs/domain2_access.log common
></VirtualHost>
>
> Good luck,
> Carlos.
>
> http://www.tertulandia.com : sea cual sea tu tema... allí está tu sitio!
>
> _______Carlos Costa Portela_________________________________________________
>| e-mail: ccosta@servidores.net | home page: http://casa.ccp.servidores.net |
>|_____Tódalas persoas maiores foron nenos antes, pero poucas se lembran______|
>
>
>---------------------------------------------------------------------
>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
>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
For additional commands, e-mail: users-help@httpd.apache.org