[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-users
Subject: RE: Virtual directory for remote machine
From: Valentina Rozov <valentinar () tecnomatix ! com>
Date: 2002-01-31 11:05:39
[Download RAW message or body]
Hi, Owen
I do use trailing slashes in both places.
If I change
Alias /test1/ "L:/temp"
To
Alias /test1/ "C:/temp"
I get to this directory. The problem is with remote only.
Thanks,
Valentina
-----Original Message-----
From: Owen Boyle [mailto:obo@bourse.ch]
Sent: Thursday, January 31, 2002 12:57 PM
To: users@httpd.apache.org
Subject: Re: Virtual directory for remote machine
> Valentina Rozov wrote:
>
> Hi, Owen
> Thank you for the fast answer.
>
> I tried to map my drives to the remote machine's
directory.
> Lets say L:\ \\valen-ws\d$\temp
> And added to httpd.conf :
>
> Alias /test1/ "L:/temp/"
>
> <Directory "L:/temp">
> Options Indexes FollowSymlinks MultiViews
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> In this case I get "File not found" error.
> What do you mean by "path to it is under the document root
and
> allowed"? The document root is on another disk.
Actually, if you use Alias, you don't need to put the path
under the
Docroot. If the L-disk is mounted on your machine and can be
read by any
user then there should be no reason apache can't read it...
Your setup does have one potential bug - you are using
trailing
slashes... If you read the documentation page for "Alias" it
says:
> Note that if you include a trailing / on the url-path then
> the server will require a trailing / in order to expand
the alias.
> That is, if you use Alias /icons/ /usr/local/apache/icons/
then
> the url /icons will not be aliased.
Try it without the trailing slashes, i.e.
Alias /test1 "L:/temp"
I presume you then try to hit it with:
http://your-server/test1
Rgds,
Owen Boyle.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP
Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more
info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: Virtual directory for remote machine</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">Hi, Owen</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I do use</FONT> <FONT SIZE=2 FACE="Arial">trailing \
slashes</FONT><FONT SIZE=2 FACE="Arial"> in both places.</FONT> <BR><FONT SIZE=2 \
FACE="Arial">If I change </FONT> <BR><FONT SIZE=2 FACE="Arial">Alias \
/test1</FONT><FONT SIZE=2 FACE="Arial">/</FONT><FONT SIZE=2 FACE="Arial"> \
"L:/temp"</FONT> <BR><FONT SIZE=2 FACE="Arial">To </FONT>
<BR><FONT SIZE=2 FACE="Arial">Alias /test1</FONT><FONT SIZE=2 \
FACE="Arial">/</FONT><FONT SIZE=2 FACE="Arial"> "</FONT><FONT SIZE=2 \
FACE="Arial">C</FONT><FONT SIZE=2 FACE="Arial">:/temp"</FONT> <BR><FONT SIZE=2 \
FACE="Arial">I get to this directory. The problem is with remote only.</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">Thanks,</FONT>
<BR><FONT SIZE=2 FACE="Arial">Valentina</FONT>
</P>
<BR>
<BR>
<BR>
<UL><UL>
<P><A NAME="_MailData"><FONT SIZE=2 FACE="Arial">-----Original \
Message-----</FONT></A> <BR><B><FONT SIZE=2 FACE="Arial">From: Owen Boyle \
[<A HREF="mailto:obo@bourse.ch">mailto:obo@bourse.ch</A>]</FONT></B> <BR><B><FONT \
SIZE=2 FACE="Arial">Sent: </FONT></B> <FONT SIZE=2 FACE="Arial">Thursday, \
January 31, 2002 12:57 PM</FONT> <BR><B><FONT SIZE=2 \
FACE="Arial">To: </FONT></B> <FONT SIZE=2 \
FACE="Arial">users@httpd.apache.org</FONT> <BR><B><FONT SIZE=2 \
FACE="Arial">Subject: </FONT></B> <FONT \
SIZE=2 FACE="Arial">Re: Virtual directory for remote machine</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">> Valentina Rozov wrote:</FONT>
<BR><FONT SIZE=2 FACE="Arial">> </FONT>
<BR><FONT SIZE=2 FACE="Arial">> Hi, Owen</FONT>
<BR><FONT SIZE=2 FACE="Arial">> Thank you for the fast answer.</FONT>
<BR><FONT SIZE=2 FACE="Arial">> </FONT>
<BR><FONT SIZE=2 FACE="Arial">> I tried to map my drives to the remote machine's \
directory.</FONT> <BR><FONT SIZE=2 FACE="Arial">> Lets say L:\ \
\\valen-ws\d$\temp</FONT> <BR><FONT SIZE=2 FACE="Arial">> And added to httpd.conf \
:</FONT> <BR><FONT SIZE=2 FACE="Arial">> </FONT>
<BR><FONT SIZE=2 FACE="Arial">> Alias /test1/ \
"L:/temp/"</FONT> <BR><FONT SIZE=2 FACE="Arial">> </FONT>
<BR><FONT SIZE=2 FACE="Arial">> <Directory \
"L:/temp"></FONT> <BR><FONT SIZE=2 \
FACE="Arial">> Options Indexes \
FollowSymlinks MultiViews</FONT> <BR><FONT SIZE=2 \
FACE="Arial">> AllowOverride \
None</FONT> <BR><FONT SIZE=2 \
FACE="Arial">> Order \
allow,deny</FONT> <BR><FONT SIZE=2 \
FACE="Arial">> Allow from \
all</FONT> <BR><FONT SIZE=2 FACE="Arial">> \
</Directory></FONT> <BR><FONT SIZE=2 FACE="Arial">> </FONT>
<BR><FONT SIZE=2 FACE="Arial">> In this case I get "File not found" \
error.</FONT> <BR><FONT SIZE=2 FACE="Arial">> What do you mean by "path to it \
is under the document root and</FONT> <BR><FONT SIZE=2 FACE="Arial">> \
allowed"? The document root is on another disk.</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">Actually, if you use Alias, you don't need to put the \
path under the</FONT> <BR><FONT SIZE=2 FACE="Arial">Docroot. If the L-disk is mounted \
on your machine and can be read by any</FONT> <BR><FONT SIZE=2 FACE="Arial">user then \
there should be no reason apache can't read it...</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">Your setup does have one potential bug - you are using \
trailing</FONT> <BR><FONT SIZE=2 FACE="Arial">slashes... If you read the \
documentation page for "Alias" it says:</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">> Note that if you include a trailing / on the \
url-path then</FONT> <BR><FONT SIZE=2 FACE="Arial">> the server will require a \
trailing / in order to expand the alias.</FONT> <BR><FONT SIZE=2 FACE="Arial">> \
That is, if you use Alias /icons/ /usr/local/apache/icons/ then</FONT> <BR><FONT \
SIZE=2 FACE="Arial">> the url /icons will not be aliased.</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">Try it without the trailing slashes, i.e.</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial">Alias /test1 \
"L:/temp"</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">I presume you then try to hit it with:</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial"><A \
HREF="http://your-server/test1" TARGET="_blank">http://your-server/test1</A></FONT> \
</P>
<P><FONT SIZE=2 FACE="Arial">Rgds,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Owen Boyle.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">---------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2 FACE="Arial">The official User-To-User support forum of the Apache \
HTTP Server Project.</FONT> <BR><FONT SIZE=2 FACE="Arial">See <URL:<A \
HREF="http://httpd.apache.org/userslist.html" \
TARGET="_blank">http://httpd.apache.org/userslist.html</A>> for more info.</FONT> \
<BR><FONT SIZE=2 FACE="Arial">To unsubscribe, e-mail: \
users-unsubscribe@httpd.apache.org</FONT> <BR><FONT SIZE=2 FACE="Arial">For \
additional commands, e-mail: users-help@httpd.apache.org</FONT> </P>
</UL></UL>
</BODY>
</HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic