<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Tim,<div>Here is an explanation of what happened.</div><div><br></div><div>With your original syntax, Alias will replace "/public/" with "/library/public" browsing to</div><div>"<a href="http://schoolserver/public'">http://schoolserver/public'</a> <span class="Apple-style-span" style="text-decoration: underline;">would not</span> have invoked&nbsp;the Alias. I would have to type</div><div>"<a href="http://schoolserver/public/">http://schoolserver/public/</a>" &nbsp;Which <span class="Apple-style-span" style="text-decoration: underline;">would</span> invoke the alias and take me&nbsp;to "/library/public"</div><div><br></div><div>Because I was not invoking the Alias, I was still going to &nbsp; &nbsp;/var/www/html/public &nbsp; which did</div><div>not exist. Once I created it, I could go there and see the index of the items I placed in it, but</div><div>I couldn't access them because clicking on a file link <b><span class="Apple-style-span" style="text-decoration: underline;">would</span></b> invoke the Alias which replaced</div><div>"/public/" with "/public" so I was getting &nbsp; &nbsp;".../publicfile.pdf" &nbsp; which of course is wrong.</div><div><br></div><div>The proper format is:</div><div><br></div><div>Alias /public /library/public</div><div>&lt;Directory /library/public &gt;</div><div><div><div>Order allow,deny<br></div><div>Allow from all<br></div><div>Options Indexes FollowSymLinks<br></div><div>AllowOverride None</div><div>&lt;/Directory&gt;</div></div></div><div><br><div><div>On Apr 6, 2010, at 7:10 PM, Tim Moody wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>The standard apache config file, httpd.conf in /etc/httpd/conf, or in our case the file httpd-xs.conf, sets the "base" location as<br>DocumentRoot "/var/www/html". &nbsp;So you don't actually need an Alias or directory directive to get to "/var/www/html/public" via <a href="http://schoolserver/library/public">http://schoolserver/library/public</a>. &nbsp;Alias /public/ overrides that.<br><br>Note that David also has his files in /library/Schools-Wikipedia, the reason being that the stock xs install doesn't allocate much space to the root partition where /var/www/html is found. &nbsp;It puts library on a separate volume with most of the disk there, so you will run out of space in /var/www/html fairly quickly.<br><br>It sounds to me like your Alias and Directory directives are not doing anything. &nbsp;Perhaps the file is not getting loaded. &nbsp;If you look at the<br><br>What happens if you access <a href="http://schoolserver.asilong.org/activities?">http://schoolserver.asilong.org/activities?</a><br><br>----- Original Message ----- From: "Andra DuPont" &lt;<a href="mailto:andradupont@gmail.com">andradupont@gmail.com</a>&gt;<br>To: "Tim Moody" &lt;<a href="mailto:timmoody@sympatico.ca">timmoody@sympatico.ca</a>&gt;<br>Cc: &lt;<a href="mailto:server-devel@lists.laptop.org">server-devel@lists.laptop.org</a>&gt;<br>Sent: Tuesday, April 06, 2010 6:22 PM<br>Subject: Re: [Server-devel] Public folders<br><br><br><br>On Apr 6, 2010, at 5:30 PM, Tim Moody wrote:<br><br><blockquote type="cite">Did you restart the web server with service httpd restart? &nbsp;What does service httpd configtest say?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Yes, <a href="http://schoolserver.asilong.org/public">http://schoolserver.asilong.org/public</a> should be right, though the shorter form worked for me as well.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://schoolserver/library/public">http://schoolserver/library/public</a> should not work because of the Alias statement.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Are you on XS 0.6?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Have you looked for errors in the web server logs in /var/log/httpd?<br></blockquote>The error log has the answer. I put my public folder in /library but according to the error log, the<br>server is going to &nbsp;&nbsp;/var/www/html/public &nbsp;This is where David Leeming has his. I don't know where<br>the server gets told where the "base" or "home" location is for the schoolserver, but apparently<br>it is set to /var/www/html for http requests. I'm learning.<br><br>So Tim, why does your server go to /library ???<br><br>I changed the conf file to:<br><br>Alias /public/ "/var/www/html/public"<br>&lt;Directory /var/www/html/public&gt;<br><br>Works like a champ.<br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">Are the permissions on /library/public the same as /library/xs-activity-server and those on xs-library-public.conf the same as xs-activity-server.conf?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Can you paste the contents of xs-library-public.conf into an email.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">----- Original Message ----- From: "Andra DuPont" &lt;<a href="mailto:andradupont@gmail.com">andradupont@gmail.com</a>&gt;<br></blockquote><blockquote type="cite">To: "Tim Moody" &lt;<a href="mailto:timmoody@sympatico.ca">timmoody@sympatico.ca</a>&gt;<br></blockquote><blockquote type="cite">Cc: &lt;<a href="mailto:server-devel@lists.laptop.org">server-devel@lists.laptop.org</a>&gt;<br></blockquote><blockquote type="cite">Sent: Tuesday, April 06, 2010 3:08 PM<br></blockquote><blockquote type="cite">Subject: Re: [Server-devel] Public folders<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Tim,<br></blockquote><blockquote type="cite">I am also looking for a way to have a digital library of .pdf files etc.<br></blockquote><blockquote type="cite">that can be accessed by any XO on an XS server. I have tried the<br></blockquote><blockquote type="cite">approach you outlined, but when I use Browse to go to<br></blockquote><blockquote type="cite"><a href="http://schoolserver/public">http://schoolserver/public</a> it is not found. The server responds:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The requested URL /public was not found on this server.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">My server domain is <a href="http://asilong.org">asilong.org</a>, so my actual URL is<br></blockquote><blockquote type="cite"><a href="http://schoolserver.asilong.org/public">http://schoolserver.asilong.org/public</a><br></blockquote><blockquote type="cite">(this is as it should be.... right?)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have tried going to schoolserver/library/public but it is not found either.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">In terminal, I can go to the directory /library/public and my documents<br></blockquote><blockquote type="cite">are in the directory.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I doubled checked the xs-library-public.conf file in<br></blockquote><blockquote type="cite">the /etc/httpd/conf.d directory for typos but couldn't find any.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Any guess as to why I can't get to the files from Browse?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks,<br></blockquote><blockquote type="cite">Andy<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Apr 2, 2010, at 6:13 PM, Tim Moody wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">I created a directory public under /library into which I copied a few pdfs.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I created a file xs-library-public.conf in /etc/httpd/conf.d which contains<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Alias /public/ "/library/public"<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">&lt;Directory /library/public&gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Order allow,deny<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Allow from all<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Options Indexes FollowSymLinks<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">AllowOverride None<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">&lt;/Directory&gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">After service httpd restart I get an index of the pdfs from<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://schoolserver/public">http://schoolserver/public</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">----------------------------------------------------------------------<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Message: 1<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Date: Fri, 2 Apr 2010 06:41:51 +1000<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">From: "David Leeming" &lt;<a href="mailto:david@leeming-consulting.com">david@leeming-consulting.com</a>&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Subject: [Server-devel] Public folders<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">To: "'XS Devel'" &lt;<a href="mailto:server-devel@lists.laptop.org">server-devel@lists.laptop.org</a>&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Message-ID: &lt;000001cad1db$c2141720$463c4560$@com&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Content-Type: text/plain; charset="us-ascii"<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Using the XS installed with default settings.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I have been making folders public in /var/www/html and am able to view sub<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">folders to be listed. I.e. if there is no specific html file, the whole<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">contents of the folder appear in the browser. Fine that is what I want.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">However, when copying content into that folder I rapidly run out of space.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">It seems that the main disk space is in an another partition where the<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">folder /library is located. This makes sense (i.e. to have a lot of room<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">in<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">the library...)<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Therefore, I copied my public content into sub folders under the directory<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">/library and made the whole of /library public using the html.conf file<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">with<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Aliases pointing to my specific subfolders.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">However, under /library it won't allow contents of subfolders to be listed<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">(unless there is an index file in which case it opens that by default, but<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">want the folder contents listed in some cases.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Help?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">David Leeming<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Server-devel mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:Server-devel@lists.laptop.org">Server-devel@lists.laptop.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://lists.laptop.org/listinfo/server-devel">http://lists.laptop.org/listinfo/server-devel</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br></div></blockquote></div><br></div></body></html>