LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-25-2008, 06:13 AM   #1
andy1974
Member
 
Registered: Jun 2007
Posts: 85

Rep: Reputation: 15
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!
 
Old 03-25-2008, 08:01 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 03-25-2008, 11:37 AM   #3
andy1974
Member
 
Registered: Jun 2007
Posts: 85

Original Poster
Rep: Reputation: 15
Angry 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?
 
Old 03-25-2008, 10:38 PM   #4
danboland
Member
 
Registered: Feb 2006
Location: NJ, USA
Distribution: Debian
Posts: 72

Rep: Reputation: 17
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/
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /home/htdocs/yoursite/>
                Options Indexes FollowSymLinks MultiViews
                Options FollowSymLinks
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>


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
 
Old 03-26-2008, 08:00 AM   #5
andy1974
Member
 
Registered: Jun 2007
Posts: 85

Original Poster
Rep: Reputation: 15
Unhappy 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
 
Old 03-27-2008, 12:13 PM   #6
danboland
Member
 
Registered: Feb 2006
Location: NJ, USA
Distribution: Debian
Posts: 72

Rep: Reputation: 17
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache refresh crash goestin Linux - Networking 2 10-16-2006 05:50 PM
Refresh problem giraf Debian 6 08-07-2006 08:13 PM
Apache server: Displays site correctly first time, than source on refresh. skidrash Linux - Networking 10 09-29-2004 12:59 PM
refresh rate problem Rognon Linux - Software 1 06-02-2004 06:33 AM
Apache web page - refresh dvong3 Linux - General 7 06-26-2003 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration