You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2016/08/20 13:35:04 UTC
[whimsy] branch master updated: add passenger and progress towards
vhost
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new afcf364 add passenger and progress towards vhost
afcf364 is described below
commit afcf364f08795dd7d30bfff0d5d22ac05d9081d8
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sat Aug 20 09:34:36 2016 -0400
add passenger and progress towards vhost
---
MACOSX.md | 84 +++++++++++++++++++++++++++++++++++++++++++++++++
config/whimsy.conf | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 176 insertions(+)
diff --git a/MACOSX.md b/MACOSX.md
index 3d1133b..439d360 100644
--- a/MACOSX.md
+++ b/MACOSX.md
@@ -196,6 +196,90 @@ Save your changes.
Verify that you can access the server using this new alias:
$ curl whimsy.local
+```
<html><body><h1>It works!</h1></body></html>
```
+Install passenger
+------------------------------------------------
+
+Install:
+
+``
+$ gem install passenger
+$ passenger-install-apache2-module
+$ sudo apache2ctl restart
+```
+
+For the second step ('passenger-install-apache2-module`), you will need to
+follow the instructions -- which essentially are to press enter twice and then
+copy a file to specified location. If for any reason you skip that last step,
+you can redo it with the following command:
+
+```
+$ sudo bash -c 'passenger-install-apache2-module --snippet > /etc/apache2/other/passenger.conf'
+```
+
+Verify:
+
+Check that the server information includes 'Phusion_Passenger':
+
+```
+$ curl --head whimsy.local
+HTTP/1.1 200 OK
+Date: Fri, 19 Aug 2016 12:23:23 GMT
+Server: Apache/2.4.18 (Unix) Phusion_Passenger/5.0.30
+Content-Location: index.html.en
+Vary: negotiate
+TCN: choice
+Last-Modified: Mon, 11 Jun 2007 18:53:14 GMT
+ETag: "2d-432a5e4a73a80"
+Accept-Ranges: bytes
+Content-Length: 45
+Content-Type: text/html
+```
+
+Configure whimsy.local vhost
+----------------------------
+
+
+**Note**: At the present time, nothing is ever written to the error log, even
+when services fail. This is being debugged.
+
+Once again, Edit `/etc/apache2/httpd.conf` using sudo and your favorite text editor.
+
+Uncomment out the following lines:
+
+```
+LoadModule expires_module libexec/apache2/mod_ldap
+
+LoadModule expires_module libexec/apache2/mod_authnz_ldap
+
+LoadModule expires_module libexec/apache2/mod_expires.so
+
+LoadModule expires_module libexec/apache2/mod_rewrite
+```
+
+Copy whimsy vhost definition to your apache2 configuration:
+
+```
+sudo cp whimsy/config/whimsy.conf /private/etc/apache2/other
+```
+
+Edit `whimsy/config/whimsy.conf` and replace all occurrences of
+`/Users/rubys/git/whimsy` with the path that you cloned whimsy.
+
+Restart Apache httpd using `sudo apachectl restart`.
+
+Verify:
+
+Visit [http://whimsy.local/](http://whimsy.local). You should see the
+whimsy home page.
+
+**Note**: If you navigate to
+[http://whimsy.local/board/agenda](http://whimsy.local/board/agenda), you will
+be prompted for your apache user and password. Once you have authenticated,
+you will see an Internal Server Error, which isn't surprising as that
+application isn't yet set up. What is surprising is that there is nothing in
+`/var/log/apache2/whimsy_error.log`.
+when services fail. This is being debugged.
diff --git a/config/whimsy.conf b/config/whimsy.conf
new file mode 100644
index 0000000..4873380
--- /dev/null
+++ b/config/whimsy.conf
@@ -0,0 +1,92 @@
+# whimsy.local Virtual Host
+#
+# Required modules: mod_expires
+# Required modules: mod_rewrite
+# Required modules: mod_ldap
+# Required modules: mod_authnz_ldap
+
+<VirtualHost *:80>
+ PassengerFriendlyErrorPages on
+
+ Servername whimsy.local
+ DocumentRoot /Users/rubys/git/whimsy/www
+
+ ## Logging
+ ErrorLog "/var/log/apache2/whimsy_error.log"
+ ServerSignature Off
+ CustomLog "/var/log/apache2/whimsy_access.log" combined
+
+ ExpiresActive On
+ <If "%{QUERY_STRING} =~ /^\d+$/">
+ ExpiresByType text/css "access plus 1 month"
+ ExpiresByType application/javascript "access plus 1 month"
+ </If>
+
+ RewriteEngine on
+ RewriteRule ^.*$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
+
+ <Directory /Users/rubys/git/whimsy/www>
+ Require ip 127.0.0.1
+ Require ip ::1
+ Options +ExecCGI +Indexes +FollowSymLinks +MultiViews
+ AddHandler cgi-script .cgi
+ MultiViewsMatch Any
+ </Directory>
+
+ Alias /board/agenda/ /Users/rubys/git/whimsy/www/board/agenda/public
+
+ <Location /board/agenda>
+ PassengerBaseURI /board/agenda
+ PassengerAppRoot /Users/rubys/git/whimsy/www/board/agenda
+ Options -MultiViews
+ # CheckSpelling Off
+ # SetEnv HTTPS on
+ </Location>
+
+ <Directory /Users/rubys/git/whimsy/www/board/agenda>
+ AuthType Basic
+ AuthName "ASF Members and Officers"
+ AuthBasicProvider ldap
+ AuthLDAPUrl "ldaps://ldap-lb-us.apache.org:636 ldap1-us-west.apache.org:636/ou=people,dc=apache,dc=org?uid"
+ AuthLDAPGroupAttribute memberUid
+ AuthLDAPGroupAttributeIsDN off
+ Require ldap-group cn=committers,ou=groups,dc=apache,dc=org
+ </Directory>
+
+ Alias /roster/ /Users/rubys/git/whimsy/www/roster/public
+
+ <Location /roster>
+ PassengerBaseURI /roster
+ PassengerAppRoot /Users/rubys/git/whimsy/www/roster
+ Options -MultiViews
+ # CheckSpelling Off
+ # SetEnv HTTPS on
+ </Location>
+
+ <Directory /Users/rubys/git/whimsy/www/roster>
+ AuthType Basic
+ AuthName "ASF Committers"
+ AuthBasicProvider ldap
+ AuthLDAPUrl "ldaps://ldap-lb-us.apache.org:636 ldap1-us-west.apache.org:636/ou=people,dc=apache,dc=org?uid"
+ AuthLDAPGroupAttribute memberUid
+ AuthLDAPGroupAttributeIsDN off
+ Require ldap-group cn=committers,ou=groups,dc=apache,dc=org
+ </Directory>
+
+ <Directory /Users/rubys/git/whimsy/www/officers>
+ AuthType Basic
+ AuthName "ASF Members and Officers"
+ AuthBasicProvider ldap
+ AuthLDAPUrl "ldaps://ldap-lb-us.apache.org:636 ldap1-us-west.apache.org:636/ou=people,dc=apache,dc=org?uid"
+ AuthLDAPGroupAttribute memberUid
+ AuthLDAPGroupAttributeIsDN off
+ Require ldap-group cn=committers,ou=groups,dc=apache,dc=org
+ </Directory>
+
+ # for secretary workbench
+ Alias /members/received /srv/secretary/workbench/documents/received
+ <Directory /srv/secretary/workbench/documents/received>
+ Require all granted
+ </Directory>
+
+</VirtualHost>
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].