I'm more of an engineer than a devops guy, so please excuse me if this is extremely basic.
My situation: I have a server on the example.edu network, so I don't control the main DNS interface to example.edu. Therefore I don't believe I can use DNSSimple or Zerigo. I do however have root on the server, and it has the following two hostnames:
My goal is to set up Apache to do the following.
First, when a visitor types in foo.example.edu they should see a static webpage:
http://foo.example.edu-> serve up a static webpage
Then, if the visitor types in bar.example.edu a URL rewrite should be executed and they should be viewing the HTTPS version of the site hosted on Heroku, as follows:
In particular, this should be a URL rewrite, so in the browser's address bar a visitor would see
How do I go about this? I figure I should use Apache mod_rewrite, and edit httpd.conf. I have just started looking at tutorials, but the main tricky part is that I don't have full control over the domain and want to make sure I set things up right.