Forum Moderators: phranque

Message Too Old, No Replies

Apache 1.3.28 >XP > Complete Beginner setting alias?

         

thinnk

9:39 am on Mar 25, 2004 (gmt 0)



Hi guys,

Am a web designer whom has installed Apache 1.3.28 on my XP Home machine.
Install went perfect, went to [localhost...] and it was successful. Install PHP, and my test.php file worked.

PROBLEM:
When I made a new directory in the /htdocs/ folder called /php/ just to test the folder priviledges, and copied my test.php, which ran perfectly as [localhost...] , and tried to load it in [localhost...] , it gave me a:
403 Forbidden
You don't have permission to access /php/ on this server.
.

Now the only folder in the /htdocs/ is a documentation folder which came with the install.
And as far as I understand, I obviously have to edit my "httpd.conf" file to change permissions.
How would I do edit it with setting permissions to all folders I create in the /htdocs/ folder or do I have to set an "alias"?(a word I dont know the true meaning of) for every single folder I want to create?

Please help?

Thanks
J

jdMorgan

6:43 pm on Mar 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Has anybody got some ideas for thinnk?

Thanks! <bump>

Jim

DanA

7:41 pm on Mar 29, 2004 (gmt 0)

10+ Year Member



edit httpd.conf
In the Aliases part, add (if it is c:/php/)

Alias /anyname "c:/php/"

<Directory "c:/php/">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
deny from all
</Directory>

and localhost/anyname/test.php should call your page c:/php/test.php

You have to do that for each folder or call/link your pages from an allowed folder