Changes between Version 3 and Version 4 of boggs


Ignore:
Timestamp:
Dec 14, 2011, 11:39:53 PM (9 years ago)
Author:
Sam Boyer
Comment:

update with detailed vhost info for projects.occupytechnology.org

Legend:

Unmodified
Added
Removed
Modified
  • boggs

    v3 v4  
    33Installed at /home/members/ocutech/sites/projects.occupytechnology.org/
    44
    5 Actually the action is as recorded here:
     5Requires a custom vhost config that is blown away by red if touched from the web interface. The intended vhost config (for projects.occupytechnology.org) is as follows:
     6
    67{{{
    7 Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/
     8# This file was created by Red. Best not to modify
     9# by hand unless you know what you're doing.
     10<VirtualHost *:80>
     11        # web config for projects.occupytechnology.org
     12        ServerName projects.occupytechnology.org
     13        ServerAlias www.projects.occupytechnology.org ctprojects.mayfirst.org projects.occupy.net
     14#       DocumentRoot /home/members/ocutech/sites/projects.occupytechnology.org/web
     15        CustomLog /home/members/ocutech/sites/projects.occupytechnology.org/logs/web.log combined
     16        ErrorLog /home/members/ocutech/sites/projects.occupytechnology.org/logs/error.log
     17        ScriptAlias /cgi-bin /home/members/ocutech/sites/projects.occupytechnology.org/cgi-bin
     18
     19#       FCGIWrapper /home/members/ocutech/sites/projects.occupytechnology.org/bin/php-cgi .php
     20        SuexecUserGroup ctprojects ctprojects
     21
     22        # FcgidInitialEnv for module mod_fcgid
     23        # These enviroment variables appear to be ignored by ruby, so these are also set in
     24        # the relevant config/enviroment.rb file
     25        FcgidInitialEnv RAILS_RELATIVE_URL_ROOT ""
     26        FcgidInitialEnv X_DEBIAN_SITEID "default"
     27        FcgidInitialEnv RAILS_ETC "/home/members/ocutech/sites/projects.occupytechnology.org/include/redmine/config"
     28        FcgidInitialEnv RAILS_LOG "/home/members/ocutech/sites/projects.occupytechnology.org/include/redmine/log"
     29        FcgidInitialEnv RAILS_VAR "/home/members/ocutech/sites/projects.occupytechnology.org/include/redmine"
     30        FcgidInitialEnv RAILS_CACHE "/home/members/ocutech/sites/projects.occupytechnology.org/include/redmine/tmp"
     31        FcgidInitialEnv RAILS_ENV "production"
     32
     33        Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/
    834        DocumentRoot /home/members/ocutech/sites/projects.occupytechnology.org/include/redmine/public
     35        <Directory "/home/members/ocutech/sites/projects.occupytechnology.org/include/redmine/public">
     36                Options +FollowSymLinks +ExecCGI
     37                Order allow,deny
     38                Allow from all
     39                RewriteEngine On
     40                # just want projects.occupy.net to work; force redirect
     41                RewriteCond %{HTTP_HOST} ^projects\.occupytechnology\.org
     42                RewriteRule (.*) http://projects.occupy.net/$1 [R=301,L]
     43
     44                RewriteRule ^$ index.html [QSA]
     45                RewriteRule ^([^.]+)$ $1.html [QSA]
     46                RewriteCond %{REQUEST_FILENAME} !-f [OR]
     47                RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
     48                RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
     49        </Directory>
     50</VirtualHost>
    951}}}
     52
     53Note that it's now being run exclusively at projects.occupy.net (which is managed elsewhere, and that's unlikely to change), but we're managing the redirect right in the vhost. This is sloppy and it'd be perfectly fine if someone with a better idea were to implement that :)
    1054
    1155