Page 1 of 1

directory list for restricted access settings

PostPosted: 26. July 2012 08:30
by jmichae3
in the main settings I have
Code: Select all
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>


<VirtualHost 127.0.0.1:80>
   ServerName junk
   DocumentRoot e:/HTMLjunk
    <Directory e:/HTMLjunk/>
      <RequireAll>
         Require all granted
      </RequireAll>
    </Directory>

   #ServerAlias junk
    #ServerAdmin nobody@nowhere.com
    ErrorLog logs/htmljunk-error.log
    CustomLog logs/htmljunk-access.log common

    #this is a junk test directory, so we want a directory listing when accessing / using mod_autoindex
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</VirtualHost>


the apache manual isn't clear in what tags a lot of these directives belong, or I would be doing this myself.
I get an syntax error on the AllowOverride and I don't know why.

Re: directory list for restricted access settings

PostPosted: 26. July 2012 08:38
by jmichae3
just got it working.
Code: Select all
<VirtualHost 127.0.0.1:80>
   ServerName tc
   DocumentRoot e:/prj/tc-search/10-commandments-2.1
    <Directory e:/prj/tc-search/10-commandments-2.1/>
      <RequireAll>
         Require all granted
      </RequireAll>
      #this is a junk test directory, so we want a directory listing when accessing / using mod_autoindex
      Options Indexes FollowSymLinks Includes ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
    </Directory>
   #ServerAlias tc-search
    #ServerAdmin nobody@nowhere.com
    ErrorLog logs/tc-error.log
    CustomLog logs/tc-access.log common
</VirtualHost>