Koozali.org: home of the SME Server

Open a WebDAV folder directly from html code, SOLUTION!

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« on: August 05, 2006, 12:01:18 PM »
I've followed the excact steps discribed here:

http://no.longer.valid/phpwiki/index.php/How%20to%20install%20mod_dav%20on%20SME%207.x

but afterwards, when i browse http://server/data or http://server/storage
(these are the ibays i've created) i keep getting the message:

Information Bay
This information bay has not yet been customized.



This is the html file in the html folder. Removing this file gives me:

Information Bay
This information bay has not yet been customized.


Please tell me what i'm doing wrong...  :-? orwhich part I'm missing here...  :roll:

Offline JonB

  • *
  • 351
  • +0/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #1 on: August 05, 2006, 01:47:00 PM »
Quote
Please tell me what i'm doing wrong...  orwhich part I'm missing here...


Try refreshing your browser cache. ctrl - f5 in IE.

Jon
...

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #2 on: August 05, 2006, 02:50:52 PM »
no change, even tried it on other computers in the workgoup and all the same results:

Information Bay
This information bay has not yet been customized.


By the way, what is the way to open the webdav dir? just use the url to point to the directory?

e.g. http://server/data/ ? in that case it opens the html folder in the data folder containing the index.html..

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #3 on: August 05, 2006, 02:58:16 PM »
Quote from: "nitsua"
no change, even tried it on other computers in the workgoup and all the same results:

Information Bay
This information bay has not yet been customized.


By the way, what is the way to open the webdav dir? just use the url to point to the directory?

e.g. http://server/data/ ? in that case it opens the html folder in the data folder containing the index.html..
Delete the index.html file in the html forlder of the ibay.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #4 on: August 05, 2006, 03:02:52 PM »
that will bring me this message:

You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.

--------------------------------------------------------------------------------

If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the  home page.

You can click  Search to look for information on the Internet.

HTTP Error 403 - Forbidden
Internet Explorer  


And other workstations will bring up this message:

FORBIDDEN

You don't have permission to access /data/ on this server

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #5 on: August 05, 2006, 03:07:41 PM »
Quote from: "nitsua"
that will bring me this message:

You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.

--------------------------------------------------------------------------------

If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the  home page.

You can click  Search to look for information on the Internet.

HTTP Error 403 - Forbidden
Internet Explorer  
I hav e never been a big fan of installing software in an ibay. I am in favour of creating a custom template in the httpd.conf section to make a seperate section where you can fully configure the share, this is also the adviced route for developing applications if I a=understood everythin correctly.

Did you foll0ow the howto to the letter? Also the sction which states what the access settings should be?
Quote
User access via file sharing or user ftp write=group, read=group
Public access via web or anonymous ftp entire internet, no password required
Execution of dynamic content disabled
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #6 on: August 09, 2006, 02:54:36 PM »
I've followed the exact procedure to install mod_dav, including

Quote
User access via file sharing or user ftp write=group, read=group
Public access via web or anonymous ftp entire internet, no password required
Execution of dynamic content disabled


and still when I browse http://server/data/ I get the message "You are not authorized to view this page".

Are there other permissions I need to check before I can use the webdav ibay? and is this the way to get acess to a webdav folder?

Offline mmccarn

  • *
  • 2,628
  • +10/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #7 on: August 09, 2006, 03:29:35 PM »
How you can access a WebDAV share:
Windows XP users can create a connection in My Network Places to either https://yoursite.org/webshare or http://yoursite.org/webshare

Apple OS X 10.4.2 users can connect using “Go”, “Connect to Server”, then entering https://yoursite.org/webshare.

Apple OS X 10.0 through 10.4.1 must download the “Goliath” WebDAV client from http://www.webdav.org/goliath/installs/Goliath1_0_.dmg.gz

iCal can be pointed directly at the webdav share as described at the bottom of the original webdav howto: http://no.longer.valid/phpwiki/index.php/How%20to%20install%20mod_dav

Listing the directory in a browser depends on the "Indexes" directive in httpd.conf; I don't know the default value of this setting for most Ibays.

More Notes
The SME 7 WebDAV "How-To" provides unsecured (public) access to your WebDAV share.  If you want secured access you'll need to customize httpd.conf.  This post http://forums.contribs.org/index.php?topic=32078.msg135245#msg135245 describes the changes necessary in SME 6.0.1; step 3 on controlling webdav directory access rights should work on SME 7.  Alternatively, you could learn how to use ".htaccess" to secure each folder.

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #8 on: August 09, 2006, 04:04:19 PM »
it's strange, I've followed all the steps described in the How-to, wich should lead me to unsecured webaccess of my ibay.. unfortunately, it just doesn't work.. thing is, I'm a nood at linux, so I've now idea where to start or what to check.. Maybe this webdav is a little out of my league.. hehe still thnx for the replying!!

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #9 on: August 11, 2006, 02:37:51 PM »
I've given it another try and this is where i get stuck:

I finished the how-to on how to set up mod-dav for sme7.x.
I now have a ibay called "data" which is supposed to work as a web-dav folder. Inside the data folder there are the usual ibay folders cgi-bin, files and html.

I can connect to the ibay by putting a index.html file in the html folder. By pointing my webbrowser to http://server/data will give me this website.

But when i remove this index.html file, I cannot list the webdir anymore. I get the message:

Forbidden
You don't have permission to access /data/ on this server.

So my conclusion is that there's something wrong with the listing if the directory (the "Indexes" directive in httpd.conf) discribed by mmccarn two posts above this one.. Is this the correct conclusion and could someone provide me the info on how to correct this?

kind regards!

[edit] if i set Execution of dynamic content (CGI, PHP, SSI) to enabled, i will see the context of the html folder, but not in webdav style, just like a dir. listing. [/edit]

Offline mmccarn

  • *
  • 2,628
  • +10/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #10 on: August 11, 2006, 04:02:32 PM »
I forgot to mention that the "Indexes" directive requires "Execution of dynamic content"...

Now, to use it in "webdav" mode -

Windows XP:
  - "My Network Places"
  - select "Add a network place"
  - "Next"
  - "Choose another network location"
  - "http://server/data"

You'll be prompted for a username and password - leave blank if you're using open access; use the ibay name and password if you're using normal "password" security in the ibay; use whatever username and password you've enabled if you're using custom templates or .htaccess

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #11 on: August 11, 2006, 04:32:14 PM »
GREAT! that is working now!
but how can i access this folder by only using internet explorer then? what i mean is:

i want users to browse to www.myserverdomain.nl/data and then type in there username and pass and browse the webdav folder.
so basically without setting up the folder through "my network places" and map the network drive..

Offline mmccarn

  • *
  • 2,628
  • +10/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #12 on: August 11, 2006, 04:37:53 PM »
All you can do with Internet Explorer is browse & download - the same functionality you saw after turning on executable content.

There are some "document management" packages you can load up on a SME box that give let users download or checkout documents, upload changes, maintain multiple versions of documents, etc, etc - I've played with several but never actually used any...

Offline mmccarn

  • *
  • 2,628
  • +10/-0
Open a WebDAV folder directly from html code, SOLUTION!
« Reply #13 on: August 11, 2006, 04:40:27 PM »
If you want them to have to enter their own username and password, you'll also have to setup some custom template fragments.  See the link I posted earlier under "More Notes" on Aug 9.

nitsua

Open a WebDAV folder directly from html code, SOLUTION!
« Reply #14 on: August 11, 2006, 05:05:45 PM »
hmmm. what I want is easy access to my webdav folder using internet explorer.. Maybe i should drop the user authentication, but at this point i just do not know how to enter the webdav folder without first mapping it to a network drive.

The reason is because:

when people are at work, on university etc there is no way to map a network drive. because of that, i just want people to be able to put their work from home (behind SME) into the ibay, travel to uni/work, browse www.mysmeserver.nl/data and have access to their files..

I think i'm not very clear in discribing what i really want, but maybe this should explain it better....