Est. 2003
Home Help Login Register
News: Welcome to ZboX Webhosting.
10 Megs

10 MB Disk
1 GB Transfer
$10.00 per year
25 Megs

25 MB Disk
2 GB Transfer
$25.00 per year
50 Megs

50 MB Disk
3 GB Transfer
$50.00 per year
75 Megs

75 MB Disk
4 GB Transfer
$75.00 per year
500 Megs

500 MB Disk
10 GB Trans
$100.00 yr.

+  ZboX Webhosting Est. 2003. Now in our Fourth year!
|-+  Help!
| |-+  Problems and/or Questions
| | |-+  .htaccess question
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: .htaccess question  (Read 125 times)
DJ Mike
Serious Poster
****
Offline Offline

Posts: 122



.htaccess question
« on: April 22, 2008, 10:08:34 AM »

Someone is using a server that "upgraded" their file manager so that it will no longer work for webtv. I added Dream Server FM but that doesn't have built in password protection. It uses .htaccess instead. I made 2 files to test htaccess, server.php & info.php then used this in htaccess:

<files ~ "(server|info).php">
AuthUserFile /home/xxx/passwd
AuthGroupFile /dev/null
AuthName EnterYourPassword
AuthType Basic
require valid-user
</files>

...but I get a "technical problem" pop-up instead of password protection. Anything else I can try?


Logged


ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1511


What 'ya got there??


Re: .htaccess question
« Reply #1 on: April 22, 2008, 04:31:12 PM »

Someone is using a server that "upgraded" their file manager so that it will no longer work for webtv. I added Dream Server FM but that doesn't have built in password protection. It uses .htaccess instead. I made 2 files to test htaccess, server.php & info.php then used this in htaccess:

<files ~ "(server|info).php">
AuthUserFile /home/xxx/passwd
AuthGroupFile /dev/null
AuthName EnterYourPassword
AuthType Basic
require valid-user
</files>

...but I get a "technical problem" pop-up instead of password protection. Anything else I can try?




Hi Mike,
I've had to rebuild the .htaccess for several accounts that are using the DS fm. Easiest way to do it is go here:

http://tools.dynamicdrive.com/password/

Create the .htpasswd file in the home directory outside of public_html. Also, the path to the .htaccess file should be set like "/home/username/" for Cpanel based accounts.

~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"When all is said and done, there's nothing left to say or do!"
nquale
ZboXian
**
Offline Offline

Posts: 17



Re: .htaccess question
« Reply #2 on: April 22, 2008, 05:27:49 PM »

There's another way of password protecting the DS FM at our new server,it's the way I password protected my DS FM at Amish and at my 1&1 webhost.

Just place the DS FM within a Directory and go to the cpanel and choose Web Protect and password protect that directory.I place all of the DS FM link files within that directory and just change the link routes within each file that needs to be change.If I remember right within the FM itself the beamer,multibeamer and uploader if you have that file are the links that need to be change and I think the other files may need just the FM's url changed.

Anyway this way of passwording my fm has worked great at 1&1 but other then moving my FM at Amish and checking the basics to see if it works but I haven't tried beaming anything in yet but as long as this way works at 1&1 I can't see why it wouldn't work as smoothly at Amish.
Logged
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1511


What 'ya got there??


Re: .htaccess question
« Reply #3 on: April 22, 2008, 06:08:56 PM »

There's another way of password protecting the DS FM at our new server,it's the way I password protected my DS FM at Amish and at my 1&1 webhost.

Just place the DS FM within a Directory and go to the cpanel and choose Web Protect and password protect that directory.I place all of the DS FM link files within that directory and just change the link routes within each file that needs to be change.If I remember right within the FM itself the beamer,multibeamer and uploader if you have that file are the links that need to be change and I think the other files may need just the FM's url changed.

Anyway this way of passwording my fm has worked great at 1&1 but other then moving my FM at Amish and checking the basics to see if it works but I haven't tried beaming anything in yet but as long as this way works at 1&1 I can't see why it wouldn't work as smoothly at Amish.

Hi Nanc,
Yup that way will work also. But frankly the Dynamic Drive method is a little more elegant in that you can password protect individual files in your root. And it's expandable. If you want to add password protected files for your root in the future all you will need do is add the filenames to the .htaccess like:

Code:
<Files fm1.pl>
require valid-user
</Files>

Just change the "fm1.pl" to whatever filename you want. Also the other cool thing is that once you have your .htpasswd file set up in your home directory any file you add to the .htaccess will automatically have the password you set in the .htpasswd file. And that means, that once you login to one of your password protected files, you are then logged into ALL of them until you end your session (by switching off your webtv box, or closing your browser on your pc.) But for things in subdirectories, the Cpanel method is best. Just protect the whole directory.

~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"When all is said and done, there's nothing left to say or do!"
DJ Mike
Serious Poster
****
Offline Offline

Posts: 122



Re: .htaccess question
« Reply #4 on: April 22, 2008, 06:17:26 PM »

Hi Mike,
I've had to rebuild the .htaccess for several accounts that are using the DS FM. Easiest way to do it is go here:

http://tools.dynamicdrive.com/password/

Create the .htpasswd file in the home directory outside of public_html. Also, the path to the .htaccess file should be set like "/home/username/" for Cpanel based accounts.

I haven't had any problem with the DS FM myself. I'm wondering if the .htpasswd file is in some different place on this other server. Isn't the location standard?

I wonder why you had to change the .htaccess files for other people and not me? Paul D did my .htaccess when he put in the DS FM, beamer and the Amish FM's and the password protection is still working correctly for them.
Logged


DJ Mike
Serious Poster
****
Offline Offline

Posts: 122



Re: .htaccess question
« Reply #5 on: April 22, 2008, 06:29:19 PM »

There's another way of password protecting the DS FM at our new server...

...Just place the DS FM within a Directory and go to the cpanel and choose Web Protect and password protect that directory.I place all of the DS FM link files within that directory and just change the link routes within each file that needs to be change.If I remember right within the FM itself the beamer,multibeamer and uploader if you have that file are the links that need to be change and I think the other files may need just the FM's url changed.

If the FM were in a subdirectory, wouldn't it be unable to do things to to files in the root directory and the other subdirectories that are not under it?

The multi beamer I gave him is password protected but I did consider suggesting to him that he put it into a special directory and password protect the directory.
Logged


ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1511


What 'ya got there??


Re: .htaccess question
« Reply #6 on: April 22, 2008, 06:36:46 PM »

I haven't had any problem with the DS FM myself. I'm wondering if the .htpasswd file is in some different place on this other server. Isn't the location standard?

I wonder why you had to change the .htaccess files for other people and not me? Paul D did my .htaccess when he put in the DS FM, beamer and the Amish FM's and the password protection is still working correctly for them.

Hi Mike,
Well for most folks there wasn't a problem. But for some reason a few Amish users .htaccess files were corrupted during the move. Probably due to the overloads on the old server. So for those folks that had the problem I just rebuilt their .htaccess. Seems most of the accounts used a "passwd" file in their home directory. All I had to do is change that filename to .htpasswd, recreate the .htaccess in their root and they were cooking with gas again. There were a couple of accounts where the code for the fm's also got corrupted. Most likely due to the overloaded old servers also. I do have pristine copies of the DS and Riverdrift fm's that fixes that problem.

The move we just did with Mabel, Ides, Jasper, and Boojum was very complex. Frankly I don't think there is another Webtv compatible hosting company that has moved that many servers all at once. This move involved around 300 users total. And I wanted to see how things would go with that many users before I moved Domania. Domania is around 500 users. But on the plus side it's only one server. So any issues we have will end with each fix unlike the move I did with 4 servers.

~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"When all is said and done, there's nothing left to say or do!"
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1511


What 'ya got there??


Re: .htaccess question
« Reply #7 on: April 22, 2008, 06:41:42 PM »

If the FM were in a subdirectory, wouldn't it be unable to do things to to files in the root directory and the other subdirectories that are not under it?

The multi beamer I gave him is password protected but I did consider suggesting to him that he put it into a special directory and password protect the directory.

Depends on the way the fm is set up. Some fm's will only show the files in the directory it's in and any subs below that. Others have a place in the code where you can set the main (or root) directory it will see. The DS fm is around 800 lines long. I haven't really had a chance to go through it but it seems Nanc has a way to set it to look at the directory of your choosing.

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"When all is said and done, there's nothing left to say or do!"
DJ Mike
Serious Poster
****
Offline Offline

Posts: 122



Re: .htaccess question
« Reply #8 on: April 22, 2008, 11:31:22 PM »

... The DS fm is around 800 lines long. I haven't really had a chance to go through it but it seems Nanc has a way to set it to look at the directory of your choosing.

Have you seen the Tornsoul file manager? It has somthing that I haven't seen in any other; a line counter. When you get an error msg saying that you screwed up on line 300, just click a button and the lines are numbered. Scroll down, fix your bug, click "Restore" and the line numbers are gone. Bug fixes that once may have taken hours may now take minutes. The only drawback is that it chews off a few lines evaey time you edit a file more than 1 or 2 kb like the geocities editor does so you have to add a bunch of blank lines to protect you code.

Just yesterday I made an attempt to add that function to dream server. The fuction is in javascript and dream server is in perl, neither of which I know.  Didn't get far.
Logged


ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1511


What 'ya got there??


Re: .htaccess question
« Reply #9 on: April 22, 2008, 11:42:35 PM »

Have you seen the Tornsoul file manager? It has somthing that I haven't seen in any other; a line counter. When you get an error msg saying that you screwed up on line 300, just click a button and the lines are numbered. Scroll down, fix your bug, click "Restore" and the line numbers are gone. Bug fixes that once may have taken hours may now take minutes. The only drawback is that it chews off a few lines evaey time you edit a file more than 1 or 2 kb like the geocities editor does so you have to add a bunch of blank lines to protect you code.

Just yesterday I made an attempt to add that function to dream server. The fuction is in javascript and dream server is in perl, neither of which I know.  Didn't get far.

No Mike I haven't seen that one. Email me the code when you get a chance.

I'm not a coder. Ya'll do what you do and I'm just amazed at what ya'll come up with. My wife is serious at doing table art. Way too much code for me LOL.

~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"When all is said and done, there's nothing left to say or do!"
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

ZboX Webhosting Est. 2003. Now in our Fourth year! | Powered by SMF 1.0.10.
© 2005, Simple Machines LLC. All Rights Reserved.
Page created in 0.076 seconds with 21 queries.