Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have: - root account on a machine where I've just installed Apache 2.2 and other stuff. - The machine has a public IP but resides behind a firewall and - only ports 80 and 22 are open. - I have registered a domain (say example.com) that translates to the public IP of the machine, but - I don't have access to DNS servers where my example.com is registered.

I need to set up a few web based services on the machine, e.g. a user forum, git repository with WebDAV, etc. I presume I can do this with virtual hosts, right?

But:

1) is it possible to set up 2-3 virtual hosts without a divine intervention of our system administrator? This actually I would like to avoid it at all costs

2) I the answer for 1) is NO, what is the easiest way to set up virtual hosts. For example, can I register subdomain1.example.com, subdomain2.example.com etc in other DNS servers?

share|improve this question
3  
Are you afraid of sysadmins? We're all bark and no bite... –  Kyle Smith Jul 5 '11 at 20:29
    
A better question for you to ask might be "How can I stop worrying and learn to love my sysadmin?" Seriously, doing this sort of stuff is what we're here for. If you're doing something shady, just stop it. –  womble Jul 5 '11 at 22:36
add comment

1 Answer

up vote 1 down vote accepted

1) is it possible to set up 2-3 virtual hosts without a divine intervention of our system administrator? This actually I would like to avoid it at all costs

No, apache's configuration needs to be updated and it needs to be restarted to activate virtualhosts. So unless your sysadmin has given you sudo access to do these things, you're out of luck.

2) I the answer for 1) is NO, what is the easiest way to set up virtual hosts. For example, can I register subdomain1.example.com, subdomain2.example.com etc in other DNS servers?

No, you'll need to create the additional DNS records in the same place that's hosting DNS for example.com.

share|improve this answer
    
I have the root account on the machine where Apache is installed, so this is not a problem. –  tnorgd Jul 5 '11 at 20:22
    
Then for the apache piece, all you need to do is follow any one of the myriad apache virtualhost how-to guides kicking around here or elsewhere on the internet. That still won't help you with your DNS problem, though. –  EEAA Jul 5 '11 at 20:24
    
Depending on your DNS provider, it's possible to add the DNS record for *.example.com. For example goddady gives that choice. –  ghm1014 Jul 5 '11 at 22:45
add comment

Your Answer

 
discard

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.