[Server-devel] Public folders

Andra DuPont andradupont at gmail.com
Tue Apr 6 18:00:17 EDT 2010


David,
Thanks for the response. What you have working is great. I'm sure you're
right... I probably just have a typo somewhere. I am still checking. I should
also mention that I am running web caching from a program called wwwoffle.
It caches all external activity and serves it up well even when there is no
internet service, which squid does not handle well. wwwoffle does not seem
to bother moodle, so I wouldn't think it is the problem. My http-port is set to
3128 just like squid uses.

I'll keep plugging away and find out what is wrong soon. The info from Tim is very helpful.

On Apr 6, 2010, at 5:46 PM, David Leeming wrote:

> Hi Andra, well it works OK for me. I am using an XS with pretty much default
> config. In /etc/httpd/conf.d/ I have a file html.conf as follows. I can
> browse pdf library or html pages as are found in the seven folders named
> below, for instance by entering in the browser http://schoolserver/Public
> will take me to /var/www/html/public and display anything inside or open a
> default index file if found. I have created global links on the Moodle front
> page to each. I am expecting to be able to move everything to /library and
> make the contents list-able by using the extra lines mentioned previously.
> Try comparing my approach to yours, maybe you missed something. It's very
> easy to get the case wrong, for instance. 
> 
> Alias /Public /var/www/html/public
> Alias /SPC /var/www/html/spc
> Alias /eBooks /var/www/html/ebooks
> Alias /OLPC-resources /var/www/html/olpc-resources
> Alias /Schools-Wikipedia /library/Schools-Wikipedia
> Alias /UNESCO-2008-SchoolNet /library/unesco-2008
> Alias /UNESCO-2005-SchoolNet /library/unesco-2005
> 
> # Public web pages - must be publically accessible
> <Directory /var/www/html>
>  Order allow,deny
>  Allow from all
> </Directory>
> 
> <Directory /library>
> Order allow,deny
> Allow from all
> </Directory>
> 
> 
> 
> 
> David Leeming
> Leeming Consulting, P.O. Box 652, Honiara, Solomon Islands
> Tel: +677 747-6396 (m) 24419 (h) 
> www.leeming-consulting.com
> 
> 
> -----Original Message-----
> From: Andra DuPont [mailto:andradupont at gmail.com] 
> Sent: Wednesday, 7 April 2010 8:09 a.m.
> To: David Leeming
> Cc: XS Devel
> Subject: Re: [Server-devel] Public folders
> 
> On Apr 6, 2010, at 4:50 PM, David Leeming wrote:
> 
>> Andra,
>> 
>> Have you added a new conf file, to declare the folders public?
> 
> Yes, I followed Tim's note and named my conf file xs-library-public.conf
> as I noted in my last email.
> 
> I don't think the name of the conf file matters, as any .conf file placed
> in the /etc/httpd/conf.d directory gets appended to the main configuration.
> 
>> 
>> Use nano or other text editer to create a file html.conf in
>> /etc/httpd/conf.d/ and add the below, with a new entry for each alias.
> It's
>> case sensitive remember. 
>> 
>> Then the below should be available at http://schoolserver/MyFolders
> 
> What do you mean by "the below should be available"? Do you mean
> the files in the /library/public directory should be availalble (that is
> what I was expecting, but as I mentioned, my browser can't find it.)
> 
> I am wondering if I have to do something to tell the server where the
> starting level is, because it does not seem to be going to /library/public,
> but to some other directory.
> 
>> 
>> Alias /MyFolders /library/public
>> <Directory /library/public>
>> Order allow,deny
>> Allow from all
>> Options Indexes FollowSymLinks
>> AllowOverride None
>> </Directory>
>> 
>> David Leeming
>> 
>> 
>> -----Original Message-----
>> From: server-devel-bounces at lists.laptop.org
>> [mailto:server-devel-bounces at lists.laptop.org] On Behalf Of Andra DuPont
>> Sent: Wednesday, 7 April 2010 6:09 a.m.
>> To: Tim Moody
>> Cc: server-devel at lists.laptop.org
>> Subject: Re: [Server-devel] Public folders
>> 
>> Tim,
>> I am also looking for a way to have a digital library of .pdf files etc.
>> that can be accessed by any XO on an XS server. I have tried the
>> approach you outlined, but when I use Browse to go to
>> http://schoolserver/public it is not found. The server responds:
>> 
>> The requested URL /public was not found on this server.
>> 
>> My server domain is asilong.org, so my actual URL is
>> http://schoolserver.asilong.org/public
>> (this is as it should be.... right?)
>> 
>> I have tried going to schoolserver/library/public but it is not found
>> either.
>> 
>> In terminal, I can go to the directory /library/public and my documents
>> are in the directory.
>> 
>> I doubled checked the xs-library-public.conf file in
>> the /etc/httpd/conf.d directory for typos but couldn't find any.
>> 
>> Any guess as to why I can't get to the files from Browse?
>> 
>> Thanks,
>> Andy
>> 
>> On Apr 2, 2010, at 6:13 PM, Tim Moody wrote:
>> 
>>> I created a directory public under /library into which I copied a few
>> pdfs.
>>> 
>>> I created a file xs-library-public.conf in /etc/httpd/conf.d which
>> contains
>>> 
>>> Alias /public/ "/library/public"
>>> <Directory /library/public>
>>> Order allow,deny
>>> Allow from all
>>> Options Indexes FollowSymLinks
>>> AllowOverride None
>>> </Directory>
>>> 
>>> After service httpd restart I get an index of the pdfs from 
>>> http://schoolserver/public
>>> 
>>>> ----------------------------------------------------------------------
>>>> 
>>>> Message: 1
>>>> Date: Fri, 2 Apr 2010 06:41:51 +1000
>>>> From: "David Leeming" <david at leeming-consulting.com>
>>>> Subject: [Server-devel] Public folders
>>>> To: "'XS Devel'" <server-devel at lists.laptop.org>
>>>> Message-ID: <000001cad1db$c2141720$463c4560$@com>
>>>> Content-Type: text/plain; charset="us-ascii"
>>>> 
>>>> Using the XS installed with default settings.
>>>> 
>>>> 
>>>> 
>>>> I have been making folders public in /var/www/html and am able to view
>> sub
>>>> folders to be listed. I.e. if there is no specific html file, the whole
>>>> contents of the folder appear in the browser. Fine that is what I want.
>>>> 
>>>> 
>>>> 
>>>> However, when copying content into that folder I rapidly run out of
>> space.
>>>> It seems that the main disk space is in an another partition where the
>>>> folder /library is located. This makes sense (i.e. to have a lot of room
> 
>>>> in
>>>> the library...)
>>>> 
>>>> 
>>>> 
>>>> Therefore, I copied my public content into sub folders under the
>> directory
>>>> /library and made the whole of /library public using the html.conf file 
>>>> with
>>>> Aliases pointing to my specific subfolders.
>>>> 
>>>> 
>>>> 
>>>> However, under /library it won't allow contents of subfolders to be
>> listed
>>>> (unless there is an index file in which case it opens that by default,
>> but 
>>>> I
>>>> want the folder contents listed in some cases.
>>>> 
>>>> 
>>>> 
>>>> Help?
>>>> 
>>>> 
>>>> 
>>>> David Leeming
>>>> 
>>> 
>>> _______________________________________________
>>> Server-devel mailing list
>>> Server-devel at lists.laptop.org
>>> http://lists.laptop.org/listinfo/server-devel
>> 
>> _______________________________________________
>> Server-devel mailing list
>> Server-devel at lists.laptop.org
>> http://lists.laptop.org/listinfo/server-devel
>> 
>> 
>> 
> 
> 
> 



More information about the Server-devel mailing list