LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Apache virtual hosts & NAT

[ILUG] Apache virtual hosts & NAT

Robert Synnott rsynnott at gmail.com
Fri Dec 31 15:49:44 GMT 2004


On Fri, 31 Dec 2004 08:47:05 +0000, Ruairi Newman <ruairi at tech-mad.org> wrote:
> 
> Hi all,
> 
> The situation is as follows:-
> 
> I have a Debian Woody box (IP 192.168.1.25) on an eircom DSL line.
> Currently, port 80 (external) on the Netopia Cayman is mapped to port 80
> on the Debian box, which is fine if I want to visit the website at
> www.domain.com .
> 
> However, I have recently set up a webmail interface, and would like to
> use mail.domain.com to point to a different Apache DocumentRoot.
> 
> I should point out (in case it's relevant) that reverse DNS is not set
> up on this as nobody I've spoken to in eircom seemed to understand what
> reverse DNS is.
> 
> The current stanza in Apache does not provide the desired result, I hope
> someone may be able to assist:-
> 
> NameVirtualHost 192.168.1.25:80
> <VirtualHost 192.168.1.25:80>
>     ServerName mail.domain.com
>     ServerAlias mail.*
>     ServerAdmin postmaster at domain.com
>     DocumentRoot /var/www/webmail
> </VirtualHost>
> 
> Any ideas?
> 
> Thanks,
> 
> Ruairí
> 
>
Just a guess (I'm not great on this stuff) but the IP address used in
the VirtualHost block should possibly be your external IP, as that's
what's probably in the request.
Rob.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell