Page 1 of 1

Xampp basic configuration

PostPosted: 30. July 2013 03:22
by aioria
Hi,
I installed xampp 1.8.3 on windows 8 in "C:/xampp" and i have some problem to configure httpd.conf for use the userdir directive.

I want to use a URL like "http://localhost/~myDirectory", where myDirectory have a internal public_html directory.

I have put in the "httpd-userdir.conf" this:
Code: Select all
<IfModule userdir_module>

userdir public_html

<Directory "C:/xampp/htdocs/myDirectory/public_html">
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        <Limit GET POST OPTIONS>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>

</IfModule>


and in the "httpd.conf"
Code: Select all
<Directory "C:/xampp/htdocs/myDirectory/public_html">
  Order allow,deny
  Allow from all
</Directory>


When I start xampp and enter in the browser with the previous URL I recive a 403 error "access denied".
Where I' m wrong?
Thanks for the help.

Re: Xampp basic configuration

PostPosted: 02. August 2013 20:17
by aioria
up

Re: Xampp basic configuration

PostPosted: 02. August 2013 21:31
by Altrea
Hi aioria,

aioria wrote:userdir public_html

If you just specify a foldername without leading slash or any absolute path Apache will search for that file in the Windows users directory.
So if you would now request http://localhost/~myDirectory/ it will search for C:\Users\myDirectory\public_html\

A fitting setting for userdir would be
Code: Select all
UserDir "C:/xampp/htdocs/*/public_html"


best wishes,
Altrea