Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 22, 2014, 10:53 AM   #1
buster84
macrumors member
 
Join Date: Oct 2013
.htaccess issues on osx server

FYI I'm a total noob when it comes to websites . I have a mac pro desktop that i use as my media center and i recently decided that i want to be able to send links of my files to friends for them to download so i bought a domain name, bought osx server for mavericks and installed everything.

So far i was able to create a homepage on my computer and when i loaded up my domain name it worked. Then I created a folder for my files and they are all fully accessible though the domain as well and download fine, but its to open to the public which i don't like.

So i created a .htaccess file to password protect my files

Quote:
AuthType Basic
AuthName "Files"
AuthUserFile /Volumes/2TB/users/.htpasswd
Require valid-user
Then created the .htpasswd and stuck it in a directory (outside my main website directory but when ever i click the to download a file i get 500 internal server error instead of a request for a username/pass. I don't understand whats wrong since i checked "allow overrides using .htaccess files" in the advanced settings. I get the feeling that checking that little box isn't cutting it when it sure seems like it should...

I have my site on a dedicated hard drive and i tried directing the .htaccess file to the .htpasswd file by the above link (in quote) and by "/2TB/users/.htpasswd" and "/users/.htpasswd" and i still get 500 internal error. Either I'm messing up on the directory location or something else is going on here. All the files are on the same hard drive as well.

All i want to do is to be able to send a link to a friend in an e-mail with a username and password and allow him to click the link, enter his username and pass and download the file, but for the life of me i just can't get it to work.

What am i doing wrong? How can i fix this and get the username and passwords to work?
buster84 is offline   0 Reply With Quote
Old Aug 25, 2014, 02:31 PM   #2
morespce54
macrumors 65816
 
morespce54's Avatar
 
Join Date: Apr 2004
Location: Around the World
Can you open your
Code:
.htpasswd"
with, let say, Safari? What is the path in the navig bar?
__________________
..:.::.:.:.::..:.: Oh, I get it. It's very clever :.:.::.:.:.::.:..:.::..:.::.:..:.::.:.::.:.::..
DO NOT OPERATE YOUR COMPUTER UNDER THE INFLUENCE!
morespce54 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Mac OSX Server .htaccess problems buster84 Web Design and Development 1 Aug 24, 2014 10:01 AM
Issues seeing files on OSX server remotely Rob K Mac OS X Server, Xserve, and Networking 5 Feb 11, 2014 05:26 AM
OSX 10.9 Server 3.0.2 UKgaryb Mac OS X Server, Xserve, and Networking 2 Jan 9, 2014 01:42 PM
OSX 10.5 Server help Warfel005 Mac OS X Server, Xserve, and Networking 0 Dec 9, 2013 01:39 PM
OSX Server - A few Q's Macs4u Mac OS X Server, Xserve, and Networking 10 Aug 4, 2013 05:43 AM

Forum Jump

All times are GMT -5. The time now is 07:30 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps