logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: weird apache behavior with Alias directive
Author
joemartinez9



Joined: 15 Jul 2010
Posts: 3

PostPosted: Thu 15 Jul '10 2:10    Post subject: weird apache behavior with Alias directive Reply with quote

Hi all. Our Apache (v2.0) is running on Windows Server 2003 and I’m running into some strange behavior that I can’t figure out. I’m currently testing an Alias, and it only seems to work up to a certain point. In my httpd.conf, I’ve tested the following using the URL
http://blah.blah.com/cfide/administrator :

DocumentRoot "D:/MyStuff/webroot"

SUCCESS!
Alias /cfide/administrator "D:/" (goes to correct file located in D:/index.cfm)

SUCCESS!
Alias /cfide/administrator "D:/MyStuff" (goes to correct file located in D:/MyStuff/index.cfm)

SUCCESS!
Alias /cfide/administrator "D:/MyStuff/CFIDE" (goes to correct file located in D:/MyStuff/CFIDE/index.cfm)

FAIL!
Alias /cfide/administrator "D:/MyStuff/CFIDE/administrator" (goes to D:/MyStuff/webroot/CFIDE/administrator/index.cfm???)

It never tried looking under DocumentRoot in my first 3 tests so why would it start now? Is there a bug that prevents mapping an alias to a physical directory with the same name?

Thanks!
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Thu 15 Jul '10 7:56    Post subject: Reply with quote

Alias /cfide/administrator "D:/MyStuff/CFIDE/administrator"

see anything missing above that is in your example below?

D:/MyStuff/webroot/CFIDE/administrator
Back to top
joemartinez9



Joined: 15 Jul 2010
Posts: 3

PostPosted: Thu 15 Jul '10 20:21    Post subject: Reply with quote

that's the thing. I don't want it go to D:/MyStuff/webroot/CFIDE/administrator. I want it to go to D:/MyStuff/CFIDE/administrator.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Thu 15 Jul '10 21:06    Post subject: Reply with quote

What other Aliases you have got in your config if any?
Back to top
joemartinez9



Joined: 15 Jul 2010
Posts: 3

PostPosted: Thu 15 Jul '10 23:28    Post subject: Reply with quote

i don't have any other alias' in there except for the ones that apache automatically puts in there.

i tested another directory and it works just fine even if the alias name does match the physical location. So, i think it's something with the index file in that particular directory that's causing apache to redirect to the documentroot. unfortunately, when i open up the index file, it's all wingdings so i can't tell what exactly it's doing.

other people who are running coldfusion suggested i map /CFIDE rather than /CFIDE/administrator. i tried it and it works so i guess it'll just leave it at that.

Thanks for the help.
Back to top


Reply to topic   Topic: weird apache behavior with Alias directive View previous topic :: View next topic
Post new topic   Forum Index -> Apache