pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Sympa + lighttpd



I am trying to get mail/sympa to work with www/lighttpd.  Sympa seems to work, i.e., it sends mail as expected; lighttpd also seems to work, i.e., it serves pages, including for virtual hosts.  However, I cannot seem to get lighttpd to serve the sympa pages.  The latter should happen in response to a request for http://www.domain.com/sympa.  That request yields the following in the logs:

lighttpd/access.log:

	<client IP address> www.domain.com - [22/Jul/2023:22:08:20 -0600] "GET /sympa HTTP/1.1" 404 341 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36”

lighttpd/error.log:

2023-07-22 22:08:20: (connections.c.772) fd:9 rqst: GET /sympa HTTP/1.1
2023-07-22 22:08:20: (connections.c.772) fd:9 rqst: Host: www.domain.com
2023-07-22 22:08:20: (connections.c.772) fd:9 rqst: Connection: keep-alive
2023-07-22 22:08:20: (connections.c.772) fd:9 rqst: Cache-Control: max-age=0
2023-07-22 22:08:20: (connections.c.772) fd:9 rqst: Upgrade-Insecure-Requests: 1
2023-07-22 22:08:20: (connections.c.772) fd:9 rqst: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
2023-07-22 22:08:20: (connections.c.772) fd:9 rqst: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
2023-07-22 22:08:20: (connections.c.772) fd:9 rqst: Accept-Encoding: gzip, deflate
2023-07-22 22:08:20: (connections.c.772) fd:9 rqst: Accept-Language: en-US,en;q=0.9
2023-07-22 22:08:20: (connections.c.772) fd:9 rqst: 
2023-07-22 22:08:20: (configfile-glue.c.598) === start of condition block ===
2023-07-22 22:08:20: (configfile-glue.c.529) $HTTP["host"] =~ "www.domain.com" compare to www.domain.com
2023-07-22 22:08:20: (configfile-glue.c.385) 1 (uncached) result: true (cond: global / $HTTP["host"] =~ "www.domain.com")
2023-07-22 22:08:20: (response.c.420) -- parsed Request-URI
2023-07-22 22:08:20: (response.c.422) Request-URI     : /sympa
2023-07-22 22:08:20: (response.c.424) URI-scheme      : http
2023-07-22 22:08:20: (response.c.426) URI-authority   : www.domain.com
2023-07-22 22:08:20: (response.c.428) URI-path (clean): /sympa
2023-07-22 22:08:20: (response.c.430) URI-query       : 
2023-07-22 22:08:20: (response.c.509) -- logical -> physical
2023-07-22 22:08:20: (response.c.511) Doc-Root     : /var/www/htdocs/domain.com
2023-07-22 22:08:20: (response.c.513) Basedir      : /var/www/htdocs/domain.com
2023-07-22 22:08:20: (response.c.515) Rel-Path     : /sympa
2023-07-22 22:08:20: (response.c.517) Path         : /var/www/htdocs/domain.com/sympa
2023-07-22 22:08:20: (response.c.203) -- : No such file or directory
2023-07-22 22:08:20: (response.c.206) Path         : /var/www/htdocs/domain.com/sympa
2023-07-22 22:08:20: (response.c.208) URI          : /sympa
2023-07-22 22:08:20: (response.c.179) fd:9 resp: HTTP/1.1 404 Not Found
2023-07-22 22:08:20: (response.c.179) fd:9 resp: Content-Type: text/html
2023-07-22 22:08:20: (response.c.179) fd:9 resp: Content-Length: 341
2023-07-22 22:08:20: (response.c.179) fd:9 resp: Date: Sun, 23 Jul 2023 04:08:20 GMT
2023-07-22 22:08:20: (response.c.179) fd:9 resp: Server: lighttpd/1.4.67
2023-07-22 22:08:20: (response.c.179) fd:9 resp: 
2023-07-22 22:08:26: (connections.c.1458) connection closed - keep-alive timeout: 9
2023-07-22 22:09:21: (connections.c.1447) connection closed - read timeout: 11
2023-07-22 22:09:21: (connections.c.1447) connection closed - read timeout: 10

It looks to me that lighttpd is looking for a file named “/sympa” rather than aliasing that to something else.  However, lighttpd.conf has the following, which I think should be mapping to the socket:

lighttpd.conf:

$HTTP["url"] =~ "^/sympa" {
        fastcgi.server = ( "/sympa" =>
		(( "check-local" => "disable",
                   "socket"      => "/var/sympa/run/wwsympa.socket",
		))
        )
}

Any help tracking this down is greatly appreciated.

Thanks a lot.

Cheers,
Brook




Home | Main Index | Thread Index | Old Index