logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: can't make directories browseable
Author
jonathansfl



Joined: 08 Oct 2016
Posts: 4
Location: USA, Miami

PostPosted: Sun 09 Oct '16 3:25    Post subject: can't make directories browseable Reply with quote

Greetings
I am an experienced Apache user but I’m stumped here.
Using Apache 2.2.22 on Ubuntu 12.04.5 LTS
I am trying to make 2 directories BROWSABLE.
www.mysite.com/ftp should be fully browsable to public (public folder).
www.mysite.com/ftp/clientname1 should be password-protected but then browsable to authorized user.
There are no .htaccess files in use.
The .htpasswd file is there and the password was correctly hashed and saved there.
I can get it to prompt for the username and password on that directory, but they are never accepted and the directory is never browsable. nor is the public folder ever browsable.
public folder (ftp) has these permissions: drwxrwxrwx 4 postgres postgres
My log files don't show any helpful hints although i'm on debug level.
Thank you for your help!!
Jonathan


## My Virtual Host settings ##

Code:

NameVirtualHost 100.106.229.229:80

<VirtualHost 100.106.229.229:80>
  ServerName   mysite.com
  DocumentRoot /var/www/mysite.com/www
  DirectoryIndex index.php index.pl index.html
  FallbackResource /index.php
  ServerAlias  mysite.com www.mysite.com
  ErrorLog     /var/www/mysite.com/www/logs/mysite.com-error_log
  TransferLog  /var/www/mysite.com/www/logs/mysite.com-access_log
LogLevel debug

  <Directory "/var/www/mysite.com/www/ftp/clientname1">
        Options Indexes FollowSymLinks
        #AllowOverride All
        AuthType Basic
        AuthBasicProvider file
        AuthName "Restricted Content - Authorized Employees ONLY"
        AuthUserFile /etc/apache2/.htpasswd
        Require valid-user
  </Directory>

  <Directory "/var/www/mysite.com/www/ftp">
        Options Indexes Multiviews FollowSymLinks
        AuthType none
        Order allow,deny
        Satisfy Any
        Allow from all
  </Directory>

</VirtualHost>

Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 11 Oct '16 21:15    Post subject: Reply with quote

What is your access / error still 401 or 403?

How did you create the password file?
Back to top
jonathansfl



Joined: 08 Oct 2016
Posts: 4
Location: USA, Miami

PostPosted: Tue 11 Oct '16 23:34    Post subject: .htpasswd Reply with quote

Quote:
The connection was reset

The connection to the server was reset while the page was loading.


That's on both the "Public" (FTP) page (which shouldn't have any password concerns) and the private page.

For the password-protected folder, i used:
htpasswd -c /etc/apache2/.htpasswd jane
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Sat 15 Oct '16 10:44    Post subject: Reply with quote

James Blond wrote:
What is your access / error still 401 or 403?

How did you create the password file?
Back to top
jonathansfl



Joined: 08 Oct 2016
Posts: 4
Location: USA, Miami

PostPosted: Wed 19 Oct '16 1:44    Post subject: Reply with quote

to create password file i used:
htpasswd -c /etc/apache2/.htpasswd jane

my 403 http error is: Error while fetching URL.
Back to top
jonathansfl



Joined: 08 Oct 2016
Posts: 4
Location: USA, Miami

PostPosted: Fri 04 Nov '16 2:39    Post subject: HELP! Still no answer to this simple problem.... Reply with quote

Please help as i can't get this dumb site to be browseable in the FTP directory.
Back to top


Reply to topic   Topic: can't make directories browseable View previous topic :: View next topic
Post new topic   Forum Index -> Apache