Changes between Version 6 and Version 7 of TracNginxRecipe
- Timestamp:
- Jan 17, 2007, 5:02:28 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracNginxRecipe
v6 v7 106 106 }}} 107 107 108 '''Static Content'''[[br]] 109 Serving static files from htdocs dir ala /<site>/chrome/common aliases `http://live.trachosts.com/myproj/chrome/common` to `/var/trachosts/trac/myproj/htdocs` 110 {{{ 111 location ~ /(.*?)/chrome/common/ { 112 rewrite /(.*?)/chrome/common/(.*) /$1/htdocs/$2 break; 113 root /var/trachosts/trac; 114 } 115 116 }}} 117 108 118 109 119 == Subversion == … … 114 124 <VirtualHost *:80> 115 125 ServerAdmin webmaster@trachosts.com 116 ServerName trachosts.com 126 127 # in order to support COPY and MOVE, etc - over https (443), 128 # ServerName _must_ be the same as the nginx servername 129 ServerName live.trachosts.com 130 UseCanonicalName on 131 117 132 DocumentRoot "/var/www/live.trachosts.com/htdocs" 118 133 … … 146 161 proxy_pass http://127.0.0.1:80; 147 162 include /etc/nginx/proxy.conf; 163 set $dest $http_destination; 164 if ($http_destination ~ "^https://(.+)") { 165 set $dest http://$1; 166 } 167 proxy_set_header Destination $dest; 148 168 } 149 169 }}}