Has anyone dealt with this before, and have any idea on how to make this work? We have an online app that operates three different instances of the application on three different ports :80,280,380. What we want to do, to avoid client demo situations where their office locks down certain ports is to have the client come in through a subdomain instead of a direct ip. Right now, if their network allows it, they can some in on http://xxx.xxx.xxx.xxx:80 What we want to setup is http://sub1.company.com, http://sub2.company.com, http://sub3.company.com Where subx corresponds to the particular port that the app is running on. Any ideas on how to make this work? Is this a mod rewrite scenario?
If you set up those 3 subdomains, then the user will come to each on port 80. I don't see the benefit to you? But, you could then issue a header redirect to the port you want.
Sorry, i should have clarified that: the users can come in on http://xxx.xxx.xxx.xxx:80, http://xxx.xxx.xxx.xxx:280, http://xxx.xxx.xxx.xxx:380 to access the 3 different instances of the application. That works. But i'd like to know, if it's possible to do a mod rewrite redirect if someone comes in on http://sub2.company.com it redirects it to http://xxx.xxx.xxx.xxx:280
Yes, you can do that through htaccess, or though a header send. Fact remains though, they'll still all be coming in on port 80 initially because that's what your http listener is listening to. http://sub2.company.com is equivalent to http://sub2.company.com:80 And, in all likelyhood, all three subdomains would be on the same box, and probably virtually hosted. That's why I don't think you get much advantage out of it.
Correct, all three subs are on the same box. We're running a dedicated server for this application and hosting terrabytes of data. So I guess the next question would be "how" to do this in htaccess?
Check the sticky thread, should tell you everything you ever wanted to know (and a whole load of stuff you didn't) about htaccess... http://forums.digitalpoint.com/showthread.php?t=23044