|
43 | 43 | <li><img alt="" src="../images/down.gif" /> <a href="#winsvc">Running Apache as a Service</a></li> |
44 | 44 | <li><img alt="" src="../images/down.gif" /> <a href="#wincons">Running Apache as a Console Application</a></li> |
45 | 45 | <li><img alt="" src="../images/down.gif" /> <a href="#test">Testing the Installation</a></li> |
| 46 | +<li><img alt="" src="../images/down.gif" /> <a href="#windrivemap">Configuring Access to Network Resources</a></li> |
46 | 47 | </ul></div> |
47 | 48 | <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> |
48 | 49 | <div class="section"> |
|
759 | 760 | services include other WWW servers, some firewall implementations, |
760 | 761 | and even some client applications (such as Skype) which will use port |
761 | 762 | 80 to attempt to bypass firewall issues.</p> |
| 763 | + </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> |
| 764 | +<div class="section"> |
| 765 | +<h2><a name="windrivemap" id="windrivemap">Configuring Access to Network Resources</a></h2> |
| 766 | + |
| 767 | + |
| 768 | + <p>Access to files over the network can be specified using two |
| 769 | + mechanisms provided by Windows:</p> |
| 770 | + |
| 771 | + <dl> |
| 772 | + <dt>Mapped drive letters</dt> |
| 773 | + <dd>e.g., <code>Alias /images/ Z:/</code></dd> |
| 774 | + |
| 775 | + <dt>UNC paths</dt> |
| 776 | + <dd>e.g., <code>Alias /images/ //imagehost/www/images/</code></dd> |
| 777 | + </dl> |
| 778 | + |
| 779 | + <p>Mapped drive letters allow the administrator to maintain the |
| 780 | + mapping to a specific machine and path outside of the Apache httpd |
| 781 | + configuration. However, these mappings are associated only with |
| 782 | + interactive sessions and are not directly available to Apache httpd |
| 783 | + when it is started as a service. <strong>Use only UNC paths for |
| 784 | + network resources in httpd.conf</strong> so that the resources can |
| 785 | + be accessed consistently regardless of how Apache httpd is started. |
| 786 | + (Arcane and error prone procedures may work around the restriction |
| 787 | + on mapped drive letters, but this is not recommended.)</p> |
| 788 | + |
| 789 | + <div class="example"><h3>Example directives with UNC paths</h3><p><code> |
| 790 | + |
| 791 | + DocumentRoot //dochost/www/html/<br /> |
| 792 | + <br /> |
| 793 | + DocumentRoot //192.168.1.50/docs/<br /> |
| 794 | + <br /> |
| 795 | + Alias /images/ //imagehost/www/images/<br /> |
| 796 | + <br /> |
| 797 | + <Directory //imagehost/www/images/><br /> |
| 798 | + ...<br /> |
| 799 | + <Directory><br /> |
| 800 | + </code></p></div> |
| 801 | + |
| 802 | + <p>When running Apache httpd as a service, you must create a |
| 803 | + separate account in order to access network resources, as described |
| 804 | + above.</p> |
762 | 805 | </div></div> |
763 | 806 | <div class="bottomlang"> |
764 | 807 | <p><span>Available Languages: </span><a href="../en/platform/windows.html" title="English"> en </a> | |
|
0 commit comments