Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1673
  • Last Modified:

php windows (xampp) alias

I  just edited my httpd.conf file to add an alias

Alias /webpath/ "C:/Users/administrator/Desktop/"
Alias /webpath "C:/Users/administrator/Desktop"

I am getting an error that says access forbidden.

What do I have to do?
0
jackjohnson44
Asked:
jackjohnson44
  • 2
  • 2
1 Solution
 
AtanAsfalothCommented:
I havent ever run a webserver on windows but could the directory name be case sensitive? As far as I know the default username is 'Administrator' and not 'administrator'.

Hoping this helps,

Atan
0
 
jackjohnson44Author Commented:
Actually, it is finding the file, but it says access forbidden.  If I change the file I am looking for, it gives me an error.

Do you have any idea what kind of permissions I need and what user?

I tried giving everyone all access, but that didn't work.
0
 
AtanAsfalothCommented:
Can you try adding the following to your httpd.conf file?

<Directory "C:/Users/administrator/Desktop">
AllowOverride All
Order allow,deny
Allow from All
</Directory>
0
 
jackjohnson44Author Commented:
THANKS!!!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now