Re: Customize Apache2 directory list
Thank you James and Matt for your help. This will work. On 8/21/22 17:22, Matt Graham via PLUG-discuss wrote: On 2022-08-21 16:43, James Mcphee via PLUG-discuss wrote: On Sun, Aug 21, 2022 at 2:42 PM Jim wrote: Today I got Apache2 running on it to serve music to my android phone so could listen when I'm out in the yard. It works but the size of the text in the directory listing is really small. How can I enlarge the size of the text? I looked online but didn't find anything that made sense. Some sites said to use a css file. It's slightly more complicated than it should be, but read on. If you're using the apache indexes page, you can add an IndexStyleSheet directive. https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html#indexstylesheet This will not do what you want without extensive fiddling. I found a better solution, or at least a hacked-together starting point, by cannibalizing and simplifying the Apaxy github project. I had to put these lines into the where my default vhost lives: IndexStyleSheet /indexcss/style.css HeaderName /indexcss/header.html ReadmeName /indexcss/footer.html IndexOptions +Charset=UTF-8 +FancyIndexing +FoldersFirst +HTMLTable +IconsAreLinks +IgnoreCase +NameWidth=* +SuppressDescription +SuppressRules +XHTML -SuppressHTMLPreamble Then you can see how it looks at http://crow202.com/indexcss/ . You probably will need to copy the example code and change the stuff around for your needs since it may not be large enough. Editing the style.css , header.html , and footer.html files will get you lots of stuff. The entire project not the hacked-together trimmed down version is of course at https://github.com/oupala/apaxy , and it has more features including javascript. --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: https://lists.phxlinux.org/mailman/listinfo/plug-discuss
Re: Customize Apache2 directory list
On 2022-08-21 16:43, James Mcphee via PLUG-discuss wrote: On Sun, Aug 21, 2022 at 2:42 PM Jim wrote: Today I got Apache2 running on it to serve music to my android phone so could listen when I'm out in the yard. It works but the size of the text in the directory listing is really small. How can I enlarge the size of the text?I looked online but didn't find anything that made sense. Some sites said to use a css file. It's slightly more complicated than it should be, but read on. If you're using the apache indexes page, you can add an IndexStyleSheet directive. https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html#indexstylesheet This will not do what you want without extensive fiddling. I found a better solution, or at least a hacked-together starting point, by cannibalizing and simplifying the Apaxy github project. I had to put these lines into the where my default vhost lives: IndexStyleSheet /indexcss/style.css HeaderName /indexcss/header.html ReadmeName /indexcss/footer.html IndexOptions +Charset=UTF-8 +FancyIndexing +FoldersFirst +HTMLTable +IconsAreLinks +IgnoreCase +NameWidth=* +SuppressDescription +SuppressRules +XHTML -SuppressHTMLPreamble Then you can see how it looks at http://crow202.com/indexcss/ . You probably will need to copy the example code and change the stuff around for your needs since it may not be large enough. Editing the style.css , header.html , and footer.html files will get you lots of stuff. The entire project not the hacked-together trimmed down version is of course at https://github.com/oupala/apaxy , and it has more features including javascript. -- Crow202 Blog: http://crow202.org/wordpress There is no Darkness in Eternity But only Light too dim for us to see. --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: https://lists.phxlinux.org/mailman/listinfo/plug-discuss
Re: Customize Apache2 directory list
If you're using the apache indexes page, you can add an IndexStyleSheet directive. https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html#indexstylesheet On Sun, Aug 21, 2022 at 2:42 PM Jim via PLUG-discuss < plug-discuss@lists.phxlinux.org> wrote: > I have a rapsberry pi as a server that among other things holds my music > collection. Today I got Apache2 running on it to serve music to my > android phone so could listen when I'm out in the yard. It works but > the size of the text in the directory listing is really small. How can > I enlarge the size of the text?I looked online but didn't find > anything that made sense. Some sites said to use a css file. One site > even included an example css file. However nobody shows how to use it. > My understanding of css files is they affect how stuff is displayed in > an html page. When I get a directory listing, it doesn't display an > html page. It shows me what's in the directory. > > > Help please and thanks. > > --- > PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org > To subscribe, unsubscribe, or to change your mail settings: > https://lists.phxlinux.org/mailman/listinfo/plug-discuss -- James McPhee jmc...@gmail.com --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: https://lists.phxlinux.org/mailman/listinfo/plug-discuss
Customize Apache2 directory list
I have a rapsberry pi as a server that among other things holds my music collection. Today I got Apache2 running on it to serve music to my android phone so could listen when I'm out in the yard. It works but the size of the text in the directory listing is really small. How can I enlarge the size of the text? I looked online but didn't find anything that made sense. Some sites said to use a css file. One site even included an example css file. However nobody shows how to use it. My understanding of css files is they affect how stuff is displayed in an html page. When I get a directory listing, it doesn't display an html page. It shows me what's in the directory. Help please and thanks. --- PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: https://lists.phxlinux.org/mailman/listinfo/plug-discuss