[NTLUG:Discuss] Apache help
Greg Edwards
greg at nas-inet.com
Mon Dec 31 16:32:41 CST 2001
Jack Snodgrass wrote:
>
> > I've got 2 problems that I can't seem to get resolved with Apache.
> >
> > The first is trying to get named vhosts to work through a NAT setup.
> >
>
> do you have
>
> NameVirtualHost xxx.xxx.xxx.xxx
> where xxx.xxx.xxx.xxx is your 'real' IP Address
>
> and sections like:
> <VirtualHost xxx.xxx.xxx.xxx>
> ServerAdmin webmaster at somesite.com
> lDocumentRoot /some/document/root
> ServerName somesite.com
> ErrorLog logs/somesite.com-error_log
> TransferLog logs/somesite.com-access_log
> </VirtualHost>
>
> the namevirtualhost with the IP Address says that users connecting to that
> address
> may be doing a virtutalhost request and the <virtualhost></virtualhost>
> stuff next
> maps them to the servername that they are trying to get too.
>
> > The second is trying to use a single directory outside of the web space
> > to access include files for .shtml files.
> >
>
> #include file can't start with a '/'.
> #inclide virutal can, but it's located off of your document root.
>
> jack
>
> > --
[vhost]
I've tried with both the internal and external IP declared as
NameVirtualHost xxx.xxx.xxx.xxx and didn't make any difference. I
haven't tried with <VirtualHost xxx.xxx.xxx.xxx> section yet. Using
<VirtualHost site.domain> with NameVirtualHost xxx.xxx.xxx.xxx was the
setup I had working internally.
[include]
My understanding was that any directive could use an Alias to access
another directory outside of the webspace. Is there a limit to which
directives can use an Alias? I'm able to Alias my icons, cgi-bin (of
course) and even a directory containing my Error pages.
--
Greg Edwards
New Age Software, Inc.
http://www.nas-inet.com
More information about the Discuss
mailing list