republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » Apache2-Solaris10sparc-access to directories.. help!
Uniqs:
373
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
CSS Padding with Firefox »
« Zoneedit now forcing ad popups  

aa2k

join:2000-10-06
Damascus, MD

Apache2-Solaris10sparc-access to directories.. help!

Hi, I have setup Solaris 10 and apache 2 (already included) but I have a problem accessing the directory I want to place documents...

Let me try to explain....
The 'index.html' file(s) is located in /etc/apache2/mine/ folder.

There is a directory called '/apache_files' under root.

The website will call to either view or download the documents from /apache_files... so far so good.... it works..

Now, I want to place a login to enter to the web site, I follow the steps outlined on:
»httpd.apache.org/docs/2.0/howto/auth.html

---e.g.: I added this for the ~/mine directory, so now it asks me for username and password to display the web site:

AuthType Basic
AuthName "Restricted Files"
AuthUserFile /usr/local/apache/passwd/passwords
Require user rbowen
---

I create the user and password (this not a machine user, just to get into the site).

Now I cant get to the files, every time I click on the link I get the 401 page...
Looking into the logs I found out that when this ID/password is set it will look for the files to be under the /mine directory and no place else... why???

this is, the structure it is asking me for is:
/etc/apache2/mine/apache_files
(if I move it this way it works)

But the folder 'apache_files' I needed it to be on a different location, I cant seem to make it work, any suggestions?

Thanks so much.. sorry I am a noob on this... I hope I explained my question in a sufficient way..
aa2k

state
stress magnet
Premium,Mod
join:2002-02-08
Hampton, VA
clubs:

Host:
Webhosting
Sonic.net
UK Broadband
Washington & Balti..
UK Chat

Re: Apache2-Solaris10sparc-access to directories.. help!

Have you thought about a symbolic link? Make sure you have the option enabled in the .htaccess file:

Options +FollowSymLinks

Then link the directory:

$ ln -s /apache_files /etc/apache2/mine/apache_files

--
"To steal ideas from one person is plagiarism; to steal from many is research." --Steven Wright

aa2k

join:2000-10-06
Damascus, MD

Re: Apache2-Solaris10sparc-access to directories.. help!

Thanks, I will try it tonight, it sounds like a very good option...
Forums » Tech and Talk » OS and Software » Webmasters and DevelopersCSS Padding with Firefox »
« Zoneedit now forcing ad popups  


Tuesday, 01-Dec 03:57:51 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [57] Baltimore To Ban Lazy Cable Installs
· [47] Broadband Killed The Game Console
· [34] Rural Carriers Quickly Embracing Fiber
· [31] AT&T Top Lobbyist Cicconi Has His Feelings Hurt
· [25] Charter Exits Chapter 11
· [22] Midcontinent Socked With Easement Lawsuit
· [4] Monday Evening Links
· [3] Monday Morning Links
Most people now reading
· Windows 7 boot manager editing questions [Microsoft Help]
· Connecting to Google Voice Via SIP [VOIP Tech Chat]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· Is Microsoft Technet ok to use for my family PC's? [Microsoft Help]
· [Snow Leopard] NFS Mounts - no more Directory Utility [All Things Macintosh]
· Why is VoIP Better than POTS? [VOIP Tech Chat]
· [Newsgroups] Newzleech down? [Filesharing Software]
· Callcentric and 3-way calling [VOIP Tech Chat]
· Opening a file download dialog from a JavaScript function. [Webmasters and Developers]
· [Rant] called out sick! [Rants, Raves, and Praise]