You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/08/03 18:16:52 UTC
DO NOT REPLY [Bug 43026] New: - mod_deflate Virtual Host not write log
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43026>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43026
Summary: mod_deflate Virtual Host not write log
Product: Apache httpd-2
Version: 2.2.3
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_deflate
AssignedTo: bugs@httpd.apache.org
ReportedBy: chodorenko@mail.ru
If Apache Configured As NameVirtualHosts and in Vitrual Host section define
Value of Custom Log, Then mod deflate setting custom log not work in this
virtual host. for different Virtual Host (not define log options) all its fine,
log write in /var/log/httpd/deflate_log
httpd.conf
...SKIP....
LoadModule deflate_module /usr/lib/httpd/mod_deflate.so
NameVirtualHost *:80
Include /etc/httpd/conf.d/mod_deflate.conf
Include /etc/httpd/conf/vhosts/
---------------------------------
/etc/httpd/conf.d/mod_deflate.conf
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
application/x-javascript
AddOutputFilterByType DEFLATE text/*
AddOutputFilterByType DEFLATE application/ms* application/vnd*
application/postscript application/x-httpd-php*
<Location />
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \
SetEnvIfNoCase Request_URI \
\.(?:exe|t?gz|zip|bz2|sit|rar)$ \ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
Header append Vary User-Agent env=!dont-vary
SetEnvIf User-Agent .* force-no-vary
SetEnvIf Accept-Encoding gzip !force-no-vary
SetEnvIf Accept-Encoding deflate !force-no-vary
</Location>
DeflateCompressionLevel 9
DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
LogFormat '%v "%r" %{outstream}n/%{instream}n (%{ratio}n%%) "%{User-agent}i"'
deflate
CustomLog /var/log/httpd/deflate_log deflate
---------------------------------
/etc/httpd/conf/vhosts/fake_host.conf
<VirtualHost *:80>
ServerAdmin web@____.com
DocumentRoot /home/web/htdocs
ServerName web.com
ServerAlias www.web.com
ErrorLog /home/web/logs/error.log
CustomLog /home/web/logs/access.log combined
<Directory /home/web/htdocs>
Options FollowSymLinks Multiviews -Indexes
AllowOverride All
</Directory>
</VirtualHost>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 43026] - mod_deflate Virtual Host not write log
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43026>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43026
slive@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From slive@apache.org 2007-08-03 11:55 -------
This is expected and documented behavior:
http://httpd.apache.org/docs/2.2/logs.html#virtualhost
Once a CustomLog is placed in a <VirtualHost>, the "main server" log will no
longer include entries for that host. You can simply add another CustomLog to
that <VirtualHost> in common or combined format to get the other info.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org