You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jeff Trawick <tr...@gmail.com> on 2010/12/03 14:53:24 UTC

[users@httpd] httpd on Windows -- can access UNC paths from service but not mapped drives

e.g., this works:

Alias /something //machinename/directory

and this doesn't:

Alias /else z:/foo


I see this question raised a number of times, but I don't see any
definitive steps to resolve.  Any hints?

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd on Windows -- can access UNC paths from service but not mapped drives

Posted by Jeff Trawick <tr...@gmail.com>.
On Fri, Dec 3, 2010 at 12:18 PM, Eric Covener <co...@gmail.com> wrote:
> On Fri, Dec 3, 2010 at 10:41 AM, Jeff Trawick <tr...@gmail.com> wrote:
>> Thanks, all!   Does this look reasonable?
>>
>> Index: platform/windows.xml
>> ===================================================================
>> --- platform/windows.xml        (revision 1041847)
>> +++ platform/windows.xml        (working copy)

> Would be nice to have the non-intuitive <Directory //imagehost/...> as
> well in the example.

thanks/done!

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: [users@httpd] httpd on Windows -- can access UNC paths from service but not mapped drives

Posted by Eric Covener <co...@gmail.com>.
On Fri, Dec 3, 2010 at 10:41 AM, Jeff Trawick <tr...@gmail.com> wrote:
> Thanks, all!   Does this look reasonable?
>
> Index: platform/windows.xml
> ===================================================================
> --- platform/windows.xml        (revision 1041847)
> +++ platform/windows.xml        (working copy)
> @@ -757,4 +757,33 @@
>     80 to attempt to bypass firewall issues.</p>
>   </section>
>
> +  <section id="windrivemap">
> +    <title>Configuring Access to Network Resources</title>
> +
> +  <p>Access to files over the network can be specified using two
> +  mechanisms provided by Windows:</p>
> +
> +  <dl>
> +    <dt>Mapped drive letters</dt>
> +    <dd>e.g., <code>Alias /images/ Z:/</code></dd>
> +
> +    <dt>UNC paths</dt>
> +    <dd>e.g., <code>Alias /images/ //imagehost/www/images/</code></dd>
> +  </dl>
> +
> +  <p>Mapped drive letters allow the administrator to maintain the
> +  mapping to a specific machine and path outside of the Apache httpd
> +  configuration.  However, these mappings are associated only with
> +  interactive sessions and are not directly available to Apache httpd
> +  when it is started as a service.  <strong>Use only UNC paths for
> +  network resources in httpd.conf</strong> so that the resources can
> +  be accessed consistently regardless of how Apache httpd is started.
> +  (Arcane and error prone procedures may work around the restriction
> +  on mapped drive letters, but this is not recommended.)</p>
> +
> +  <p>When running Apache httpd as a service, you must create a
> +  separate account in order to access network resources, as described
> +  above.</p>
> +  </section>
> +
>  </manualpage>
>

Would be nice to have the non-intuitive <Directory //imagehost/...> as
well in the example.

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: [users@httpd] httpd on Windows -- can access UNC paths from service but not mapped drives

Posted by Jeff Trawick <tr...@gmail.com>.
Thanks, all!   Does this look reasonable?

Index: platform/windows.xml
===================================================================
--- platform/windows.xml	(revision 1041847)
+++ platform/windows.xml	(working copy)
@@ -757,4 +757,33 @@
     80 to attempt to bypass firewall issues.</p>
   </section>

+  <section id="windrivemap">
+    <title>Configuring Access to Network Resources</title>
+
+  <p>Access to files over the network can be specified using two
+  mechanisms provided by Windows:</p>
+
+  <dl>
+    <dt>Mapped drive letters</dt>
+    <dd>e.g., <code>Alias /images/ Z:/</code></dd>
+
+    <dt>UNC paths</dt>
+    <dd>e.g., <code>Alias /images/ //imagehost/www/images/</code></dd>
+  </dl>
+
+  <p>Mapped drive letters allow the administrator to maintain the
+  mapping to a specific machine and path outside of the Apache httpd
+  configuration.  However, these mappings are associated only with
+  interactive sessions and are not directly available to Apache httpd
+  when it is started as a service.  <strong>Use only UNC paths for
+  network resources in httpd.conf</strong> so that the resources can
+  be accessed consistently regardless of how Apache httpd is started.
+  (Arcane and error prone procedures may work around the restriction
+  on mapped drive letters, but this is not recommended.)</p>
+
+  <p>When running Apache httpd as a service, you must create a
+  separate account in order to access network resources, as described
+  above.</p>
+  </section>
+
 </manualpage>

On Fri, Dec 3, 2010 at 9:13 AM, Joost de Heer <jo...@sanguis.xs4all.nl> wrote:
> On Fri, December 3, 2010 14:53, Jeff Trawick wrote:
>> e.g., this works:
>>
>> Alias /something //machinename/directory
>>
>> and this doesn't:
>>
>> Alias /else z:/foo
>
> Does the Z-drive exist in the context of the user running httpd?
>
>> I see this question raised a number of times, but I don't see any
>> definitive steps to resolve.  Any hints?
>
> http://stackoverflow.com/questions/182750/how-to-map-a-network-drive-to-be-used-by-a-service
>
> Joost
>
> ---------------------------------------------------------------------
> 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
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



-- 
Born in Roswell... married an alien...

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: [users@httpd] httpd on Windows -- can access UNC paths from service but not mapped drives

Posted by Jeff Trawick <tr...@gmail.com>.
Thanks, all!   Does this look reasonable?

Index: platform/windows.xml
===================================================================
--- platform/windows.xml	(revision 1041847)
+++ platform/windows.xml	(working copy)
@@ -757,4 +757,33 @@
     80 to attempt to bypass firewall issues.</p>
   </section>

+  <section id="windrivemap">
+    <title>Configuring Access to Network Resources</title>
+
+  <p>Access to files over the network can be specified using two
+  mechanisms provided by Windows:</p>
+
+  <dl>
+    <dt>Mapped drive letters</dt>
+    <dd>e.g., <code>Alias /images/ Z:/</code></dd>
+
+    <dt>UNC paths</dt>
+    <dd>e.g., <code>Alias /images/ //imagehost/www/images/</code></dd>
+  </dl>
+
+  <p>Mapped drive letters allow the administrator to maintain the
+  mapping to a specific machine and path outside of the Apache httpd
+  configuration.  However, these mappings are associated only with
+  interactive sessions and are not directly available to Apache httpd
+  when it is started as a service.  <strong>Use only UNC paths for
+  network resources in httpd.conf</strong> so that the resources can
+  be accessed consistently regardless of how Apache httpd is started.
+  (Arcane and error prone procedures may work around the restriction
+  on mapped drive letters, but this is not recommended.)</p>
+
+  <p>When running Apache httpd as a service, you must create a
+  separate account in order to access network resources, as described
+  above.</p>
+  </section>
+
 </manualpage>

On Fri, Dec 3, 2010 at 9:13 AM, Joost de Heer <jo...@sanguis.xs4all.nl> wrote:
> On Fri, December 3, 2010 14:53, Jeff Trawick wrote:
>> e.g., this works:
>>
>> Alias /something //machinename/directory
>>
>> and this doesn't:
>>
>> Alias /else z:/foo
>
> Does the Z-drive exist in the context of the user running httpd?
>
>> I see this question raised a number of times, but I don't see any
>> definitive steps to resolve.  Any hints?
>
> http://stackoverflow.com/questions/182750/how-to-map-a-network-drive-to-be-used-by-a-service
>
> Joost
>
> ---------------------------------------------------------------------
> 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
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



-- 
Born in Roswell... married an alien...

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd on Windows -- can access UNC paths from service but not mapped drives

Posted by Joost de Heer <jo...@sanguis.xs4all.nl>.
On Fri, December 3, 2010 14:53, Jeff Trawick wrote:
> e.g., this works:
>
> Alias /something //machinename/directory
>
> and this doesn't:
>
> Alias /else z:/foo

Does the Z-drive exist in the context of the user running httpd?

> I see this question raised a number of times, but I don't see any
> definitive steps to resolve.  Any hints?

http://stackoverflow.com/questions/182750/how-to-map-a-network-drive-to-be-used-by-a-service

Joost

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd on Windows -- can access UNC paths from service but not mapped drives

Posted by Eric Covener <co...@gmail.com>.
On Fri, Dec 3, 2010 at 8:53 AM, Jeff Trawick <tr...@gmail.com> wrote:
> e.g., this works:
>
> Alias /something //machinename/directory
>
> and this doesn't:
>
> Alias /else z:/foo
>
>
> I see this question raised a number of times, but I don't see any
> definitive steps to resolve.  Any hints?

I believed it to be a dead end for apache-as-a-service, since the
drive mappings are something related to the actual interactive user
session and not system-wide.

There is some good info ITT on the more general services-vs-shares :
http://stackoverflow.com/questions/792868/how-does-one-map-network-drive-from-windows-service

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org