A simple test file duplicated in 2 directories, behaving differently!
A simple test file with
echo 'hi how are you';
and nothing else
is placed in two subdirectories of the MyWebs folder. The MyWebs folder has been set as localhost and Document root.
It works in one as expected but not in the other, any ideas.
I have not mapped either directory specifically anywhere and in this instance the files are not directly below localhost
they are htp://localhost/dir1/myfiles.bla
and
htp://localhost/dir2/myfiles.bla
httpd.conf is exactly as per install with the exception of the change to documentroot:
DocumentRoot: The directory out of which you will serve your
documents. By default, all requests are taken from this directory, but
symbolic links and aliases may be used to point to other locations.
DocumentRoot "C:/My Documents/My Webs"
This should be changed to whatever you set DocumentRoot to.
<Directory "C:/My Documents/My Webs">
Folder properties are exactly the same on both!
Neither are shared!
If using the ME file explore;
When looking on the file from listing in http://localhost/dir1
it shows the link in purple as though visited and opens correctly in the right hand browse window.
When looking at the link in http://localhost/dir2
it shows the link in green and opens a second internet exporer page. if I include the file name it displays and works normally opening the file in the right hand window.
If I use IE to start navigating from the localhost both directories works normally.
The reason for this test file in the first place is that php, echo and print, is not working as expected in files from the dir2 there is no output!
Anyone please!!