Opened 3 years ago

Closed 3 years ago

#63271 closed defect (fixed)

apache2: missing mod_proxy_html

Reported by: wadjei Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.0
Keywords: bigsur Cc: Schamschula (Marius Schamschula)
Port: apache2

Description

I'm setting up a new install of macports on a big sur system and have run into a problem with my apache2 configuration.

Previously, I had mod_proxy_html and mod_xml2enc.so in order to configure a reverse proxy but with the same port request list I no longer have these modules and dont see a clear way to rebuild or install them.

Both of these modules existed in my previous apache2 version 2.4 installation and I don't recall doing anything special to get them before.

In my install, I currently have

% ls -1 /opt/local/lib/apache2/modules 
httpd.exp
mod_access_compat.so
mod_actions.so
mod_alias.so
mod_allowmethods.so
mod_asis.so
mod_auth_basic.so
mod_auth_digest.so
mod_auth_form.so
mod_authn_anon.so
mod_authn_core.so
mod_authn_dbd.so
mod_authn_dbm.so
mod_authn_file.so
mod_authn_socache.so
mod_authz_core.so
mod_authz_dbd.so
mod_authz_dbm.so
mod_authz_groupfile.so
mod_authz_host.so
mod_authz_owner.so
mod_authz_user.so
mod_autoindex.so
mod_buffer.so
mod_cache.so
mod_cache_disk.so
mod_cache_socache.so
mod_cgid.so
mod_charset_lite.so
mod_data.so
mod_dav.so
mod_dav_fs.so
mod_dav_lock.so
mod_dbd.so
mod_deflate.so
mod_dialup.so
mod_dir.so
mod_dumpio.so
mod_echo.so
mod_env.so
mod_expires.so
mod_ext_filter.so
mod_file_cache.so
mod_filter.so
mod_headers.so
mod_heartbeat.so
mod_heartmonitor.so
mod_include.so
mod_info.so
mod_lbmethod_bybusyness.so
mod_lbmethod_byrequests.so
mod_lbmethod_bytraffic.so
mod_lbmethod_heartbeat.so
mod_log_config.so
mod_log_debug.so
mod_log_forensic.so
mod_logio.so
mod_macro.so
mod_mime.so
mod_mime_magic.so
mod_negotiation.so
mod_proxy.so
mod_proxy_ajp.so
mod_proxy_balancer.so
mod_proxy_connect.so
mod_proxy_express.so
mod_proxy_fcgi.so
mod_proxy_fdpass.so
mod_proxy_ftp.so
mod_proxy_hcheck.so
mod_proxy_http.so
mod_proxy_scgi.so
mod_proxy_uwsgi.so
mod_proxy_wstunnel.so
mod_ratelimit.so
mod_reflector.so
mod_remoteip.so
mod_reqtimeout.so
mod_request.so
mod_rewrite.so
mod_sed.so
mod_session.so
mod_session_cookie.so
mod_session_dbd.so
mod_setenvif.so
mod_slotmem_plain.so
mod_slotmem_shm.so
mod_socache_dbm.so
mod_socache_memcache.so
mod_socache_redis.so
mod_socache_shmcb.so
mod_speling.so
mod_ssl.so
mod_status.so
mod_substitute.so
mod_unique_id.so
mod_unixd.so
mod_userdir.so
mod_usertrack.so
mod_version.so
mod_vhost_alias.so
mod_watchdog.so

mod_proxy_html.so and mod_xml2enc.so are missing.

The only thing I can find connecting macports with mod_proxy_html concerns an apache2.2 deprecation some 2 years ago.

Have I missed something or is something broken?

Change History (5)

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Cc: Schamschula added
Owner: set to ryandesign
Status: newassigned
Summary: Apache2 mod_proxy_htmlapache2: missing mod_proxy_html

comment:2 Changed 3 years ago by Schamschula (Marius Schamschula)

There is no such thing as mod_proxy_html.so in apache 2.4.x. Are you sure you didn't mean mod_proxy_http.so?

I can add a variant to enable mod_xml2enc.so.

comment:3 Changed 3 years ago by wadjei

https://httpd.apache.org/docs/2.4/mod/mod_proxy_html.html

Without the module, trying to use the configuration directive ProxyHTMLLinks throws an error and the server does not start.

https://httpd.apache.org/docs/2.4/mod/mod_proxy_html.html#proxyhtmllinks

These were apache 2.4 directives that I was using previously.

comment:4 Changed 3 years ago by Schamschula (Marius Schamschula)

mod_proxy_html.so is only built if mod_xml2enc.so has been enabled. It looks like there was a fallback under apache 2.2.x if mod_xml2enc wasn't available. Under apache 2.4.x that doesn't seem to be the case. There is no direct way of enabling mod_proxy_html during the build process.

comment:5 Changed 3 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In adbf28b94baece733bccb0704330b9b9d08ef5c2/macports-ports (master):

apache2: add xml2enc variant, this also enables mod_proxy_html

Closes: #63271

Note: See TracTickets for help on using tickets.