Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have tried to create a new folder 'test' in my documentroot of my Apache2 installation, however, whenever I try and access it from a web-browser it gives me a 403 (forbidden) error.

My virtualhosts file -

<VirtualHost *:80>
  ServerAdmin webmaster@localhost
  ServerName REMOVED
  DocumentRoot /var/www/


  <Directory />
    Options FollowSymLinks
    AllowOverride All
    AuthType Digest
    AuthName "documentroot"
    AuthDigestProvider file
    AuthUserFile /etc/apache2/htpasswd
    Require user REMOVED
    AllowOverride Indexes
  </Directory>


 <Directory /var/www/>
   Options FollowSymLinks
   Options -Indexes FollowSymLinks MultiViews
   AllowOverride All
   Order allow,deny
   allow from all
 </Directory>


<Directory /var/www/share/>
  Order Deny,Allow
  Allow from all
  Satisfy any
</Directory>


<Directory /var/www/REMOVED/>
    Order Deny,Allow
    Allow from all
    Satisfy any
  </Directory>


  <Directory /var/www/stream/>
    Order Deny,Allow
    Allow from all
    Satisfy any
  </Directory>


   <Directory /var/www/test>
    Order Deny,Allow
    Allow from all
    Satisfy any
 </Directory>


  ErrorLog /var/log/apache2/error.log


  # Possible values include: debug, info, notice, warn, error, crit,
  # alert, emerg.


  LogLevel warn


  CustomLog /var/log/apache2/access.log combined


  <Directory /var/www/REMOVED>
    AuthType Digest
    AuthName "rutorrent"
    AuthDigestDomain /var/www/REMOVED/ http://46.105.127.19/REMOVED
    AuthDigestProvider file
    AuthUserFile /etc/apache2/htpasswd
    Require valid-user
   SetEnv R_ENV "/var/www/REMOVED"
   AllowOverride Indexes
 </Directory>
</VirtualHost>

Image of the permissions - enter image description here

Other information -
If I create a new folder (and use chmod --reference to ensure it has the same permissions as an accessible folder), I get a 403 client-side.
If I copy folder 'rapidleech' to the name 'rapidleech1', it will let access 'rapidleech1', but no longer 'rapidleech', until I delete the copy.
In my logs I found nothing logged in errors.log, and only that it delivered a 403 in access.log.
All the appropriate users are members of www-data.

EDITS -

Operating system is Ubuntu 12.04 LTS.
I have valid users (because I can use the login correctly on other folders, and they as expected).

share|improve this question
    
Do you have valid users inside /etc/apache2/htpasswd? –  CyberJacob Jul 3 '13 at 16:30
    
What operating system are you using? –  terdon Jul 3 '13 at 16:38
    
Operating system is Ubuntu 12.04 LTS. I have valid users (because I can use the login correctly on other folders, and they as expected). –  user235101 Jul 3 '13 at 17:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.