<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Accessing Files Outside Of Document Root' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Accessing Files Outside Of Document Root' posted on the 'WEB Servers' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 18:53:07 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 18:53:07 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Accessing Files Outside Of Document Root</title>
      <link>http://www.programmersheaven.com/mb/other-web-servers/371205/371205/accessing-files-outside-of-document-root/</link>
      <description>Hello there. I wish to access files outside the document root. Just for simplicity we'll say the files are located local in "C:/files" and that the file i want is "file.txt" in the same folder.&lt;br /&gt;
&lt;br /&gt;
I understand that I'm supposed to use "Alias" in my apache "httpd.conf" file, however I'm not sure how to write this code. Also I'm not sure how to write the link to the file.&lt;br /&gt;
&lt;br /&gt;
This is what I tried&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;IfModule alias_module&amp;gt;
    Alias "C:/files/"
&amp;lt;/IfModule&amp;gt;&lt;/pre&gt;&lt;br /&gt;
And the link would look like &lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;a href="http://www.programmersheaven.com/files/file.txt"&amp;gt;file.txt&amp;lt;/a&amp;gt;&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Obviosly I guessed wrong since my apache server wouldn't even start after this change. Please help me. Thank you.&lt;br /&gt;
&lt;br /&gt;
So I asked my tutor how to do this and he replied that It's possible using php. So I'll try that. However what does "Alias" do? and how to use it?</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/other-web-servers/371205/371205/accessing-files-outside-of-document-root/</guid>
      <pubDate>Tue, 15 Apr 2008 03:29:07 -0700</pubDate>
      <category>WEB Servers</category>
    </item>
    <item>
      <title>Re: Accessing Files Outside Of Document Root</title>
      <link>http://www.programmersheaven.com/mb/other-web-servers/371205/371311/re-accessing-files-outside-of-document-root/#371311</link>
      <description>: Hello there. I wish to access files outside the document root. Just &lt;br /&gt;
: for simplicity we'll say the files are located local in "C:/files" &lt;br /&gt;
: and that the file i want is "file.txt" in the same folder.&lt;br /&gt;
: &lt;br /&gt;
: I understand that I'm supposed to use "Alias" in my apache &lt;br /&gt;
: "httpd.conf" file, however I'm not sure how to write this code. Also &lt;br /&gt;
: I'm not sure how to write the link to the file.&lt;br /&gt;
: &lt;br /&gt;
: This is what I tried&lt;br /&gt;
: &lt;pre class="sourcecode"&gt;: &amp;lt;IfModule alias_module&amp;gt;
:     Alias "C:/files/"
: &amp;lt;/IfModule&amp;gt;&lt;/pre&gt;: &lt;br /&gt;
: And the link would look like &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;: &amp;lt;a href="http://www.programmersheaven.com/files/file.txt"&amp;gt;file.txt&amp;lt;/a&amp;gt;&lt;/pre&gt;: &lt;br /&gt;
: &lt;br /&gt;
: Obviosly I guessed wrong since my apache server wouldn't even start &lt;br /&gt;
: after this change. Please help me. Thank you.&lt;br /&gt;
: &lt;br /&gt;
: So I asked my tutor how to do this and he replied that It's possible &lt;br /&gt;
: using php. So I'll try that. However what does "Alias" do? and how &lt;br /&gt;
: to use it?&lt;br /&gt;
&lt;br /&gt;
Configuring Apache isn't easy, but the break from the GUI is refreshing. Like windows shell scripts. Once you decide what you are going after, it is best to start with the basics.&lt;br /&gt;
&lt;br /&gt;
PHP and http.config are both parsed and should not cause the service to keep from running</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/other-web-servers/371205/371311/re-accessing-files-outside-of-document-root/#371311</guid>
      <pubDate>Thu, 17 Apr 2008 20:39:27 -0700</pubDate>
      <category>WEB Servers</category>
    </item>
    <item>
      <title>Re: Accessing Files Outside Of Document Root</title>
      <link>http://www.programmersheaven.com/mb/other-web-servers/371205/371327/re-accessing-files-outside-of-document-root/#371327</link>
      <description>: : Hello there. I wish to access files outside the document root. Just &lt;br /&gt;
: : for simplicity we'll say the files are located local in "C:/files" &lt;br /&gt;
: : and that the file i want is "file.txt" in the same folder.&lt;br /&gt;
: : &lt;br /&gt;
: : I understand that I'm supposed to use "Alias" in my apache &lt;br /&gt;
: : "httpd.conf" file, however I'm not sure how to write this code. Also &lt;br /&gt;
: : I'm not sure how to write the link to the file.&lt;br /&gt;
: : &lt;br /&gt;
: : This is what I tried&lt;br /&gt;
: : &lt;pre class="sourcecode"&gt;: : &amp;lt;IfModule alias_module&amp;gt;
: :     Alias "C:/files/"
: : &amp;lt;/IfModule&amp;gt;&lt;/pre&gt;: : &lt;br /&gt;
: : And the link would look like &lt;br /&gt;
: : &lt;pre class="sourcecode"&gt;: : &amp;lt;a href="http://www.programmersheaven.com/files/file.txt"&amp;gt;file.txt&amp;lt;/a&amp;gt;&lt;/pre&gt;: : &lt;br /&gt;
: : &lt;br /&gt;
: : Obviosly I guessed wrong since my apache server wouldn't even start &lt;br /&gt;
: : after this change. Please help me. Thank you.&lt;br /&gt;
: : &lt;br /&gt;
: : So I asked my tutor how to do this and he replied that It's possible &lt;br /&gt;
: : using php. So I'll try that. However what does "Alias" do? and how &lt;br /&gt;
: : to use it?&lt;br /&gt;
: &lt;br /&gt;
: Configuring Apache isn't easy, but the break from the GUI is &lt;br /&gt;
: refreshing. Like windows shell scripts. Once you decide what you are &lt;br /&gt;
: going after, it is best to start with the basics.&lt;br /&gt;
: &lt;br /&gt;
: PHP and http.config are both parsed and should not cause the service &lt;br /&gt;
: to keep from running&lt;br /&gt;
&lt;br /&gt;
The http.config is parsed when the service is started. Any errors encountered in the http.config will cause the service to be terminated before it truly starts.&lt;br /&gt;
The Alias command maps an URL onto another URL. For more info see: &lt;a href="http://httpd.apache.org/docs/2.2/mod/mod_alias.html"&gt;http://httpd.apache.org/docs/2.2/mod/mod_alias.html&lt;/a&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/other-web-servers/371205/371327/re-accessing-files-outside-of-document-root/#371327</guid>
      <pubDate>Fri, 18 Apr 2008 16:35:25 -0700</pubDate>
      <category>WEB Servers</category>
    </item>
    <item>
      <title>Re: Accessing Files Outside Of Document Root</title>
      <link>http://www.programmersheaven.com/mb/other-web-servers/371205/371334/re-accessing-files-outside-of-document-root/#371334</link>
      <description>: : : Hello there. I wish to access files outside the document root. Just &lt;br /&gt;
: : : for simplicity we'll say the files are located local in "C:/files" &lt;br /&gt;
: : : and that the file i want is "file.txt" in the same folder.&lt;br /&gt;
: : : &lt;br /&gt;
: : : I understand that I'm supposed to use "Alias" in my apache &lt;br /&gt;
: : : "httpd.conf" file, however I'm not sure how to write this code. Also &lt;br /&gt;
: : : I'm not sure how to write the link to the file.&lt;br /&gt;
: : : &lt;br /&gt;
: : : This is what I tried&lt;br /&gt;
: : : &lt;pre class="sourcecode"&gt;: : : &amp;lt;IfModule alias_module&amp;gt;
: : :     Alias "C:/files/"
: : : &amp;lt;/IfModule&amp;gt;&lt;/pre&gt;: : : &lt;br /&gt;
: : : And the link would look like &lt;br /&gt;
: : : &lt;pre class="sourcecode"&gt;: : : &amp;lt;a href="http://www.programmersheaven.com/files/file.txt"&amp;gt;file.txt&amp;lt;/a&amp;gt;&lt;/pre&gt;: : : &lt;br /&gt;
: : : &lt;br /&gt;
: : : Obviosly I guessed wrong since my apache server wouldn't even start &lt;br /&gt;
: : : after this change. Please help me. Thank you.&lt;br /&gt;
: : : &lt;br /&gt;
: : : So I asked my tutor how to do this and he replied that It's possible &lt;br /&gt;
: : : using php. So I'll try that. However what does "Alias" do? and how &lt;br /&gt;
: : : to use it?&lt;br /&gt;
: : &lt;br /&gt;
: : Configuring Apache isn't easy, but the break from the GUI is &lt;br /&gt;
: : refreshing. Like windows shell scripts. Once you decide what you are &lt;br /&gt;
: : going after, it is best to start with the basics.&lt;br /&gt;
: : &lt;br /&gt;
: : PHP and http.config are both parsed and should not cause the service &lt;br /&gt;
: : to keep from running&lt;br /&gt;
: &lt;br /&gt;
: The http.config is parsed when the service is started. Any errors &lt;br /&gt;
: encountered in the http.config will cause the service to be &lt;br /&gt;
: terminated before it truly starts.&lt;br /&gt;
: The Alias command maps an URL onto another URL. For more info see: &lt;br /&gt;
: &lt;a href="http://httpd.apache.org/docs/2.2/mod/mod_alias.html"&gt;http://httpd.apache.org/docs/2.2/mod/mod_alias.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Still I dont get it. How am I supposed to write it if my file is in "C:/files/files.txt"?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/other-web-servers/371205/371334/re-accessing-files-outside-of-document-root/#371334</guid>
      <pubDate>Sat, 19 Apr 2008 01:59:25 -0700</pubDate>
      <category>WEB Servers</category>
    </item>
    <item>
      <title>Re: Accessing Files Outside Of Document Root</title>
      <link>http://www.programmersheaven.com/mb/other-web-servers/371205/371335/re-accessing-files-outside-of-document-root/#371335</link>
      <description>: : : : Hello there. I wish to access files outside the document root. Just &lt;br /&gt;
: : : : for simplicity we'll say the files are located local in "C:/files" &lt;br /&gt;
: : : : and that the file i want is "file.txt" in the same folder.&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : I understand that I'm supposed to use "Alias" in my apache &lt;br /&gt;
: : : : "httpd.conf" file, however I'm not sure how to write this code. Also &lt;br /&gt;
: : : : I'm not sure how to write the link to the file.&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : This is what I tried&lt;br /&gt;
: : : : &lt;pre class="sourcecode"&gt;: : : : &amp;lt;IfModule alias_module&amp;gt;
: : : :     Alias "C:/files/"
: : : : &amp;lt;/IfModule&amp;gt;&lt;/pre&gt;: : : : &lt;br /&gt;
: : : : And the link would look like &lt;br /&gt;
: : : : &lt;pre class="sourcecode"&gt;: : : : &amp;lt;a href="http://www.programmersheaven.com/files/file.txt"&amp;gt;file.txt&amp;lt;/a&amp;gt;&lt;/pre&gt;: : : : &lt;br /&gt;
: : : : &lt;br /&gt;
: : : : Obviosly I guessed wrong since my apache server wouldn't even start &lt;br /&gt;
: : : : after this change. Please help me. Thank you.&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : So I asked my tutor how to do this and he replied that It's possible &lt;br /&gt;
: : : : using php. So I'll try that. However what does "Alias" do? and how &lt;br /&gt;
: : : : to use it?&lt;br /&gt;
: : : &lt;br /&gt;
: : : Configuring Apache isn't easy, but the break from the GUI is &lt;br /&gt;
: : : refreshing. Like windows shell scripts. Once you decide what you are &lt;br /&gt;
: : : going after, it is best to start with the basics.&lt;br /&gt;
: : : &lt;br /&gt;
: : : PHP and http.config are both parsed and should not cause the service &lt;br /&gt;
: : : to keep from running&lt;br /&gt;
: : &lt;br /&gt;
: : The http.config is parsed when the service is started. Any errors &lt;br /&gt;
: : encountered in the http.config will cause the service to be &lt;br /&gt;
: : terminated before it truly starts.&lt;br /&gt;
: : The Alias command maps an URL onto another URL. For more info see: &lt;br /&gt;
: : &lt;a href="http://httpd.apache.org/docs/2.2/mod/mod_alias.html"&gt;http://httpd.apache.org/docs/2.2/mod/mod_alias.html&lt;/a&gt;&lt;br /&gt;
: &lt;br /&gt;
: Still I dont get it. How am I supposed to write it if my file is in &lt;br /&gt;
: "C:/files/files.txt"?&lt;br /&gt;
: &lt;br /&gt;
The following line maps c:/files to /outside in the url:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
  Alias /outside/ c:/files/
&lt;/pre&gt;&lt;br /&gt;
If a visitor gets the following webpage:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&lt;a href="http://mywebser/outside/files.txt"&gt;http://mywebser/outside/files.txt&lt;/a&gt;
&lt;/pre&gt;&lt;br /&gt;
The server presents him with c:/files/files.txt.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/other-web-servers/371205/371335/re-accessing-files-outside-of-document-root/#371335</guid>
      <pubDate>Sat, 19 Apr 2008 02:05:14 -0700</pubDate>
      <category>WEB Servers</category>
    </item>
    <item>
      <title>Re: Accessing Files Outside Of Document Root</title>
      <link>http://www.programmersheaven.com/mb/other-web-servers/371205/371340/re-accessing-files-outside-of-document-root/#371340</link>
      <description>: The following line maps c:/files to /outside in the url:&lt;br /&gt;
: &lt;pre class="sourcecode"&gt;: 
:   Alias /outside/ c:/files/
: &lt;/pre&gt;: &lt;br /&gt;
: If a visitor gets the following webpage:&lt;br /&gt;
: &lt;pre class="sourcecode"&gt;: 
: &lt;a href="http://mywebser/outside/files.txt"&gt;http://mywebser/outside/files.txt&lt;/a&gt;
: &lt;/pre&gt;: &lt;br /&gt;
: The server presents him with c:/files/files.txt.&lt;br /&gt;
Aha thank you now i understand&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/other-web-servers/371205/371340/re-accessing-files-outside-of-document-root/#371340</guid>
      <pubDate>Sat, 19 Apr 2008 06:36:17 -0700</pubDate>
      <category>WEB Servers</category>
    </item>
    <item>
      <title>Re: Accessing Files Outside Of Document Root</title>
      <link>http://www.programmersheaven.com/mb/other-web-servers/371205/430059/re-accessing-files-outside-of-document-root/#430059</link>
      <description>Hello friends,&lt;br /&gt;
&lt;br /&gt;
Thanks foe sharing information about this topic.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/other-web-servers/371205/430059/re-accessing-files-outside-of-document-root/#430059</guid>
      <pubDate>Thu, 01 Nov 2012 23:23:22 -0700</pubDate>
      <category>WEB Servers</category>
    </item>
  </channel>
</rss>