OT:Apache question 2

Info info at cmis-inc.com
Sat Feb 21 18:26:54 UTC 2004


Please forgive the intrusion on this thread. But I've got a somewhat related question.

I have my web page on the internet on my RedHat8 server(apache).  Also on my little network I have a
Win2K server running an application which currently only runs on M$ platforms.  (I'd prefer to have the user 
go through the Apache server to get to the M$ app ... www.mydomain.com/app   (or http://win2k/app from inside).

While this works like a champ from inside my lan, it doesn't work worth a hoot from outside.  (I end up exposing IIS to the world and I'm just too busy to keep up with the security patches etc. to keep social diseases out.) 

Should I add the Win2K virtual directorys to Apache in a manner similar to your suggestion.  
  /Win2K/App  
 	<Directory //Win2k/App ...... 
  /Win2K/App/SubDirectory 
	<Directory //Win2K/App/Subdirectory ... 
???

Or am I wandering down the wrong fork in the road and need to try something else.  
(Is there a "young person's guide to all of this funny networking stuff.."?) 

thanks in advance
ghd

-----Original Message-----
From: redhat-install-list-admin at redhat.com
[mailto:redhat-install-list-admin at redhat.com]On Behalf Of Mark Knecht
Sent: Saturday, February 21, 2004 7:42 AM
To: Redhat-Install-List
Subject: Re: OT:Apache question


On Sat, 2004-02-21 at 06:55, Chris Hewitt wrote:

> Mark,
> 
> Looking at your original post, you have a single site. The virtualhost 
> directives are not needed for this so if you don't want to get deep into 
> Apache httpd administration you may like to avoid using them. They are 
> all commented out by default.
> 
> I don't have a commonapache2.conf file either. I've never heard of it so 
> I would think it is a customisation someone has put in.
> 
> Rick's single "Alias" line should be all you need.
> 
> HTH
> Chris
Chris,
   Hi. With some of Rick's suggestions I sort of have it working, but
not totally. I can see things correctly (sort of) when sitting on the
machine running Apache, but if I go to another machine on the network
here in my house it only partially works. I am using Rick's suggestion
about the Alias. Here's the portion of apache2.conf that I modified:

<SNIP>
Alias /files "/mnt/data/webfiles"


    <Directory "/mnt/data/webfiles">
            Options Indexes FollowSymlinks MultiViews
            AllowOverride None
            Order allow,deny
            Allow from all
    </Directory>
<SNIP>

Here are the results:

>From the server:

1) Test- Access http://marksmusic.myvnc.com
Result - address bar says http://marksmusic.myvnc.com and the page
displays correctly.

2) Test- Access http://marksmusic.myvnc.com/files
Result - address bar changes to http://wizard.knechthome.com/files/ but
the directory listing displays correctly. I can go so subdirectories and
I can download files. It only works (I think) because I have
wizard.knechthome.com in my hosts file.

>From another machine here at home:

3) Test- Access http://marksmusic.myvnc.com
Result - address bar says http://marksmusic.myvnc.com and the page
displays correctly.

4) Test- Access http://marksmusic.myvnc.com/files
Result - Page fails to display and I get a message
"http://wizard.knechthome.com/files/ not found"

So, the results are consistently incorrect. Why does Apache insist on
remapping the name I as for ONLY when I append the directory name?

   I think Rick's suggestion about <Virtual *> would probably fix this,
and I'm looking around for where to best put that, but it seems to me
something is set up incorrectly elsewhere causing this remapping of the
name to a local name instead of the myvnc.com address that would work
for all machines coming to this machine.

   Thanks for your help.

- Mark








More information about the Redhat-install-list mailing list