XAMPP pointing a file outside root folder

Posted by Ravi on Server Fault See other posts from Server Fault or by Ravi
Published on 2012-11-16T19:50:20Z Indexed on 2012/11/17 23:05 UTC
Read the original article Hit count: 413

Filed under:
|
|
|
|

I am using XAMPP for first time in Mac. Running out problems accessing other than root folder(htdocs).when I am placing my web application inside htdocs with default httpd.conf file it works when I try to point my web application url in httpd.conf it throws error

I am aware that to modify the root folder I need to do changes to my XAMPP/etc/httpd.conf file

With Default XAMPP MAC Settings, I am trying to change Server root,Document root and Directory in XAMPP/etc/httpd.conf file the following

ServerRoot "/Users/ravi/Documents/Development/Backbone/backboneboilerplate"

DocumentRoot "/Users/ravi/Documents/Development/Backbone/backboneboilerplate"

<Directory />
    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    Deny from all
</Directory>

<Directory "/Users/ravi/Documents/Development/Backbone/backboneboilerplate">

Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

</Directory>

its throwing error when trying to start XAMPP

httpd: Syntax error on line 54 of /Applications/XAMPP/xamppfiles/etc/httpd.conf: Cannot load /Users/ravi/Documents/Development/Backbone/backboneboilerplate/modules/mod_authn_file.so into server: cannot create object file image or add library

© Server Fault or respective owner

Related posts about apache2

Related posts about tomcat