LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Corn Recursive symlinking (https://www.linuxquestions.org/questions/linux-server-73/corn-recursive-symlinking-807029/)

Ktl_XV 05-10-2010 03:39 PM

Corn Recursive symlinking
 
Hi, Im using php-directory-listing to view pictures in the server, I've made some changes to support iPhone, and media rss. But I need to symlink index.php to every directory.
There are many directories, and sub-directories; I keep adding more.
So how could I use a Corn script to symlink index.php to every folder recursively?

Thanks

AlucardZero 05-10-2010 03:59 PM

Make /index.php a default indexfile in your HTTPd's config. (note the absolute path instead of a slashless relative).

Ktl_XV 05-10-2010 09:40 PM

It is a subdirectory
 
Example:
http://***.com/pictures/08/Jan/New Year
http://***.com/pictures/09/Sep/
http://***.com/pictures/10/

File needed in every folder inside /pictures is http://***.com/php-directory-listing-0.3.4/index.php

And I´m using a shared linux server

Thanks


All times are GMT -5. The time now is 08:41 PM.