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 http://www.maindomain.com/~otherdomain.com 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..


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 site1.maindomain.com.

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

  • You sure about that? What about symbolic links? 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.