Bug #1618

mod_accesslog: incorrect server port when use https

Added by alek over 6 years ago. Updated over 6 years ago.

Status:FixedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:mod_accesslog
Target version:1.5.0
Missing in 1.5.x:

Description

Task is to have information in access log about type of session: with or without SSL.


accesslog.format = "%h %V %{X-LIGHTTPD-UID}o %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %p" 

When I do ''wget !https://www.bla-bla.com/login.html'', such line prints into access.log


192.168.0.3 www.bla-bla.com - [01/Apr/2008:07:35:26 +0000] "GET /login.html HTTP/1.0" 200 29592 "-" "Wget/1.10.2" 1 80

I believe port at last field should be 443

From my configuration:


server.port = var.serverhttpport

$SERVER["socket"] == var.serveraddress + ":" + var.serverhttpsport {
# Lines for https config
}
else $SERVER["socket"] == var.serveraddress + ":" + var.serverhttpsport {
# Lines for http config
}

Lighttpd version info:


% svn info
Path: .
URL: svn://svn.lighttpd.net/lighttpd/trunk
Repository Root: svn://svn.lighttpd.net/lighttpd
Repository UUID: 152afb58-edef-0310-8abb-c4023f1b3aa9
Revision: 2138
Node Kind: directory
Schedule: normal
Last Changed Author: stbuehler
Last Changed Rev: 2135
Last Changed Date: 2008-03-21 17:22:50 +0200 (Fri, 21 Mar 2008)

0001-Fix-accesslog-port-should-be-port-from-the-connecti.patch Magnifier (1014 Bytes) stbuehler, 2008-04-01 11:28

History

#1 Updated by stbuehler over 6 years ago

Would be nice if you could try the attached patch (apply with "patch -p1 < patchfilename")

#2 Updated by alek over 6 years ago

Now it prints correct port numbers. Many thanks.

#3 Updated by stbuehler over 6 years ago

  • Status changed from New to Fixed
  • Resolution set to fixed

Fixed in r2149

Also available in: Atom