4.2.1.6. VirtualHost¶
4.2.1.6.1. Synopsis¶
Like web servers, you can define limitations depending on the virtualhost name you’re targetting.
4.2.1.6.2. Options¶
Name | Default | Values | Since version | Context |
---|---|---|---|---|
VirtualHost | null | name:port | 0.6 | Override default settings |
4.2.1.6.3. Examples¶
In this example you will see how to change a home directory depending on the used VirtualHost:
<Default>
home /home
</Default>
<VirtualHost en.mysite.com:22>
home /home/en.mysite.com
</VirtualHost>
<VirtualHost fr.mysite.com:22>
home /home/fr.mysite.com
</VirtualHost>
If you try to connect on fr.mysite.com, you will be redirected to /home/fr.mysite.com
folder.