FeralReason wrote:Do I need to do something beyond changing the DocumentRoot line in the httpd.conf...
Glenn, the
<Directory "C:/xampp/htdocs"> Directive
must be set to the same as your DocumentRoot - this is the reason for the access denied error message as all directories, except those Aliased or Virtual Hosted, outside the DocumentRoot have access denied for obvious security reasons.
This sameness is explained in the comments of the httpd.conf file...
- Code: Select all
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/xampp/htdocs">
...and for future reference, these and all comments are well worth reading before making any changes in the httpd.conf file.
Also be aware that changing things in any conf or ini file requires first a backup copy be made then, in case you are not able to start the component after editing, you can revert to the backup copy to get you on the road again.
BTW it is not always a good idea to alter the default
"out of the box" Apache settings as there are usually alternate methods to achieve your goals.
For Example:
You can use the
Alias directive for your SVN files and edit the
C:\xampp\apache\conf\extra\httpd-xampp.conf file where you will see some configurations already included and working.
This Alias method may work for your SVN after first returning your httpd.conf file back to the defaults before you edited it - don't try this first without making a backup of both .conf files as mentioned above.
The Alias directive is explained here:
http://httpd.apache.org/docs/2.2/mod/mo ... html#aliasYou can add your svn Alias after the webalizer Alias so both entries would look like this after editing:
(
and remember to save the file and restart Apache after editing)
- Code: Select all
Alias /webalizer "C:/xampp/webalizer/"
<Directory "C:/xampp4/webalizer">
<IfModule php5_module>
<Files "webalizer.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
AllowOverride AuthConfig
</Directory>
Alias /svn "C:/xampp/fp/httpdocs/"
# if this is where you want to put your SVN files
# my choice would be "C:/xampp/svn/" perhaps
<Directory "C:/xampp/fp/httpdocs">
# or <Directory "C:/xampp/svn"> if you changed it
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# <Directory> entries are the same as for the DocumentRoot in the httpd.conf file
# You can add or change them to suit your SVN file's needs, but there should be no need
</IfModule>
For a list of
all Directives and what they mean and what they do can be found here:
http://httpd.apache.org/docs/2.2/mod/directives.htmlFor a list of the
Options directive go here:
http://httpd.apache.org/docs/2.2/mod/core.html#optionsThis URI should now work and access your files in the above
C:\xampp\fp\httpdocs\ folder or in the
C:\xampp\svn\ folder if you changed it in the Alias settings.
http://localhost/svn(
BTW is this the correct spelling of the folder you intended as usually htdocs refers to the DocumentRoot folder).
Words after the hash
# character are my comments and may be removed if you use the above example in your own
httpd-xampp.conf file.
This Alias or VirtualHost method will still allow you to access all the default XAMPP web pages as was intended by the XAMPP developers at the URI of
http://localhost/As an alternative to the
Alias directive you could use a
VirtualHost directive and for some good examples and lots of info do an
Advanced forum search in this
XAMPP for Windows English forum for keyword
virtualhost or
vhost and all the vhost configurations can be found in the
C:\xampp\apache\conf\extra\httpd-vhosts.conf file.
Glenn, kindly let us know how you get on please.
Good luck with it.