> Mark Frater writes:
>
> > Hi All,
> > I've set up sqwebmail with separate html template directories using the
ENV
> > VAR in apache.conf virtualhost configuration. This works sweet.
> >
> > hostname is ofcourse controlled by either the settings in the hostname
> > file in the sqwebmail home dir or by the domain name that is picked from
> > the dropdown menu (which I have also implemented, which also works
sweet)
> >
> > However, it occurred to me that since people are already going to a
> > different URL and are being pointed at a different html template as a
> > result, it should also be possible to set the hostname variable
> > according URL went to WITHOUT having to pick it from a
> > dropdown or type it in.
> >
> > Can the hostname be derived from the url or apache virtual host
> > configuration (ie by setting an ENV Var similar to what is done for the
> > html directory?
>
> From: "Sam Varshavchik" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, October 21, 2001 1:53 PM
> Subject: Re: Virtual Domain Host Names
>
> It is possible to put the hostname into a hidden field. There are three
> screens for logging in, and each screen needs to be modified, as such.
>
Hi Sam (et al),
Thanks for the tip. The 3 files you mention would be html template files
login.html, invalid.html and expired.html.
I've tried modifying login.html (for example) by adding <input type="hidden"
name="hostname" value="quicksilver.net.nz"> as shown below, but I'm still
getting the default hostname of the machine serving this http request.
What am I doing wrong?
<tr>
<td>User Id: </td>
<td><input type="text" size="16" name="username"
maxlength="128"></td>
<input type="hidden" name="hostname"
value="quicksilver.net.nz">
<td>[#h#] </td>
</tr>
<tr>
<td>Password: </td>
<td><input type="password" size="16" name="password"
maxlength="128"></td>
<td>
<input type="submit" value="Login" name="do.login"></td>
</tr>
Mark