##// END OF EJS Templates
docs: updated apache/nginx configs
marcink -
r120:abd64f5a default
parent child Browse files
Show More
@@ -9,24 +9,24 b' Here is a sample configuration file for '
9 9 ServerName hg.myserver.com
10 10 ServerAlias hg.myserver.com
11 11
12 ## uncomment root directive if you want to serve static files by nginx
13 ## requires static_files = false in .ini file
14 DocumentRoot /path/to/installation/rhodecode/public
12 ## uncomment root directive if you want to serve static files by
13 ## Apache requires static_files = false in .ini file
14 #DocumentRoot /path/to/rhodecode/installation/public
15 15
16 16 <Proxy *>
17 17 Order allow,deny
18 18 Allow from all
19 19 </Proxy>
20 20
21 #important !
22 #Directive to properly generate url (clone url) for pylons
21 ## Important !
22 ## Directive to properly generate url (clone url) for pylons
23 23 ProxyPreserveHost On
24 24
25 #rhodecode instance
26 ProxyPass / http://127.0.0.1:5000/
27 ProxyPassReverse / http://127.0.0.1:5000/
25 ## RhodeCode instance running
26 ProxyPass / http://127.0.0.1:10002/
27 ProxyPassReverse / http://127.0.0.1:10002/
28 28
29 #to enable https use line below
29 ## to enable https use line below
30 30 #SetEnvIf X-Url-Scheme https HTTPS=1
31 31
32 32 </VirtualHost>
@@ -7,11 +7,11 b' Use the following example to configure N'
7 7
8 8 upstream rc {
9 9
10 server 127.0.0.1:5000;
10 server 127.0.0.1:10002;
11 11
12 12 # add more instances for load balancing
13 # server 127.0.0.1:5001;
14 # server 127.0.0.1:5002;
13 # server 127.0.0.1:10003;
14 # server 127.0.0.1:10004;
15 15 }
16 16
17 17 ## gist alias
@@ -58,14 +58,15 b' Use the following example to configure N'
58 58
59 59 ## uncomment root directive if you want to serve static files by nginx
60 60 ## requires static_files = false in .ini file
61 # root /path/to/installation/rhodecode/public;
61 # root /path/to/rhodecode/installation/public;
62 62
63 63 include /etc/nginx/proxy.conf;
64 location / {
65 try_files $uri @rhode;
66 }
64
65 location / {
66 try_files $uri @rhode;
67 }
67 68
68 69 location @rhode {
69 proxy_pass http://rc;
70 }
70 proxy_pass http://rc;
71 }
71 72 }
General Comments 0
You need to be logged in to leave comments. Login now