Эх сурвалжийг харах

Update Apache example README wording and update config with more useful defaults

dom111 6 жил өмнө
parent
commit
139ae08331

+ 8 - 3
examples/apache-directory-list/README.md

@@ -1,7 +1,12 @@
+# Apache Directory List Example
+
+_Note_: this uses web-based assets for easy set up.
+
 To utilise this apache directory list replacement, you'll need to have your own
-server set up with WevDAV (hopefully that's a given!).
+server set up and configured with WevDAV (hopefully that's a given!).
 
-Clone this repository to a desirable location (eg. /srv/webdav-js) then modify
-the .conf file to your liking, pointing the __content__ alias correctly.
+Clone this repository to a desirable location (eg. `/srv/webdav-js`) then modify
+the example `webdav.conf` file to your liking, updating the references to the
+`webdav-js` repo if you've checked it out elsewhere.
 
 From then on you should be able to upload and browse at your leisure.

+ 7 - 5
examples/apache-directory-list/webdav.conf

@@ -1,11 +1,12 @@
 ServerName webdav.server.com
-DocumentRoot /path/to/webdav/root
+DocumentRoot /srv/webdav/root
 
 # This prevents indexes from being parsed (unless they're called the below...)
-AccessFileName ASDFADSHADFHAESDFDSAFDASGASDFASDFASDFSA
-DirectoryIndex ASDFASDFASDFASDFASDFASDFASDFASDFSADFSDD
+AccessFileName .file-that-will-never-exist
+DirectoryIndex .file-that-will-never-exist
 
-Alias /header.html /path/to/header.html
+# assuming webdav-js is checked out to /srv/webdav-js
+Alias /header.html /srv/webdav-js/header.html
 
 HeaderName /header.html
 
@@ -17,7 +18,8 @@ HeaderName /header.html
 
     # the below only needed on a server configured with PHP
     RemoveType .php
-
     RemoveHandler .php
     AddType text/plain .php
+
+    # Add simliar directives for other server-based lanauges
 </Location>