LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   autogenerate html pages from a directory with apache? (https://www.linuxquestions.org/questions/linux-software-2/autogenerate-html-pages-from-a-directory-with-apache-639463/)

afonit 05-02-2008 05:02 PM

autogenerate html pages from a directory with apache?
 
In keeping with the subtitle of this forum - what software is best for this job? I am asking the question here.

one some gnome guy's websites they will link to a page on their website that has the following structure:

folder1
folder2
image1.png
image2.png


each of the above are link and when you click through folder 1 and folder 2 you can click on image1.png and it will pull up the image.

Somehow they have their directory structure converted to links on an html page.

I did a netcraft search on their site and saw it was linux/apache


Though searching in google for combinations of 'apache' 'autogenerate' 'directory structure' 'links' does not pull up anything that I can see explaining how to do this.

Does anyone know how this is done, (as some of these sites have large directories I am sure it is not a manual thing but something softare rips through the directory and does.

If someone knows what it is could you tell me or some keywords to search on as apparently I am not using the right ones.

Thank you.

calraith 05-02-2008 07:03 PM

Hmmm. Well, I know you can prevent directory listings using "Option -indexes" in an .htaccess file. Maybe try Option +indexes in a file called .htaccess at the root of the website?

Or in /etc/apache2/sites-available/<whatever_governs_that_website> in the <Directory /path/to/website> directive, on the Options line, add Indexes. For example, that section in my /etc/apache2/sites-available/default looks like as follows:

Code:

        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>



All times are GMT -5. The time now is 07:21 PM.