login about faq

We are trying to set up an SFTP server that is mapped to multiple hostnames, such as that the the hostname the user connects to determines their virtual home directory. For example, if the user connects to "example.com", the home directory should be "C:\example" (although "example.com" would work as well); if they connect to "foobar.com" the home directory should be "C:\foobar". Is there something like the %hostname% variable (which has the hostname connecting from)? Failing that, is there way to use an environment variable or blackboard field? Working with server 6.4.1 on Windows (2008 and 2012) but can upgrade if a later version has something that would do this.

asked Oct 22 '14 at 17:30

Kevin%20Vail's gravatar image

Kevin Vail
56161721

edited Oct 23 '14 at 00:13

Martin%20Dobsik's gravatar image

Martin Dobsik ♦
599126


Please check the very bottom of this Admin guide page. There is a %hostname% variable for Virtual folders.

link

answered Oct 23 '14 at 00:56

Joe%20-%20Tectia%20Support's gravatar image

Joe - Tectia Support ♦♦
55215

Oops, my wording wasn't clear. I knew about the %hostname% variable, but that gives the name of the system the user connected from, not the name they connected to.

(Oct 23 '14 at 14:53) Kevin Vail Kevin%20Vail's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×63
×55
×6
×2

Asked: Oct 22 '14 at 17:30

Seen: 2,789 times

Last updated: Oct 23 '14 at 14:53

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.