| 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/ |
| | 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> |