Forum Discussion
Multiple Websites on Single VIP
Hi,
I tried below config but no luck.
ltm virtual VS_RProxy_80 { description VS_RProxy_80 destination 192.168.216.33:http ip-protocol tcp mask 255.255.255.255 partition REVERSE_PROXY profiles { /Common/http { } /Common/tcp { } } rules { /Common/_sys_https_redirect } source 0.0.0.0/0 vlans { RPROXY_EXT_316 } vlans-enabled vs-index 244
ltm virtual VS_RProxy_443 {
description VS_RProxy_443
destination 192.168.216.33:https
ip-protocol tcp
mask 255.255.255.255
partition REVERSE_PROXY
persist {
Reverse_Proxy_Persistence {
default yes
}
}
profiles {
/Common/http { }
/Common/tcp { }
Reverse_Proxy_Cert {
context clientside
}
}
rules {
TEST-1
PROXY_TEST2
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vlans {
RPROXY_EXT_316
}
vlans-enabled
vs-index 242
ltm rule TEST-1 {
partition REVERSE_PROXY
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"enoclubricants.com" {
pool ENOCLUBRICANTSPP1
}
"enocvettingsiredev.enoc.com" {
pool ENOCVETTING
}
"wrench.enoc.com" {
pool WRENCH_POOL
}
default {
Use pool attached to virtual - no action required
}
}
ltm rule PROXY_TEST2 {
partition REVERSE_PROXY
when HTTP_REQUEST {
set my_loc "https://[HTTP::host][HTTP::uri]" TCP::respond "HTTP/1.1 301 Moved Permanently\r\nLocation: $my_loc\r\nConnection: close\r\nContent-Length: 0\r\n\r\n" TCP::close }
But still not able to see any web page.
- Brad_ParkerNov 21, 2014
Cirrus
I added a comment above for the previous question. Looking at your config here, do you have one certificate that will cover the three different domains? or do you have three different certificates? You only have one client-ssl profile attached. If you have three different certificates, you will need three different profiles with SNI enable by using the "Server Name" field mentioned in my first comment. - Wasim_Hassan_13Nov 22, 2014
Nimbostratus
yes i have the certificate which has all websites names and i have recall the exact the same profile in the client ssl profile.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com