Apache Refresh problem
Hello all
I have a problem with a site on my server....i have a few sites there working well, hoever i have one site that no matter what page your on, if you hit refresh or F5 it takes you to the home page, insted of refreshing. the other sites i have on the serever work fine when refreshing. just this one. Any help would be great! |
This wouldn't necessarily be an apache problem, more like a site code + browser behavior issue most likely. Apache doesn't know what your homepage is, doesn't care and can't tell you're browser how to back to it to my knowledge.
|
Subfolder
OK heres what i found.....the site thats having this problem is in a subfolder from the root folder. i moved the site to the root folder and all is good. however i really need the site in the subfolder. Any ideas?
|
root folder of what? root user, root file system, or apaches root directory?
When you create a site in apache it needs it own 'virtual' root. that is the primary directory of your site. It can be anyware as long as apache can read from it. In your site configuration you need something like this to set up the sites root: Code:
DocumentRoot /home/htdocs/yoursite/ If you have stuff like this post the sites configuration. There has to be something wrong with it that i telling the server look in the wring place. Dan |
Root Directory
Ok heres how it is.
the root apache directory is /var/www/html i have a site in /var/www/html/ed and a site in /var/www/html/ed/OGR the site in /var/www/html/ed works fine when refreshing the site in /var/www/html/ed/OGR always go to the index.htm when refreshing no matter where you are in the site, and that happens when useing F5 or the refresh icon |
based on what you are saying there should be no problem with that. I would say make sure the permissions are correct, but that wouldn't cause that kind of error. There has to be small error or type on your config file. Post the one that words and the one that gives you problems and i will see if i can notice anything
Also check the access and error logs for messages. You should be able to see the request for your refresh of the page. You will be able to see what page is actually being refreshed. Also look at the actual index.html header, maybe you have a funky metadata field. If the access and error logs don't give you enough info then just put apache in debugging mode for a few minutes while you access that page and you should see exactly what it is doing and why it is doing it. Dan |
All times are GMT -5. The time now is 12:00 PM. |