[MacPorts] howto/Apache2 modified
MacPorts Wiki
noreply at macports.org
Tue Apr 11 17:36:51 UTC 2023
Page "howto/Apache2" was changed by cyberon-org
Diff URL: <https://trac.macports.org/wiki/howto/Apache2?action=diff&version=23>
Revision 23
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/Apache2
=========================================================================
--- howto/Apache2 (version: 22)
+++ howto/Apache2 (version: 23)
@@ -189,6 +189,8 @@
}}}
You can then view your personal pages by accessing http://localhost/~username/, where "username" is your Mac OS X account's short name.
+Now it's time to change Apache's DocumentRoot to your ~ /Sites directory. Edit `/opt/local/etc/apache2/httpd.conf` and change in the two lines below DocumentRoot `/opt/local/www/apache2/html` to `/Users/username/Sites`.
+This avoids the requirement to use sudo commands for changing things in Apache's RootDocument.
=== Local Apache manual === #manual
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/howto/Apache2>
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/Apache2' page.
If it was not you, please report to admin at macports.org.
More information about the macports-changes
mailing list