Project

General

Profile

Actions

Bug #1618

closed

mod_accesslog: incorrect server port when use https

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

Status:
Fixed
Priority:
Normal
Category:
mod_accesslog
Target version:
ASK QUESTIONS IN Forums:

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)

Files

Actions #1

Updated by stbuehler over 16 years ago

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

Actions #2

Updated by alek over 16 years ago

Now it prints correct port numbers. Many thanks.

Actions #3

Updated by stbuehler over 16 years ago

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

Fixed in r2149

Actions

Also available in: Atom