Author |
|
jonathansfl
Joined: 08 Oct 2016 Posts: 4 Location: USA, Miami
|
Posted: Sun 09 Oct '16 3:25 Post subject: can't make directories browseable |
|
|
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
|
Posted: Tue 11 Oct '16 21:15 Post subject: |
|
|
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
|
Posted: Tue 11 Oct '16 23:34 Post subject: .htpasswd |
|
|
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
|
Posted: Sat 15 Oct '16 10:44 Post subject: |
|
|
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
|
Posted: Wed 19 Oct '16 1:44 Post subject: |
|
|
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
|
Posted: Fri 04 Nov '16 2:39 Post subject: HELP! Still no answer to this simple problem.... |
|
|
Please help as i can't get this dumb site to be browseable in the FTP directory. |
|
Back to top |
|