[MacPorts] howto/Apache2 modified

MacPorts noreply at macports.org
Sat Jan 10 03:47:53 PST 2015


Page "howto/Apache2" was changed by magill at icloud.com
Diff URL: <https://trac.macports.org/wiki/howto/Apache2?action=diff&version=12>
Revision 12
Comment: upd
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/Apache2
=========================================================================
--- howto/Apache2 (version: 11)
+++ howto/Apache2 (version: 12)
@@ -263,5 +263,31 @@
 Safari should return the pop-up: "Safari can't verify the identity of the website "<your server address>" \\
 At which point you can view the details of your certificate and select your appropriate actions.
 
+==== Configure your "VIrtural Host" ====
+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/apache2/conf/extra/httpd-ssl.conf"''
+
+Edit ''"/opt/local/apache2/conf/conf/extra/httpd-ssl.conf"'' and moved down to the section:
+{{{
+#   General setup for the virtual host
+DocumentRoot "/opt/local/apache2/htdocs"
+ServerName www.example.com:443
+ServerAdmin you at example.com
+ErrorLog "/opt/local/apache2/logs/error_log"
+TransferLog "/opt/local/apache2/logs/access_log"
+}}}
+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.2/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.
+{{{
+$ /opt/local/apache2/bin/apachectl -t
+$ sudo port unload apache2
+$ sudo port load apache2
+}}}
 
 [wiki:howto <- Back to the HOWTO section]
-------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 OS X

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 .


More information about the macports-changes mailing list