Sonicwall redirect to different IP

I have leased line, with SonicWALL
Websites hosted in IIS

Server 1 IP is say  10.20.30.40     company1.mycompany.com
Server 2 IP is say  10.20.30.41    company2.mycompany.com

when client visits https://company1.mycompany.com/website
IIS returns website on server 1

when client visits https://company2.mycompany.com/website
IIS returns website on server 2

I want to ditch server 2, but let client keep their https://company2.mycompany.com/website link

can I do this in SonicWALL or other ?
rwallacejAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Trent SmithCommented:
Why don't you just change the IP address of the Server 2 to Server 1 in DNS and then verify that it is sending the traffic to the proper server.  This should have nothing to do with the firewall.
0
rwallacejAuthor Commented:
I want to only have this happen with WEBSITES

so if do to company2.mycompany.com on remote desktop,
or connect to it with SQL server database,
it still points to 10.20.30.41

so I don't think DNS would fix this
0
Trent SmithCommented:
You would have to update the link to point to the correct IP address then.
0
David Johnson, CD, MVPOwnerCommented:
if you want to ditch server2 you have to move the website to a directory on server1 AND detach the database from server 2 then reattach the sql server data files to server1 and modify the web.config to reflect the new connection string. also add a binding to company2.mycompany.com.
create a new website (right click on sites and select new website. add the location of the files you copied from server 2 and edit the bindings.  You also have to edit dns settings OR in your edge router use NAT to redirect tcp port 80 / 443 to server1

is server2 named company2 ??
0
Blue Street TechLast KnightCommented:
Hi rwallacej,

You can do that with host headers in IIS: http://it-notebook.org/iis/article/understanding_host_headers.htm.
• how to configure IIS6: https://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/883a9544-3f70-4d46-a6df-bbadbd1fe7de.mspx?mfr=true, and
• IIS7: https://technet.microsoft.com/en-us/library/cc753195%28v=ws.10%29.aspx

On the SonicWALL it would essentially be one Access Rules and corresponding NAP policies since you are using both site to resolve on one server provided that they are using the same Service/port(s).

Let me know how it goes!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Hardware Firewalls

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.