Mercurial > kallithea
comparison docs/setup.rst @ 881:68aaa0aca0d2 beta
Updated docs, added apache proxy example config
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 27 Dec 2010 15:30:04 +0100 |
parents | 7f9e006aa26f |
children | 1fed3c9161bb |
comparison
equal
deleted
inserted
replaced
879:b19341623d48 | 881:68aaa0aca0d2 |
---|---|
176 location / { | 176 location / { |
177 root /var/www/rhodecode/rhodecode/public/; | 177 root /var/www/rhodecode/rhodecode/public/; |
178 if (!-f $request_filename){ | 178 if (!-f $request_filename){ |
179 proxy_pass http://127.0.0.1:5000; | 179 proxy_pass http://127.0.0.1:5000; |
180 } | 180 } |
181 #this is important for https !!! | 181 #this is important if You want to use https !!! |
182 proxy_set_header X-Url-Scheme $scheme; | 182 proxy_set_header X-Url-Scheme $scheme; |
183 include /etc/nginx/proxy.conf; | 183 include /etc/nginx/proxy.conf; |
184 } | 184 } |
185 } | 185 } |
186 | 186 |
214 lang=en | 214 lang=en |
215 cache_dir = %(here)s/data | 215 cache_dir = %(here)s/data |
216 | 216 |
217 To not have the statics served by the application. And improve speed. | 217 To not have the statics served by the application. And improve speed. |
218 | 218 |
219 Apache reverse proxy | 219 |
220 -------------------- | 220 Apache virtual host example |
221 Tutorial can be found here | 221 --------------------------- |
222 | |
223 Sample config for apache using proxy:: | |
224 | |
225 <VirtualHost *:80> | |
226 ServerName hg.myserver.com | |
227 ServerAlias hg.myserver.com | |
228 | |
229 <Proxy *> | |
230 Order allow,deny | |
231 Allow from all | |
232 </Proxy> | |
233 | |
234 #important ! | |
235 #Directive to properly generate url (clone url) for pylons | |
236 ProxyPreserveHost On | |
237 | |
238 #rhodecode instance | |
239 ProxyPass / http://127.0.0.1:5000/ | |
240 ProxyPassReverse / http://127.0.0.1:5000/ | |
241 | |
242 #to enable https use line below | |
243 #SetEnvIf X-Url-Scheme https HTTPS=1 | |
244 | |
245 </VirtualHost> | |
246 | |
247 | |
248 Additional tutorial | |
222 http://wiki.pylonshq.com/display/pylonscookbook/Apache+as+a+reverse+proxy+for+Pylons | 249 http://wiki.pylonshq.com/display/pylonscookbook/Apache+as+a+reverse+proxy+for+Pylons |
223 | 250 |
224 | 251 |
225 Apache's example FCGI config | 252 Apache's example FCGI config |
226 ---------------------------- | 253 ---------------------------- |
228 TODO ! | 255 TODO ! |
229 | 256 |
230 Other configuration files | 257 Other configuration files |
231 ------------------------- | 258 ------------------------- |
232 | 259 |
233 Some extra configuration files and examples can be found here: | 260 Some example init.d script can be found here, for debian and gentoo: |
234 http://hg.python-works.com/rhodecode/files/tip/init.d | 261 |
235 | 262 https://rhodeocode.org/rhodecode/files/tip/init.d |
236 and also an celeryconfig file can be use from here: | 263 |
237 http://hg.python-works.com/rhodecode/files/tip/celeryconfig.py | |
238 | 264 |
239 Troubleshooting | 265 Troubleshooting |
240 --------------- | 266 --------------- |
241 | 267 |
242 - missing static files ? | 268 - missing static files ? |