[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"> \
&quot;L:/temp&quot;</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"> &quot;</FONT><FONT SIZE=2 \
FACE="Arial">C</FONT><FONT SIZE=2 FACE="Arial">:/temp&quot;</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:&nbsp;&nbsp; Owen Boyle \
[<A HREF="mailto:obo@bourse.ch">mailto:obo@bourse.ch</A>]</FONT></B> <BR><B><FONT \
SIZE=2 FACE="Arial">Sent:&nbsp;&nbsp;</FONT></B> <FONT SIZE=2 FACE="Arial">Thursday, \
January 31, 2002 12:57 PM</FONT> <BR><B><FONT SIZE=2 \
FACE="Arial">To:&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=2 \
FACE="Arial">users@httpd.apache.org</FONT> <BR><B><FONT SIZE=2 \
FACE="Arial">Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT \
SIZE=2 FACE="Arial">Re: Virtual directory for&nbsp; remote machine</FONT> </P>

<P><FONT SIZE=2 FACE="Arial">&gt; Valentina Rozov wrote:</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; Hi, Owen</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; Thank you for the fast answer.</FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; I tried to map my drives to the remote machine's \
directory.</FONT> <BR><FONT SIZE=2 FACE="Arial">&gt; Lets say L:\&nbsp;&nbsp; \
\\valen-ws\d$\temp</FONT> <BR><FONT SIZE=2 FACE="Arial">&gt; And added to httpd.conf \
:</FONT> <BR><FONT SIZE=2 FACE="Arial">&gt; </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alias /test1/ \
&quot;L:/temp/&quot;</FONT> <BR><FONT SIZE=2 FACE="Arial">&gt; </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Directory \
&quot;L:/temp&quot;&gt;</FONT> <BR><FONT SIZE=2 \
FACE="Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options Indexes \
FollowSymlinks MultiViews</FONT> <BR><FONT SIZE=2 \
FACE="Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride \
None</FONT> <BR><FONT SIZE=2 \
FACE="Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order \
allow,deny</FONT> <BR><FONT SIZE=2 \
FACE="Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from \
all</FONT> <BR><FONT SIZE=2 FACE="Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/Directory&gt;</FONT> <BR><FONT SIZE=2 FACE="Arial">&gt; </FONT>
<BR><FONT SIZE=2 FACE="Arial">&gt; In this case I get &quot;File not found&quot; \
error.</FONT> <BR><FONT SIZE=2 FACE="Arial">&gt; What do you mean by &quot;path to it \
is under the document root and</FONT> <BR><FONT SIZE=2 FACE="Arial">&gt; \
allowed&quot;? 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 &quot;Alias&quot; it says:</FONT> </P>

<P><FONT SIZE=2 FACE="Arial">&gt; Note that if you include a trailing / on the \
url-path then</FONT> <BR><FONT SIZE=2 FACE="Arial">&gt; the server will require a \
trailing / in order to expand the alias.</FONT> <BR><FONT SIZE=2 FACE="Arial">&gt; \
That is, if you use Alias /icons/ /usr/local/apache/icons/ then</FONT> <BR><FONT \
SIZE=2 FACE="Arial">&gt; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">Alias /test1 \
&quot;L:/temp&quot;</FONT> </P>

<P><FONT SIZE=2 FACE="Arial">I presume you then try to hit it with:</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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 &lt;URL:<A \
HREF="http://httpd.apache.org/userslist.html" \
TARGET="_blank">http://httpd.apache.org/userslist.html</A>&gt; 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