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 |
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.
|
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?
|
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.
|
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?
|
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 . |
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/"> |
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 |
All times are GMT -5. The time now is 06:46 AM. |