Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Volunteers wanted to help translate FreshPorts
Searches without login should now work. You must get asked to click a button.
Port details
mod_wsgi Python WSGI adapter module for Apache
6.1.1 www Σ=2 search for ports that depend on this port An older version of this port was marked as vulnerable. Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 6.1.1Version of this port present on the latest quarterly branch.
Maintainer: douglas@douglasthrift.net search for ports maintained by this maintainer
Port Added: 2008-06-20 23:12:44
Last Update: 2026-10-16 17:36:50
Commit Hash: 6228cc78
People watching this port, also watch: squid, libssh, ocsinventory-server
Also Listed In: python
License: APACHE20
WWW:
https://www.modwsgi.org/
Description: #
The mod_wsgi package provides an Apache module that implements a WSGI-compliant interface for hosting Python based web applications on top of the Apache web server.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ap24-py312-mod_wsgi>0:www/mod_wsgi
To install the port: #
cd /usr/ports/www/mod_wsgi/ && make install clean
To add the package, run one of these commands:
  • pkg install www/mod_wsgi
  • pkg install ap24-py312-mod_wsgi
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: ap24-py312-mod_wsgi
Package flavors (<flavor>: <package>) #
  • py312: ap24-py312-mod_wsgi
distinfo: #
TIMESTAMP = 1791998839 SHA256 (mod_wsgi-6.1.1.tar.gz) = a42d11ba45d2050ab456a474d034e938605ca76386233ef404daa8b0388ca60e SIZE (mod_wsgi-6.1.1.tar.gz) = 609760

Packages (timestamps in pop-ups are UTC): #
ap24-py312-mod_wsgi
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest6.1.06.1.0_1--6.1.0_1
FreeBSD:14:quarterly6.1.0_16.1.0_1--6.1.0_1
FreeBSD:15:latest6.1.0_16.1.0_1n/a-n/a
FreeBSD:15:quarterly6.1.0_16.1.0_1n/a-n/a
FreeBSD:16:latest6.1.06.1.0_1n/a-n/a
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. apxs : www/apache24
  2. python3.12 : lang/python312
  3. autoconf>=2.73 : devel/autoconf
  4. automake>=1.18.1 : devel/automake
Test dependencies: #
  1. python3.12 : lang/python312
Runtime dependencies: #
  1. apxs : www/apache24
  2. python3.12 : lang/python312
This port is required by: #
for Run #
  1. net/freeipa-server

Configuration Options: #
No options to configure
Options name: #
www_mod_wsgi
USES: #
apache autoreconf cpe python
FreshPorts was unable to extract/find any pkg message #
Master Sites: #
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/m/mod_wsgi/
  2. https://pypi.org/packages/source/m/mod_wsgi/
Collapse this list.
Notes from UPDATING #
These upgrade notes are taken from /usr/ports/UPDATING
  • 2026-09-29
    Affects: users of www/mod_wsgi
    Author: michaelo@FreeBSD.org
    Reason: 
      mod_wsgi has been upgraded to major version 6 with several potentially
      breaking changes. Read the release notes very carefully:
      https://modwsgi.readthedocs.io/en/latest/release-notes.html
    
    
Port Moves
  • port moved here from www/mod_wsgi4 on 2025-09-08
    REASON: Was tied to only major version 4, now upgraded to 5

Number of commits found: 34 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
6.1.1
16 Oct 2026 17:36:50
commit hash: 6228cc78a9334c754c9ca817a5b3a23a532d5024commit hash: 6228cc78a9334c754c9ca817a5b3a23a532d5024commit hash: 6228cc78a9334c754c9ca817a5b3a23a532d5024commit hash: 6228cc78a9334c754c9ca817a5b3a23a532d5024 files touched by this commit
Michael Osipov (michaelo) search for other commits by this committer
www/mod_wsgi: Update to 6.1.1

PR:		299391
Approved by:	douglas@douglasthrift.net (maintainer)
MFH:		2026Q4
Security:	GHSA-q67r-wxfm-97hj
6.1.0_1
03 Oct 2026 09:19:10
commit hash: 0d01e25f76a32c53df8bb41257ac09250b3f63afcommit hash: 0d01e25f76a32c53df8bb41257ac09250b3f63afcommit hash: 0d01e25f76a32c53df8bb41257ac09250b3f63afcommit hash: 0d01e25f76a32c53df8bb41257ac09250b3f63af files touched by this commit This port version is marked as vulnerable.
Michael Osipov (michaelo) search for other commits by this committer
www/mod_wsgi: fix Python library linking

Always pass Python's LIBDIR to the linker instead of assuming that Apache's
LIBDIR is also a default linker search path.

Link mod_wsgi only against the shared libpython library. Do not append
Python's LIBS and SYSLIBS, which are intended for linking Python itself
or for static embedding. With NLS-enabled Python, those flags promote
libintl to a direct dependency of mod_wsgi and cause an unnecessary
gettext-runtime dependency.

This results in the intended dependency chain:

    mod_wsgi.so -> libpython${PYTHON_VERSION}.so.1.0 -> libintl.so.8

rather than making libintl a direct dependency of mod_wsgi.

PR:		298985
Approved by:	portmgr (blanket)
MFH:		2026Q4
6.1.0
29 Sep 2026 07:47:36
commit hash: 30c1b81f50b157ef6023dd787e20c4d42306e65ccommit hash: 30c1b81f50b157ef6023dd787e20c4d42306e65ccommit hash: 30c1b81f50b157ef6023dd787e20c4d42306e65ccommit hash: 30c1b81f50b157ef6023dd787e20c4d42306e65c files touched by this commit This port version is marked as vulnerable.
Michael Osipov (michaelo) search for other commits by this committer
www/mod_wsgi: Update to 6.1.0

mod_wsgi has been upgraded to major version 6 with several potentially
breaking changes. Read the release notes very carefully:
https://modwsgi.readthedocs.io/en/latest/release-notes.html

PR:		298961
Approved by:	douglas@douglasthrift.net (maintainer)
5.0.2
26 Jun 2026 20:47:55
commit hash: b7e58a8a19bf284cb315d81da082c669691a7b33commit hash: b7e58a8a19bf284cb315d81da082c669691a7b33commit hash: b7e58a8a19bf284cb315d81da082c669691a7b33commit hash: b7e58a8a19bf284cb315d81da082c669691a7b33 files touched by this commit This port version is marked as vulnerable.
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
www/mod_wsgi: Clean up USES=python

Python 3.10 is the minimal supported Python 3.

Approved by:	portmgr (blanket)
With hat:	python
5.0.2
08 Sep 2025 08:26:23
commit hash: fe18c1474b8b4c39defd8a85387543fcb018f418commit hash: fe18c1474b8b4c39defd8a85387543fcb018f418commit hash: fe18c1474b8b4c39defd8a85387543fcb018f418commit hash: fe18c1474b8b4c39defd8a85387543fcb018f418 files touched by this commit This port version is marked as vulnerable.
Michael Osipov (michaelo) search for other commits by this committer
www/mod_wsgi4: Move to www/mod_wsgi, and upgrade port to 5.0.2

PR:		288402
Approved by:	jrm (mentor), douglas@douglasthrift.net (maintainer timeout)
Differential Revision:	https://reviews.freebsd.org/D52139
2.8_2
24 Nov 2013 23:33:16
Revision:334797Original commit files touched by this commit This port version is marked as vulnerable.
ohauer search for other commits by this committer
- svn mv www/mod_wsgi www/mod_wsgi2 [1]
- update ports to reflect new location
- fix mod_wsgi3 build with python3

PR:		184065 [1]
PR		183353 [2]
Submitted by:	Douglas William Thrift <douglas@douglasthrift.net> (maintainer)
2.8_2
20 Nov 2013 20:58:39
Revision:334453Original commit files touched by this commit This port version is marked as vulnerable.
sunpoet search for other commits by this committer
- Update MASTER_SITES
- Update CONFLICTS
- Support STAGEDIR
- While I'm here, update USE_PYTHON

PR:		ports/184065
Submitted by:	Douglas William Thrift <douglas@douglasthrift.net> (maintainer)
2.8_2
20 Sep 2013 23:36:54
Revision:327776Original commit files touched by this commit This port version is marked as vulnerable.
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
www)
14 Aug 2013 22:35:54
Revision:324744Original commit files touched by this commit Sanity Test Failure Refresh
ak search for other commits by this committer
- Remove MAKE_JOBS_SAFE variable

Approved by:	portmgr (bdrewery)
2.8_2
22 Sep 2012 21:15:51
Revision:304723Original commit files touched by this commit This port version is marked as vulnerable.
ohauer search for other commits by this committer
- USE_APACHE= s/22+/22/
- adopt new Makefile header

Port build fails on local exp-run with apache24 with
 error: 'conn_rec' has no member named 'remote_ip'

or various other apache22 specific functions/parameters

with hat apache@
2.8_2
18 Aug 2012 14:29:11
Original commit files touched by this commit This port version is marked as vulnerable.
ohauer search for other commits by this committer
- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@
2.8_2
09 Jan 2012 15:41:08
Original commit files touched by this commit This port version is marked as vulnerable.
tabthorpe search for other commits by this committer
- The proper acronym for Apache Software License 2 is really AL2
- Thanks to crees@ for generating the initial patch

PR:             ports/163521
Submitted by:   Pedro Giffuni <pfg apache.org>
Hat:            portmgr
Exp run by:     pav
2.8_2
01 Jan 2012 16:47:41
Original commit files touched by this commit This port version is marked as vulnerable.
ohauer search for other commits by this committer
- change required APACHE version from 13+ to 20+
  (prepare to remove www/apache13)

- no PORTREVISION bump since apache22 is the default

with hat apache@
2.8_2
20 Aug 2011 17:27:52
Original commit files touched by this commit This port version is marked as vulnerable.
ohauer search for other commits by this committer
 - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
2.8_1
25 Feb 2011 04:40:31
Original commit files touched by this commit This port version is marked as vulnerable.
miwi search for other commits by this committer
- Move over to py25
- while here drop md5 support
- Small cleanups
2.8
30 Sep 2010 02:04:37
Original commit files touched by this commit This port version is marked as vulnerable.
pgollucci search for other commits by this committer
- Works with python 2.7

PR:             ports/151092
Submitted by:   John Hein <jhein@symmetricom.com>
Approved by:    Douglas Thrift <douglas@douglasthrift.net> (maintainer)
2.8
10 Sep 2010 01:44:26
Original commit files touched by this commit This port version is marked as vulnerable.
pgollucci search for other commits by this committer
- Fix CONFLICTS

Reported by:    Douglas Thrift <douglas@douglasthrift.net> (maintainer)
2.8
09 Sep 2010 03:31:20
Original commit files touched by this commit This port version is marked as vulnerable.
pgollucci search for other commits by this committer
- Update to mod_wsgi3 to 3.3
- Add LICENSE
- Update CONFLICTS

PR:             ports/148982
Submitted by:   Douglas Thrift <douglas@douglasthrift.net> (maintainer)
2.8
25 May 2010 20:43:04
Original commit files touched by this commit This port version is marked as vulnerable.
pgollucci search for other commits by this committer
- Fix 2 minor glitches in www/mod_wsgi and www/mod_wsgi3

Reported by:    Freshports via d
2.8
25 May 2010 20:17:37
Original commit files touched by this commit Sanity Test Failure This port version is marked as vulnerable.
pgollucci search for other commits by this committer
Mk/bsd.apache.mk can not sufficiently alter things before Mk/bsd.options.mk
in Mk/bsd.ports.mk due to ordering in Mk/bsd.port.mk.  This causes OPTIONSFILE
to be incorrectly set during some make phases as a result of the recent
PKGNAMEPREFIX for apache ports.

'Revert' some of the PKGNAMEPREFIX changes for apXX-.
   - Must be manually requested in tbe port Makefile either by
     a) AP_FAST_BUILD=yes
     b) PKGNAMEPREFIX=${APACHE_PKGNAMEPREFIX}
   - Going forward, we will only do this for ports where WITH_APACHE
       is NOT optional, but required.  mod_* ports are a good fit.

141 ports are mod_ ports
  80 of those use AP_FAST_BUILD and thus are auto hooked by this patch [a].
  61 remaining are then patched to mirror the other $lang frameworks [b].

PR:             ports/146956
Reported by:    Hans F. Nordhaug <Hans.F.Nordhaug@hiMolde.no>, several
Discussed with: pav, itectu on #bsdports
Tested by:      P6 TB run
Approved by:    portmgr (pav)
2.8
19 May 2010 10:50:34
Original commit files touched by this commit This port version is marked as vulnerable.
wen search for other commits by this committer
- Added PORTSCOUT limit to only show updates for 2.X versions.

PR:             ports/146697
Submitted by:   Douglas William Thrift <douglas@douglasthrift.net> (maintainer)
2.8
13 Dec 2009 16:28:06
Original commit files touched by this commit This port version is marked as vulnerable.
miwi search for other commits by this committer
- Get rip python 2.3+

Note:
Python 2.3 is't longer supported and have a lot of security issues.
Convert 2.3+ to yes/or 2.4/5+

With hat:       portmgr
2.8
11 Dec 2009 07:50:32
Original commit files touched by this commit This port version is marked as vulnerable.
pav search for other commits by this committer
- Set LATEST_LINK

PR:             ports/141277
Submitted by:   Douglas Thrift <douglas@douglasthrift.net> (maintainer)
2.8
28 Nov 2009 11:38:53
Original commit files touched by this commit This port version is marked as vulnerable.
wen search for other commits by this committer
- Update to 2.8
- Remove the unneeded patch

PR:             ports/140958
Submitted by:   Douglas William Thrift <douglas@douglasthrift.net> (maintainer)
2.7
23 Nov 2009 10:34:40
Original commit files touched by this commit This port version is marked as vulnerable.
miwi search for other commits by this committer
- Update to 2.7

PR:             140805
Submitted by:   Douglas William Thrift <douglas@douglasthrift.net> (maintainer)
2.6
21 Nov 2009 10:51:19
Original commit files touched by this commit This port version is marked as vulnerable.
miwi search for other commits by this committer
- Update MASTER_SITE

PR:             140748
2.6
11 Oct 2009 12:19:17
Original commit files touched by this commit This port version is marked as vulnerable.
wxs search for other commits by this committer
- Update to 2.6
- Add new MASTER_SITE
- Whitespace fix

PR:             ports/139257
Submitted by:   douglas@douglasthrift.net (maintainer)
2.5
21 May 2009 20:45:34
Original commit files touched by this commit This port version is marked as vulnerable.
pgollucci search for other commits by this committer
- Mark remaining mod_* ports MAKE_JOBS_SAFE=yes

PR:             ports/134611
Approved by:    pav (#bsdports)
2.5
14 May 2009 08:18:55
Original commit files touched by this commit This port version is marked as vulnerable.
beat search for other commits by this committer
- Update to 2.5

PR:             ports/134523
Submitted by:   Douglas William Thrift <douglas AT douglasthrift.net>
(maintainer)
Approved by:    miwi (mentor, implicit)
2.4
22 Apr 2009 15:09:04
Original commit files touched by this commit This port version is marked as vulnerable.
wxs search for other commits by this committer
- Update to 2.4

PR:             ports/133767
Submitted by:   Douglas Thrift <douglas@douglasthrift.net> (maintainer)
2.3
02 Sep 2008 21:55:40
Original commit files touched by this commit This port version is marked as vulnerable.
lippe search for other commits by this committer
- Update to 2.3.
- Move pkg-message to FILESDIR.

PR:             ports/127025
Submitted by:   Douglas William Thrift <douglas@douglasthrift.net>
Approved by:    Douglas William Thrift <douglas@douglasthrift.net> (maintainer)
2.1
19 Jul 2008 17:50:06
Original commit files touched by this commit This port version is marked as vulnerable.
miwi search for other commits by this committer
- Add support for display-name

PR:             125628
Submitted by:   Emil Mikulic <emikulic@gmail.com>
Approved by:    maintainer
2.1
16 Jul 2008 23:23:54
Original commit files touched by this commit This port version is marked as vulnerable.
wxs search for other commits by this committer
Update to 2.1

PR:             ports/125660
Submitted by:   Douglas Thrift <douglas@douglasthrift.net> (maintainer)
2.0
20 Jun 2008 23:12:20
Original commit files touched by this commit This port version is marked as vulnerable.
miwi search for other commits by this committer
The mod_wsgi adapter is an Apache module that provides a WSGI compliant
interface for hosting Python based web applications within Apache. The
adapter is written completely in C code against the Apache C runtime and
for hosting WSGI applications within Apache has a lower overhead than using
existing WSGI adapters for mod_python or CGI.

WWW: http://www.modwsgi.org/

PR:             ports/122612
Submitted by:   Douglas Thrift

Number of commits found: 34