[MacPorts] howto/SetupTracAjpWsgi modified
MacPorts
noreply at macports.org
Sun Oct 22 11:55:05 UTC 2017
Page "howto/SetupTracAjpWsgi" was changed by Schamschula
Diff URL: <https://trac.macports.org/wiki/howto/SetupTracAjpWsgi?action=diff&version=3>
Revision 3
Comment: Updated for apache2 2.4.x
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/SetupTracAjpWsgi
=========================================================================
--- howto/SetupTracAjpWsgi (version: 2)
+++ howto/SetupTracAjpWsgi (version: 3)
@@ -65,12 +65,11 @@
Also note the {{{/projects}}} part being passed to ajp-wsgi, which tells it that all the Trac projects will be accessed with a URL whose path starts with {{{/projects}}}.
=== Configuring Apache2 ===
-Edit {{{/opt/local/apache2/conf/httpd.conf}}} in a text editor, and in the section pertinent to your server and how you want Trac accessed, add
+Edit {{{/opt/local/etc/apache2/httpd.conf}}} in a text editor, and in the section pertinent to your server and how you want Trac accessed, add
{{{
ProxyPass /projects/ ajp://localhost:8990/projects
<Proxy */projects/*>
- Order Allow,Deny
- Allow from all
+ Require all granted
</Proxy>
}}}
This tells Apache that requests to {{{/projects/*}}} to be proxied over to localhost's port 8990 (which is where ajp-wsgi is listening, as specified above). This excerpt can be placed in the main portion of {{{httpd.conf}}} or in a <VirtualHost> section, depending on your needs.
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/howto/SetupTracAjpWsgi>
MacPorts <https://www.macports.org/>
Ports system for macOS
This is an automated message. Someone added your email address to be
notified of changes on 'howto/SetupTracAjpWsgi' page.
If it was not you, please report to admin at macports.org.
More information about the macports-changes
mailing list