How do I turn the folders/files on my server into a website?
April 21, 2011 9:42 AM
How can I turn the folders on my web server into a browse-able website (without setting up a content management system)?
I'm a graphic designer who has spent a lot of time configuring custom Wordpress themes, setting up databases, etc. etc, and I'm looking for a good alternative to all these complicated content-management systems. Here's roughly what I have in mind:
I'd like a system where I can drop a folder of files onto my server via FTP and then have that folder be instantly browseable in the web browser. For example, if I uploaded five photos and a text file with a short description, I'd like the photos and the text to all appear on a single page when I navigate to that folder's address on my server. No database, no config, just instant publishing.
I've looked at Apache and mod_autoindex, and it's very close to what I want, but I haven't been able to find a way to display the contents of the files rather than the list of files for each folder. I've also looked at Stacey (staceyapp.com) which basically does this, but I'd like something simpler and less specific to portfolios.
Is possible with Apache autoindex configuration? If not, does anyone know if there is a simple PHP app which does this? If not, any suggestions on how I might go about making this myself?
Thanks!
I'm a graphic designer who has spent a lot of time configuring custom Wordpress themes, setting up databases, etc. etc, and I'm looking for a good alternative to all these complicated content-management systems. Here's roughly what I have in mind:
I'd like a system where I can drop a folder of files onto my server via FTP and then have that folder be instantly browseable in the web browser. For example, if I uploaded five photos and a text file with a short description, I'd like the photos and the text to all appear on a single page when I navigate to that folder's address on my server. No database, no config, just instant publishing.
I've looked at Apache and mod_autoindex, and it's very close to what I want, but I haven't been able to find a way to display the contents of the files rather than the list of files for each folder. I've also looked at Stacey (staceyapp.com) which basically does this, but I'd like something simpler and less specific to portfolios.
Is possible with Apache autoindex configuration? If not, does anyone know if there is a simple PHP app which does this? If not, any suggestions on how I might go about making this myself?
Thanks!
Here it is:
#!/bin/perl
open(IX, ">index.html") or die("Can't open index. $!");
print IX "