LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-26-2003, 02:06 AM   #1
dvong3
Member
 
Registered: Sep 2002
Posts: 168

Rep: Reputation: 30
Question Apache web page - refresh


Hi,

I hyperlink a file to a my apache server so people can view on web browser. Now my problem is that the files does not refresh itself. Since it is a file that hyperlink, is it possible to refresh the page since its is not a web page? How do I do it?

dvong
 
Old 06-26-2003, 02:25 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
If your talking about an html file you can do it through the meta tag with the refresh option. I'm not sure it this is what you are after though.
 
Old 06-26-2003, 02:58 AM   #3
dvong3
Member
 
Registered: Sep 2002
Posts: 168

Original Poster
Rep: Reputation: 30
The file is not html but just a hyperlink to Apache. I can try to use meta tag with the refresh option. CAn you provide me a sample?
 
Old 06-26-2003, 03:21 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
A hyperlink to apache? I don't understand. The hyperlink is obviously to some sort of file but what type of file is the question. Apache is not a file but rather a daemon.
 
Old 06-26-2003, 03:44 AM   #5
dvong3
Member
 
Registered: Sep 2002
Posts: 168

Original Poster
Rep: Reputation: 30
I setup a syslog server and it redirect the information to /var/www/html so I can view the file on browser. Now the page does not know how to refresh itself. I hope this explain what I'm trying to accomplish. Is it possible?
 
Old 06-26-2003, 03:59 AM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Oh so it is just a text file that you are viewing? If so, you can use the meta tags like I said before.

<META HTTP-EQUIV=Refresh CONTENT="10; URL=http://www.htmlhelp.com/">
tells the browser to load http://www.htmlhelp.com/ 10 seconds after the current document has finished loading. Not all browsers support this, so authors should provide an alternate means of moving to the new page where necessary. The Refresh header is sometimes used for "splash screens" or when a page has moved, but the technique is not very effective since users may not even be looking at the window that is to be refreshed and since it messes up the user's history on many browsers. Some search engines penalize pages that use a Refresh of a few seconds or less.

Stole that from http://www.htmlhelp.com/reference/html40/head/meta.html .
 
Old 06-26-2003, 06:32 AM   #7
dvong3
Member
 
Registered: Sep 2002
Posts: 168

Original Poster
Rep: Reputation: 30
Where do I place the meta statement? Do I create another special file?

[root@mrtg Neo]# pwd
/var/www/html/Neo
[root@mrtg Neo]# ls -al
total 12
drwxr-xr-x 2 root root 4096 Jun 26 04:50 .
drwxr-xr-x 7 root root 4096 Jun 26 01:59 ..
-rwxr-xr-x 1 root root 1264 Jun 26 04:50 IVE-0703

<META HTTP-EQUIV="Refresh" CONTENT="10; URL=http://mrtg.wongworld.com/Neo/IVE-0703/">
 
Old 06-26-2003, 01:36 PM   #8
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
The meta tag goes in the head tags. For example:

<html>
<head>
<title>.....</title>
<META HTTP-EQUIV="Refresh" CONTENT="10; URL=http://mrtg.wongworld.com/Neo/IVE-0703/">

</head>

<body>

</body></html>

I've only seen meta tags being placed in the head tags. I could be wrong however. Hope that helps..

-twantrd
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache not showing web page harisund Linux - Software 3 11-25-2005 12:31 PM
Apache web page not working fordb37 Linux - Newbie 1 02-24-2005 09:27 AM
web page with apache regnier Linux - Networking 3 02-15-2005 09:49 PM
Apache web page posting help SSBN Linux - Networking 7 04-28-2003 10:28 PM
Refresh Web Page dvong3 Linux - General 1 10-03-2002 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:07 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