LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-10-2017, 09:38 PM   #1
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,567

Rep: Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923Reputation: 2923
ANNOUNCE: Bootstrap-based directory indexes for nginx


Can't remember if I'd announced this before. Anyway, here's a useful project that I did a few years ago, that works well on Slackware:

https://github.com/duganchen/ngx-responsiveindex

Clone it, and then build nginx from the SBo SlackBuild with:

Code:
ADDMODULE=/path/to/ngx-responsiveindex ./nginx.SlackBuild
And then in nginx.conf, replace

Code:
autoindex
with

Code:
responsiveindex
Now your directory indexes will be a table if you have a wide screen, and a list if you have a narrow screen.

For example, here's a block to serve up user-directories at ~/www:

Code:
location ~ ^/~(.+?)(/.*)?$ {
    alias /home/$1/www$2;
    responsiveindex on;
    responsiveindex_exact_size off;
}

Last edited by dugan; 08-10-2017 at 09:48 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: HP will announce ARM-based servers next month, reports claim LXer Syndicated Linux News 0 10-28-2011 05:00 AM
LXer: Weekend Project: Bootstrap Your Site with Bootstrap LXer Syndicated Linux News 0 09-02-2011 11:30 PM
-Indexes (directory browsing) Apache t3ch Linux - Server 2 01-20-2011 02:21 AM
How do I install to a local directory? How with bootstrap? golmschenk Linux - Newbie 2 11-03-2010 07:34 PM
LXer: Mozilla and Google Announce HTML-Based Extensions LXer Syndicated Linux News 0 05-30-2009 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration