Forum Moderators: phranque

Message Too Old, No Replies

Trouble setting up an Alias

         

alberth

3:26 pm on May 15, 2005 (gmt 0)



Running Xampp on Windows XP pro

I am trying to set up an alias. I is only for testing and doesn't need to be accessed from the outside.

So far I added (in the apache http.conf
Alias /test "c:/internet/apachefriends/xampp/htdocs/test/"

<Directory "c:/internet/apachefriends/xampp/htdocs/test/">
Options Indexes MultiViews ExecCGI
DirectoryIndex index.html
AllowOverride None
Order allow,deny
Allow from all
</Directory>

I soon as I add a file called index.html
I no lang can access the url I get the error
"You don't have permission to access /test/< on this server."

When I change the name of index.html to something else I sundenly see all the files in the directory
Also the php inside this file is not parsed. But The Xampp samples do work?

What do I need to change in my config?

Albert

jdMorgan

2:35 pm on May 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Albert,

Welcome to WebmasterWorld!

I can't answer your question as stated, but maybe someone else can...
<bump>

Jim

calmchess

2:46 pm on May 18, 2005 (gmt 0)

10+ Year Member



/test/ ...........not..../test.....just a suggestion not sure though ....thats how my aliases are in apache2

encyclo

2:54 pm on May 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



According to the documentation [httpd.apache.org] you shouldn't need the quote marks around the path. Also you should be using backslashes as you're running under Windows. calmchess is also right in that there shouldn't be a trailing slash at the end either. Try:

 Alias /test c:\internet\apachefriends\xampp\htdocs\test

Does that work any better? If not, do you have mod_alias enabled?