##// END OF EJS Templates
merge
marcink -
r882:ec8262ba merge beta
parent child Browse files
Show More
@@ -178,7 +178,7 Sample config for nginx using proxy::
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 }
@@ -216,9 +216,36 in production.ini file::
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
@@ -230,11 +257,10 TODO !
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
235
261
236 and also an celeryconfig file can be use from here:
262 https://rhodeocode.org/rhodecode/files/tip/init.d
237 http://hg.python-works.com/rhodecode/files/tip/celeryconfig.py
263
238
264
239 Troubleshooting
265 Troubleshooting
240 ---------------
266 ---------------
General Comments 0
You need to be logged in to leave comments. Login now