Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


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


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
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
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, 10-Nov 11:19:05 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
· [89] Verizon Keeps Swinging At AT&T
· [85] VoIP Over 3G Still Not Working For iPhone
· [51] Moto Sold About 100,000 Droids
· [33] Bill Would Force ISPs To Block Financial Scams
· [24] Mediacom Hints At 50, 100 Mbps Speeds
· [17] Clearwire To Get Another $1.5 Billion
· [12] Monday Evening Links
· [10] 15 States Have Now Gotten Broadband Mapping Money
· [10] Government Will Release Some Telco Wiretap Lobbying Documents
· [9] Google Offers Free Holiday Airport Wi-Fi
Most people now reading
· Google Has Acquired Gizmo5 [VOIP Tech Chat]
· Windows 7 boot manager editing questions [Microsoft Help]
· [Rant] usps = run by a bunch of idiots [Rants, Raves, and Praise]
· Wood floor opinion... [Home Repair & Improvement]
· A fishy CRTC tarriff filed by bell? [TekSavvy]
· [Internet] Bell tech with DSL problems at home [Bell Canada]
· Live feed of MW2 playing PC version [PC gaming GAMES]
· Slow speed lately? [TekSavvy]
· How in the world am I going to get into college? [General Questions]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]