Defining directories in Apache and maybe Xamp

I’ve been following several tutorials on how to install Zend Framework 2 into a virtual local host and have finally completed 3 successfully but not until I added a bit of code to a file that none of them seemed to be mentioning… and I’m really proud of the intuition that lead me to try it and that it appeared to solve my problem was very exciting… but the fact that none of the tutorials have mentioned it has me concerned that I’m overlooking the proper way to have set it up. Specifically… I added these 2 blocks to my http.conf file and I guess it worked, but still weary.

    <Directory "c:/wamp/vhosts/site2">
    Options Indexes FollowSymLinks
    AllowOverride all
    # Controls who can get stuff from this server.
    #   onlineoffline tag - don't remove
    Require local
   </Directory>
  <Directory "C:/Users/Turtle/tst/public">
    Options Indexes FollowSymLinks
    AllowOverride all
    # Controls who can get stuff from this server.
    #onlineoffline tag - don't remove
    Require local
</Directory>

I was right about being right, just because it worked doesn’t make it right, I could delete this all together and add 1 line to my vhosts file, that was not required in previous versions of Apache.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.