开发者

Is there a way to beautify the styles of a webserver generated directory listing?

开发者 https://www.devze.com 2023-03-11 01:16 出处:网络
Now and then we need to s开发者_如何学运维how the contents of a webserver directory (mostly IIS, sometimes Apache). Problem is, it looks ugly (arguably).

Now and then we need to s开发者_如何学运维how the contents of a webserver directory (mostly IIS, sometimes Apache). Problem is, it looks ugly (arguably).

Of course we could use a .NET (or php) script that reproduces the functionality.

But is there a direct way to influence the look of the listing or change the style sheet somehow? Can I add a CSS file?


Seems that in IIS 7+ you can use your own module to define the look and feel.

When searching Google for the DirectoryListingModule you find nice gems like the Image Gallery Directory Listing Module.


In apache, you just add stuff to an .htaccess file. Here is a tutorial.

0

精彩评论

暂无评论...
验证码 换一张
取 消