-
-
Save michaelklishin/10eae3a1ab57c2a8cb72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream rabbit1 { | |
server 127.0.0.1:15672; | |
} | |
upstream rabbit2 { | |
server 127.0.0.1:15673; | |
} | |
upstream rabbit3 { | |
server 127.0.0.1:15674; | |
} | |
server { | |
server_name rabbit1.rabbitproxy.local; | |
index index.htm index.html; | |
root /Users/antares/Tools/rabbitmq/cluster1/node1; | |
location / { | |
proxy_pass http://rabbit1; | |
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; | |
proxy_redirect off; | |
proxy_buffering off; | |
proxy_set_header Host rabbit1.rabbitproxy.local; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
} | |
server { | |
server_name rabbit2.rabbitproxy.local; | |
index index.htm index.html; | |
root /Users/antares/Tools/rabbitmq/cluster1/node2; | |
location / { | |
proxy_pass http://rabbit2; | |
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; | |
proxy_redirect off; | |
proxy_buffering off; | |
proxy_set_header Host rabbit2.rabbitproxy.local; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
} | |
server { | |
server_name rabbit3.rabbitproxy.local; | |
index index.htm index.html; | |
root /Users/antares/Tools/rabbitmq/cluster1/node3; | |
location / { | |
proxy_pass http://rabbit3; | |
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504; | |
proxy_redirect off; | |
proxy_buffering off; | |
proxy_set_header Host rabbit3.rabbitproxy.local; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you have a look at this? I got an error
user openlearning not found: /api/whoami
when using this apache virtual host config file:<VirtualHost *:80>
ProxyPreserveHost On
# DocumentRoot /var/www