Mobile app version of vmapp.org
Login or Join
Kristi941

: How do I serve dynamic WebDAV directory listings using Apache I can use mod_rewrite to redirect /dynamic.php/xyz.php to /dynamic.php and then server different content for xyz.php using $_SERVER

@Kristi941

Posted in: #Apache #Dynamic

I can use mod_rewrite to redirect /dynamic.php/xyz.php to /dynamic.php and then server different content for xyz.php using $_SERVER - where xyz.php is any arbitrary filename requested by a client. No problem so far.

When a client connects to my WebDAV server they can list the contents of a directory, eg / or /dynamic.php/ - how do I intercept this request so I can dynamically generate a list of available files for the client (which requests this list using PROPFIND)?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kristi941

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo487

Does your client accesses page through browser? If so in every directory you can put a php file which can show list of files as per your rules.

Another approach

You can redirect user to a specific PHP file where you can show lists as per your rules by comparing referal URL.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme