\documentclass{article}
\usepackage{ulem}
\pagestyle{headings}
\begin{document}
\part{ Specifying multi-domain jails in Gollem FTP}
Not exactly documented, most people may assume that setting an FTP jail is restricted to absolute paths in Gollem's \texttt{ backend.php }.

This is clearly not suitable for servers where users log into virtual sites under different domains. Two styles of jails are then desired:

\renewcommand{\labelenumi}{\arabic{enumi}}
\begin{enumerate}
\item{The user is restricted to \texttt{ /path/to/site-root/home/user }}
\item{The user is restricted to \texttt{ /path/to/site-root } (suitable for site owners)}
\end{enumerate}
Trouble is, the site-root location is a variable.


\noindent\rule{\textwidth}{1pt}
(section describing userhome-relative paths for root and home deleted)


\noindent\rule{\textwidth}{1pt}
(later\ldots)

Turns out the problem was wrongly posed.

\begin{itemize}
\item{FTP jail is normally handled by the FTP server in its configuration. proftp for example allows domain-specific jails. Fine.}
\item{\textit{Problem} is actually to dynamically set 'hostspec' to be the current user's domain so that one-click login to ftp works with correct ftp-server-resolving of appropriate jail root.}
\end{itemize}
Is for example the current domain running horde available as\newline
 'hostspec' => \$GLOBALS['something\ldots'],

For that matter, is there any quick way to see what global values are available?


\noindent\rule{\textwidth}{1pt}
Possible solutions\ldots

'hostspec' => \$\_SERVER['SERVER\_NAME'],\newline
which would howver need to be recast from e.g. 'webmail.example.com' to 'ftp.example.com'

And if ftp-login to explicit IP correctly references the appropriate virtual server configuration for jail path:\newline
 'hostspec' => \$\_SERVER['SERVER\_ADDR'],

The last works in my setup at least.

\end{document}
