Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Is it possible to access vhosts/domains created on server but not directly via domain which is created.

I would like to have access in the form or similar.

IMPORTANT: I don't want to push users towards editing /etc/hosts file and adding the domain there locally to point to server and so on..

share|improve this question

closed as off-topic by HopelessN00b Jan 14 '15 at 8:33

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

I was working on an answer, but it had more questions than it did answers. This is possible, can you update the question with your folder layout for the main site and other sites as well. Different answers depending on the folder hierarchy – David Houde Apr 21 '13 at 10:45
ah, it is bit tricky. – mariotanenbaum Apr 21 '13 at 11:24
This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. – HopelessN00b Jan 14 '15 at 8:33
up vote 1 down vote accepted

For security reasons, I can not recommend to do this.

However, you can manipulate the default host templates located in:


Just run the httpdmng utility. This will recreate all vhost configuration files based on the template. /usr/local/psa/admin/bin/httpdmng --reconfigure-all

Instead of your prefered solution, I recommend you to put the whole damn thang behind a sub domain. Just add it as an alias to every vhost in the template, like

Remember to renew your template manipulations after updates. Don't lock them with chattr +i !

share|improve this answer
You sure about that? What about symbolic links? – David Houde Apr 21 '13 at 11:51
I've edited my answer. – mate64 Apr 21 '13 at 11:52

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