David, Actually I am still having problems. I am trying to understand why when I originally put:
Alias /public/ "/library/public" That the server was going to /var/www/html/public It seems like my Alias statement was not being recognized. The reason I had some success is that I moved my /public directory to /var/www/html I now get an index of the files in the folder, but when I try to access them they are not found. For instance, when trying to access the file Sugar Manual.pdf the error log says: file does not exist: /var/www/html/publicSugar Manual.pdf Notice that there is no space or / between public and Sugar.... Is that normal??? This could just be an error in the way errors are logged. Regardless, I cannot access the files listed in the index. On Apr 6, 2010, at 6:57 PM, David Leeming wrote: > I had mine in /library and they worked fine there too. I moved back to > /var/www/html because of the other reason, that file listing was not enabled > (although it was in /var/www/html). Tim gave the extra lines in the conf > file needed to enable that so I am assuming all will be fine. I have not > made any config changes to the default settings other than the conf file > (and enabling ssh log on) > > 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: server-devel-boun...@lists.laptop.org > [mailto:server-devel-boun...@lists.laptop.org] On Behalf Of Andra DuPont > Sent: Wednesday, 7 April 2010 9:22 a.m. > To: Tim Moody > Cc: server-devel@lists.laptop.org > Subject: Re: [Server-devel] Public folders > > > On Apr 6, 2010, at 5:30 PM, Tim Moody wrote: > >> Did you restart the web server with service httpd restart? What does > service httpd configtest say? >> >> Yes, http://schoolserver.asilong.org/public should be right, though the > shorter form worked for me as well. >> >> http://schoolserver/library/public should not work because of the Alias > statement. >> >> Are you on XS 0.6? >> >> Have you looked for errors in the web server logs in /var/log/httpd? > The error log has the answer. I put my public folder in /library but > according to the error log, the > server is going to /var/www/html/public This is where David Leeming has > his. I don't know where > the server gets told where the "base" or "home" location is for the > schoolserver, but apparently > it is set to /var/www/html for http requests. I'm learning. > > So Tim, why does your server go to /library ??? > > I changed the conf file to: > > Alias /public/ "/var/www/html/public" > <Directory /var/www/html/public> > > Works like a champ. > >> >> 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? >> >> Can you paste the contents of xs-library-public.conf into an email. >> >> ----- Original Message ----- From: "Andra DuPont" <andradup...@gmail.com> >> To: "Tim Moody" <timmo...@sympatico.ca> >> Cc: <server-devel@lists.laptop.org> >> Sent: Tuesday, April 06, 2010 3:08 PM >> 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" <da...@leeming-consulting.com> >>>> Subject: [Server-devel] Public folders >>>> To: "'XS Devel'" <server-devel@lists.laptop.org> >>>> Message-ID: <000001cad1db$c2141720$463c45...@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@lists.laptop.org >>> http://lists.laptop.org/listinfo/server-devel >> >> > > _______________________________________________ > Server-devel mailing list > Server-devel@lists.laptop.org > http://lists.laptop.org/listinfo/server-devel > > > _______________________________________________ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel