please help with server path

  • SoundNow
  • Novice
  • Novice
  • SoundNow
  • Posts: 17

Post 3+ Months Ago

How can I find the FULL server path of a file on my netfirms server? All I can get is the http://www.blah blah right now
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

You can either ask your hosting company, or let us know what kind of script it is you want to use this kind of information in and we may be able to help
  • SoundNow
  • Novice
  • Novice
  • SoundNow
  • Posts: 17

Post 3+ Months Ago

Its .htaccess... tring to set up the auth part of it.

The URL where the .htpasswd is at is http://www.mysite.com/test/.htaccess

but how can I find the full path? I cant seem to find a way in flashfxp
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

Ahh ok you do need a full path, you will need to ask your hosting company for that


//topic moved to hosting
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Are you sure you need the full server path, or your document root?
htaccess files may be set up with a specific filename referenced from within the dot-file.
Code: [ Select ]
AuthType Basic
AuthName "Password Required"
AuthUserFile /www/passwords/password.file
AuthGroupFile /www/passwords/group.file
Require Group admins
  1. AuthType Basic
  2. AuthName "Password Required"
  3. AuthUserFile /www/passwords/password.file
  4. AuthGroupFile /www/passwords/group.file
  5. Require Group admins


Note: You may place your auth files anywhere in your doc tree, though it's recommended you not place them in your publish path; where your content exists. (Hence the new 'passwords' dir.

As referenced from the Apache htaccess module page;
http://httpd.apache.org/docs/howto/htaccess.html

Cheers.
  • SoundNow
  • Novice
  • Novice
  • SoundNow
  • Posts: 17

Post 3+ Months Ago

This is all new territory for me..


I set up my .htaccess file like this:
AuthUserFile /www/test/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic

But every time I tried access a file in the protected directory it prompts me for password but the right password does not work, like its not reading the .htpasswd file. I made the .htpasswd file in DOS, pretty sure I did it corectly and uploading everything in ACS mode.

/www/test/.htpasswd is the wrong way to write the path isnt it?
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

The AuthUserFile directive sets the name of a textual file containing the list of users and passwords for user authentication. File-path is the path to the user file. If it is not absolute (i.e., if it doesn't begin with a slash), it is treated as relative to the ServerRoot.

http://httpd.apache.org/docs/mod/mod_au ... thuserfile

These instructions are the same for Apache 1.3 and 2.0

(note that is says server root, not document root - so you will need to find out the full path from your hosting provider or write a script to show you the full path)

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.