[MacPorts] howto/Apache2 modified

MacPorts noreply at macports.org
Mon Oct 23 19:01:05 UTC 2017


Page "howto/Apache2" was changed by Schamschula
Diff URL: <https://trac.macports.org/wiki/howto/Apache2?action=diff&version=18>
Revision 18
Comment: Added notes about copying the .conf.orig files. Removed symlink for manual
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/Apache2
=========================================================================
--- howto/Apache2 (version: 17)
+++ howto/Apache2 (version: 18)
@@ -146,6 +146,12 @@
 
 === User directories === #userdir
 
+First, install the {{{httpd-userdir.conf}}} file:
+
+{{{
+sudo cp /opt/local/etc/apache2/extra/httpd-userdir.conf.orig /opt/local/etc/apache2/extra/httpd-userdir.conf
+}}}
+
 If you would like to be able to access web pages in the Sites directory of your home directory, edit `/opt/local/etc/apache2/httpd.conf` and locate the following line:
 
 {{{
@@ -183,6 +189,12 @@
 Include etc/apache2/extra/httpd-manual.conf
 }}}
 
+Then install the {{{httpd-manual.conf}}} file:
+
+{{{
+sudo cp /opt/local/etc/apache2/extra/httpd-manual.conf.orig /opt/local/etc/apache2/extra/httpd-manual.conf
+}}}
+
 After each change to the config file, you should again verify the file syntax, and then you need to stop and restart Apache for the changes to take effect.
 
 {{{
@@ -192,13 +204,6 @@
 }}}
 
 You can then view the manual by accessing http://localhost/manual/.
-
-NOTE: This option expects ''"/opt/local/www/apache2/manual"'' to be accessible under "<Document Root>." This can be accomplished by
-{{{
-$ cd <Document Root>
-$ ln -s /opt/local/www/apache2/manual
-}}}
-and then accessing: ''http://<servername>/manual/''
 
 === Apache SSL/TLS Encryption (aks Secure Sockets  or https) === #ssl
 '''Note:''' Establishing Secure Sockets is a fairly extensive process. One should first read the current Apache2 documentation found in the Apache2 manual:
@@ -304,6 +309,12 @@
 While you have verified your certificate, you will discover that you have no access to your server - ''"You don't have permission to access.... on this server."''\\
 This is because the SSL Virtual Host has not been configured in ''"/opt/local/etc/apache2/extra/httpd-ssl.conf"''
 
+Install the {{{httpd-ssl.conf}}} file:
+
+{{{
+sudo cp /opt/local/etc/apache2/extra/httpd-ssl.conf.orig /opt/local/etc/apache2/extra/httpd-ssl.conf
+}}}
+
 Edit ''"/opt/local/etc/apache2/extra/httpd-ssl.conf"'' and moved down to the section:
 {{{
 #   General setup for the virtual host
@@ -315,10 +326,8 @@
 }}}
 Configure this section appropriately. \\
 Assuming you wish to implement SSL on your entire server, ''DocumentRoot'' and ''ServerName'' should match the values in ''"/opt/local/apache2/conf/httpd.conf"''\\
-As there are many optional ways of configuring security on your web server, consult the Apache2 manual for details.
-{{{
-http://httpd.apache.org/docs/2.4/ssl/
-}}}
+As there are many optional ways of configuring security on your web server, consult the Apache2 manual for details: http://httpd.apache.org/docs/2.4/ssl/
+
 
 After each change to the config file, you should again verify the file syntax, and then you need to stop and restart Apache for the changes to take effect.
 {{{
-------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