[NTLUG:Discuss] Apache help
Paul Ingendorf
pauldy at wantek.net
Mon Dec 31 11:44:51 CST 2001
The first problem can probably be fixed by removing the ip that NATs to you and using the ip of the actual machine. That is remove any ips that aren't on your internal network and use whatever ip you see on eth0 for example.
As for the second question it is supposed to work like that for some advanced configs were the security could be compromised. As for the symbolic link that should only work if you have option for follow symlinks turned on in the config file.
Now for what you want to do use the <!--#include virtual="/somefile.inc"--> and you should be able to include the file based off whatever docroot you are in.
--
-->> mailto:pauldy at wantek.net
-->> http://www.wantek.net/
Running ....... Cos anything else would be a waste...
`:::' ....... ......
::: * `::. ::'
::: .:: .:.::. .:: .:: `::. :'
::: :: :: :: :: :: :::.
::: .::. .:: ::. `::::. .:' ::.
.:::.....................::' .::::..
-----Original Message-----
From: discuss-admin at ntlug.org [mailto:discuss-admin at ntlug.org]On Behalf
Of Greg Edwards
Sent: Saturday, December 29, 2001 11:10 AM
To: ntlug discuss
Subject: [NTLUG:Discuss] Apache help
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.
Internally my virtual hosts resolve correctly. However, when I setup my
virtual hosts for outside access all requests resolve to the first
defined vhost. I use a single IP to the outside world and I'm routed
into my webserver through a NAT device. Has anyone been able to make
this work? How?
The second is trying to use a single directory outside of the web space
to access include files for .shtml files.
I've tried to declare an alias as "/include/" "/path/include/" and then
using <!--#include file="/include/somefile.inc"--> it never resolves the
file. When I add a symbolic link to the directory that the web page is
in and use <!--#include file="include/somefile.inc"--> everything works
as advertised. Is this an apache bug, or never meant to work this way?
I am able to prevent access to the include directory but I'd rather not
have to create a link for every directory that I want to run a .shtml
file in.
TIA,
--
Greg Edwards
New Age Software, Inc.
http://www.nas-inet.com
_______________________________________________
http://www.ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list