Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an EC2 instance running Redmine and myPHPadmin at https://myElasticIP/redmine and https://myElasticIP/phpmyadmin.

I have a domain name registered with namecheap:

Using Route 53, I have customized the DNS of (through the namecheap interface) to use the delegate NS's in Route 53, so going to will automatically reference myelasticIP instead.

How do I get it so that going to references https://myElasticIP/redmine and references https://myElasticIP/myphpadmin? (without using URL Frames or URL redirect...I want to remain in the address bar)

share|improve this question
up vote 3 down vote accepted

You can't do that with DNS alone - you'll need to get some HTTP involved somewhere.

I'd just create two vhosts, one for and one for, and just point their DocumentRoot to the correct location on your filesystem.

For instance, if this is your vhost for

<VirtualHost *:80>
    DocumentRoot /var/www

Then you'd create the following additional vhosts:

<VirtualHost *:80>
    DocumentRoot /var/www/redmine


<VirtualHost *:80>
    DocumentRoot /var/www/myphpadmin

Additionally, you'll need to create two new DNS names for the two new vhosts. DNS CNAME records should be created and, both pointing to

share|improve this answer
DNS CNAME records should be created and, both pointing to Just to verify, should they point to the elastic IP or the domain name? – David Kaczynski Nov 11 '12 at 3:07
They should point to the domain name. – EEAA Nov 11 '12 at 3:10
This is helping, but I still have an issue. I am using the rewrite mod to force port 80 connections to be rewritten to https, RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}/redmine [R]. This is resulting in requests for to go to Any suggestions? – David Kaczynski Nov 11 '12 at 3:21
Please post that as a separate question. – EEAA Nov 11 '12 at 3:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.