Xampp basic configuration

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Xampp basic configuration

Postby aioria » 30. July 2013 03:22

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.
aioria
 
Posts: 2
Joined: 30. July 2013 02:31
XAMPP Version: 5.5.19
Operating System: win 8/debian

Re: Xampp basic configuration

Postby aioria » 02. August 2013 20:17

up
aioria
 
Posts: 2
Joined: 30. July 2013 02:31
XAMPP Version: 5.5.19
Operating System: win 8/debian

Re: Xampp basic configuration

Postby Altrea » 02. August 2013 21:31

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6828
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 68 guests