Thanks for the input!
My alias did indeed allow me to access a file within the PDF folder directly
via browser, but still file_exists returns false. The symbolic
link...creating it was the equivalent of me moving the PDF folder under the
virtual host's root, which means that for file_exists to return true I had
to remove the initial slash (file_exists('PDF/4239-0001.PDF') returns true);
but, I want my PDF alias to behave as a top level, publicly available folder
to whatever virtual host I may be accessing, so I need the initial slash to
remain (file_exists('/PDF/4239-0001.PDF') ).
Isn't it possible to create a top level alias that any virtual host can
access?
Oh, and I checked permissions...gave full access to all users just to be
sure. No change in behavior.
Any more ideas? Could it have something to do with what Apache thinks "/"
really means?
On Mon, Jan 4, 2010 at 12:17 PM, Felipe Recalde <[email protected]> wrote:
> Ignore me if safe_mode was off.
>
> Have you pulled up the file in a browser and verified that the alias is
> functional?
>
> A couple things came to mind:
>
> 1) Apache is case sensitive. if I remember correctly, IIS wasn't case
> sensitive unless configured to be.
> 2) If mod_alias isn't working for some reason, a ntfs symbolic link should
> be a quickfix.
>
> mklink /D c:\yourwamppath\www\PDF c:\wwwroot\PDF
>
> 3) Does your apache process have permissions to access that folder?
>
> Hopefully that helps,
>
>
>
> Felipe Recalde
> Director of IT
>
> *OFFICE* (956) 943-3622
> *FAX *(956) 943-2070
>
> NO. 1 GOLF HOUSE RD.
> LAGUNA VISTA, TX 78578 <http://www.spigolf.com/>
> WWW.LANDMARKLANDCO.COM <http://www.spigolf.com/>
> <http://www.spigolf.com/>WWW.SPIGOLF.COM <http://www.spigolf.com/>
>
> 0
>
> On Jan 4, 2010, at 11:53 AM, Doug Boude wrote:
>
> No sir. but, my safe mode is currently set to off. Do I still need that
> directive?
>
> On Mon, Jan 4, 2010 at 11:49 AM, Felipe Recalde <[email protected]>wrote:
>
>>
>> Do you have c:/wwwroot/PDF listed in the php.ini
>> safe_mode_include_dir<http://php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-include-dir>
>> directive?
>>
>>
>>
>>
>>
>> Felipe Recalde
>> Director of IT
>>
>> *OFFICE* (956) 943-3622
>> *FAX *(956) 943-2070
>>
>> NO. 1 GOLF HOUSE RD.
>> LAGUNA VISTA, TX 78578 <http://www.spigolf.com/>
>> WWW.LANDMARKLANDCO.COM <http://www.spigolf.com/>
>> <http://www.spigolf.com/>WWW.SPIGOLF.COM <http://www.spigolf.com/>
>>
>>
>> On Jan 4, 2010, at 11:38 AM, Doug Boude wrote:
>>
>> On a windows machine running WAMP, and from within a virtual host that
>> acts as its own root, I am checking for the existence of a file using
>> file_exists("/PDF/4239-0001.PDF") . Under IIS with a virtual directory
>> named PDF pointing to the PDF folder, this statement returns true; under
>> apache with an alias named PDF pointing to the right folder (windows), this
>> same statement returns false. Can anybody tell me what I need to do to
>> Apache in order for that statement to work as is?
>>
>> Here's my alias definition:
>>
>> Alias /PDF "C:/wwwroot/PDF"
>>
>> <Directory "C:/wwwroot/PDF">
>> Options Indexes FollowSymLinks MultiViews
>> AllowOverride all
>> Order allow,deny
>> Allow from all
>> </Directory>
>>
>>
>> Thanks for any ideas. I've tried all manner of slashes, trailing slashes,
>> case, etc. and can get nothing to work.
>>
>> Doug :0)
>>
>> --
>> Our Web site: http://www.RefreshAustin.org/
>>
>> You received this message because you are subscribed to the Google Groups
>> "Refresh Austin" group.
>>
>> [ Posting ]
>> To post to this group, send email to [email protected]
>> Job-related postings should follow http://tr.im/refreshaustinjobspolicy
>> We do not accept job posts from recruiters.
>>
>> [ Unsubscribe ]
>> To unsubscribe from this group, send email to
>> [email protected]
>>
>> [ More Info ]
>> For more options, visit this group at
>> http://groups.google.com/group/Refresh-Austin
>>
>>
>>
>> --
>> Our Web site: http://www.RefreshAustin.org/
>>
>> You received this message because you are subscribed to the Google Groups
>> "Refresh Austin" group.
>>
>> [ Posting ]
>> To post to this group, send email to [email protected]
>> Job-related postings should follow http://tr.im/refreshaustinjobspolicy
>> We do not accept job posts from recruiters.
>>
>> [ Unsubscribe ]
>> To unsubscribe from this group, send email to
>> [email protected]
>>
>> [ More Info ]
>> For more options, visit this group at
>> http://groups.google.com/group/Refresh-Austin
>
>
>
> --
> Our Web site: http://www.RefreshAustin.org/
>
> You received this message because you are subscribed to the Google Groups
> "Refresh Austin" group.
>
> [ Posting ]
> To post to this group, send email to [email protected]
> Job-related postings should follow http://tr.im/refreshaustinjobspolicy
> We do not accept job posts from recruiters.
>
> [ Unsubscribe ]
> To unsubscribe from this group, send email to
> [email protected]
>
> [ More Info ]
> For more options, visit this group at
> http://groups.google.com/group/Refresh-Austin
>
>
> --
> Our Web site: http://www.RefreshAustin.org/
>
> You received this message because you are subscribed to the Google Groups
> "Refresh Austin" group.
>
> [ Posting ]
> To post to this group, send email to [email protected]
> Job-related postings should follow http://tr.im/refreshaustinjobspolicy
> We do not accept job posts from recruiters.
>
> [ Unsubscribe ]
> To unsubscribe from this group, send email to
> [email protected]
>
> [ More Info ]
> For more options, visit this group at
> http://groups.google.com/group/Refresh-Austin
>
--
Our Web site: http://www.RefreshAustin.org/
You received this message because you are subscribed to the Google Groups
"Refresh Austin" group.
[ Posting ]
To post to this group, send email to [email protected]
Job-related postings should follow http://tr.im/refreshaustinjobspolicy
We do not accept job posts from recruiters.
[ Unsubscribe ]
To unsubscribe from this group, send email to
[email protected]
[ More Info ]
For more options, visit this group at
http://groups.google.com/group/Refresh-Austin