Access forbidden

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

Access forbidden

Postby tristanlee85 » 07. November 2005 06:31

I set up a virtual host. The DocumentRoot is set to
Code: Select all
C:\xampp\xampp\upload
.

In the upload directory, there are different folders for peoples' username. I want the user to be able to access their site by
Code: Select all
http://[my ip address]/[their username]
. Whenever I try that, I get an "Access Forbidden" error.

Here are 2 different parts of my httpd.conf file:

Code: Select all
<Location C:/xampp/xampp/upload/>
    SetHandler upload
    Order deny,allow
    Allow from all
</Location>


Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
    ServerAdmin tristanlee1985@charter.net
    DocumentRoot C:/xampp/xampp/upload/
    ServerName 65.186.187.193:80
    ErrorLog logs/65.186.187.193-error_log
    CustomLog logs/65.186.187.193-access_log common
</VirtualHost>


Why am I getting a forbidden error?
tristanlee85
 
Posts: 11
Joined: 15. October 2005 08:16
Location: Columbus, OH

Postby WorldDrknss » 07. November 2005 06:58

Lets say that you have the names bob and jon and you want them to use you ipaddress/therename
1. create user folders in C:\xampp\xampp\upload
example:
C:\xampp\xampp\upload\bob
C:\xampp\xampp\upload\jon

- use the following code
Code: Select all
<VirtualHost *:80>
    DocumentRoot C:/xampp/xampp/upload
    ServerName 65.186.187.193
</VirtualHost>

this is what you would type in.
http://65.186.187.193 - yoursite
http://65.186.187.193/bob - bob's site
http://65.186.187.193/jon - jon's site

by the way you can use www.dyndns.org to get a domain name to use instead of an ip address and its free.

http://www.thegamerslounge.game-host.org
User avatar
WorldDrknss
 
Posts: 292
Joined: 17. September 2005 13:40

Postby WorldDrknss » 07. November 2005 07:09

and change back
Code: Select all
<Location C:/xampp/xampp/upload/>
    SetHandler upload
    Order deny,allow
    Allow from all
</Location>

First <Location should look like:
Code: Select all
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from localhost
</Location>

Second <Location should look like
Code: Select all
<Location /server-info>
    SetHandler server-info
    Order deny,allow
    Deny from all
    Allow from localhost
</Location>
User avatar
WorldDrknss
 
Posts: 292
Joined: 17. September 2005 13:40


Return to XAMPP for Windows

Who is online

Users browsing this forum: mgagnonlv and 42 guests