Hello,
I would like to switch from nginx to lslb, but I need help with the configuration
I'm currently using this nginx configuration:
I've just did this tutorial: http://www.wowtutorial.org/tutorial/80.html
but there isn't mentioned how to use the "Content aware: route request based on request content" feature.
I would like to switch from nginx to lslb, but I need help with the configuration
I'm currently using this nginx configuration:
Code:
upstream xyz {
server 192.168.0.4 weight=5;
server 192.168.0.3 weight=3;
server 127.0.0.1:81 weight=1;
}
server { # simple reverse-proxy
listen 80;
server_name www.xyz.com;
# upload fix
client_max_body_size 12m;
# serve static files
location ~ /(images|customavatars|customprofilepics|customgroupicons|signaturepics|albums|attachments|clientscript|iconimages|vbulletin_css|vbseo_sitemap)/ {
root /var/www/xyz/httpdocs/forum;
proxy_pass http://127.0.0.1:81;
}
# sitemaps
location ~ /sitemap_ {
root /var/www/xyz/httpdocs/forum;
proxy_pass http://127.0.0.1:81;
}
# pass requests for dynamic content to rails/turbogears/zope, et al
location / {
proxy_pass http://xyz;
}
but there isn't mentioned how to use the "Content aware: route request based on request content" feature.