LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-29-2012, 09:12 AM   #1
Majed17
Member
 
Registered: Jul 2011
Posts: 75

Rep: Reputation: Disabled
Last modification date of web page unknown


I would like to check the age of the document in the webpage, but it does not show! Here is the result of a telnet to the server:

Code:
telnet av.hostoi.com 80 
    Connected to av.hostoi.com. HEAD / HTTP/1.0
    
    HTTP/1.1 200 OK Date: Tue, 23 Oct 2012 16:55:40 GMT 
    Server: Apache 
    X-Powered-By: PHP/5.2.17 
    Connection: close 
    Content-Type: text/html
Connection closed by foreign host.

On another server the following 2 lines are also included which are not present above:

Code:
Last-Modified: Fri, 17 Jun 2011 11:17:45 GMT 
    ETag: "2ce392-b1-4a5e688eae840"
So I searched the Internet and as far as I could figure out, there should be a configuration in Apache to set headers on and etag on in htaccess. But I couldn't find any place that shows me that.

Here are the loaded modules in Apache if it would help:

core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter mod_log_config mod_env mod_expires mod_headers mod_setenvif mod_version prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_info mod_vhost_alias mod_negotiation mod_dir mod_actions mod_alias mod_rewrite mod_so mod_php5 mod_ruid2

As far as I read `mod_header` must be enabled which seems to be the case.

Any help on this?


here is what i tried :
put a .htaccess file in / folder even though there is a file named do not upload here.
contents of .htaccess:

Code:
        # Do not remove this line, otherwise mod_rewrite rules will stop working
        RewriteBase /
        Options -Indexes
        SSILastModified on

        <IfModule mod_expires.c>
        FileETag MTime Size
        ExpiresActive on

        ExpiresDefault "access plus 10 days"

        ExpiresByType application/javascript "access plus 1 week"
        ExpiresByType application/x-javascript "access plus 1 week"
        ExpiresByType application/x-shockwave-flash "access plus 1 week"

        ExpiresByType text/css "access plus 1 week"

        ExpiresByType image/jpg "access plus 1 month"
        ExpiresByType image/jpeg "access plus 1 month"
        ExpiresByType image/gif "access plus 1 month"
        ExpiresByType image/png "access plus 1 month"
        ExpiresByType image/x-icon "access plus 6 month"
        ExpiresByType image/ico "access plus 6 month"

        </IfModule>

i put this file in public_html folder and in the sub folder nod_update3 where the file update.ver exists.
then i execute the script that checks the age of the document like so:

./check_http -H av.hostoi.com -u /nod_update3/update.ver -M 2d

HTTP CRITICAL: HTTP/1.1 200 OK - Document modification date unknown - 26316 bytes in 0,159 second response time |time=0,158965s;;;0,000000 size=26316B;;;0

as you can see no modification date is shown even though on the ftp client it shows it was last modified 25.10.2012

i tried the check on another file in the same folder like so:

./check_http -H av.hostoi.com -u /nod_update3/em000_32_l0.nup -M 2d

HTTP CRITICAL: HTTP/1.1 200 OK - Last modified 13,5 days ago - 56472 bytes in 1,059 second response time |time=1,059014s;;;0,000000 size=56472B;;;0
srvmon plugins #

as you can see the date modification is known. so why the problem with ver file?
the file can be checked in this url:
http://av.hostoi.com/nod_update3//update.ver
 
Old 10-30-2012, 04:23 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Hi,
Quote:
...
as you can see the date modification is known. so why the problem with ver file?
Please note that dynamic pages (like php files) are not cached, so you don't see the "Last-Modified" header for them, because there isn't one set.
I guess this is the case also for the .ver file.

Regards
 
Old 10-30-2012, 04:27 AM   #3
Majed17
Member
 
Registered: Jul 2011
Posts: 75

Original Poster
Rep: Reputation: Disabled
well thanks for the reply but what is the solution then?
 
Old 10-30-2012, 04:41 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Originally Posted by Majed17 View Post
well thanks for the reply but what is the solution then?
What solution? Not caching dynamic content is the normal behavior.
If you want to set the "Last-Modified" header for specific files (based on their extensions), have a look here

Regards
 
Old 10-30-2012, 05:21 AM   #5
Majed17
Member
 
Registered: Jul 2011
Posts: 75

Original Poster
Rep: Reputation: Disabled
thanks for the help.
the situation is that this hostoi.com is a free hosting webserver which i can't change any configuration on, all i can do is create a .htaccess file in the directories.
i don't think it is possible to disable caching in this situation or is there?

next i read your link and so i modified my .htaccess file to the following:

Code:
# Do not remove this line, otherwise mod_rewrite rules will stop working
RewriteBase /
Options -Indexes
SSILastModified on

<IfModule mod_expires.c>
   FileETag MTime Size
   ExpiresActive on

   ExpiresDefault "access plus 10 days"

   ExpiresByType application/javascript "access plus 1 week"
   ExpiresByType application/x-javascript "access plus 1 week"
   ExpiresByType application/x-shockwave-flash "access plus 1 week"

   ExpiresByType text/css "access plus 1 week"

   ExpiresByType image/jpg "access plus 1 month"
   ExpiresByType image/jpeg "access plus 1 month"
   ExpiresByType image/gif "access plus 1 month"
   ExpiresByType image/png "access plus 1 month"
   ExpiresByType image/x-icon "access plus 6 month"
   ExpiresByType image/ico "access plus 6 month"
   

 </IfModule>

   <FilesMatch "\.(html|htm|xml|txt|xsl|ver)$">
  Header set Cache-Control "max-age=7200, must-revalidate"
   </FilesMatch>
i am not sure i added file match in the right place because i have no clue about html code.
anyway the end result is still the same and the modification date is still unknown... and i have this .htaccess file in the / folder and in the public_html folder and in the nod_update3 folder or should be in just one place?
 
Old 10-30-2012, 07:25 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
i am not sure i added file match in the right place because i have no clue about html code.
anyway the end result is still the same and the modification date is still unknown... and i have this .htaccess file in the / folder and in the public_html folder and in the nod_update3 folder or should be in just one place?
You don't get a "Last-Modified" header for dynamic pages, but you get an "Expires" header, that does the same job for search engines and browsers.
Regarding .htaccess, you can use just one in the docroot of your server.

Regards
 
Old 10-31-2012, 09:09 AM   #7
Majed17
Member
 
Registered: Jul 2011
Posts: 75

Original Poster
Rep: Reputation: Disabled
what do you mean by dynamic pages? and any more ideas that could solve this?
 
Old 10-31-2012, 01:41 PM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Originally Posted by Majed17 View Post
what do you mean by dynamic pages? and any more ideas that could solve this?
Dynamic is a page that is not... static. For example a php page that fetches some database records it's dynamic, because the output could vary.
These pages cannot be cached by the browser, as you risk to get inaccurate data.
But if you want, you can use mod_expires to inform the browser where the page expires, so it fetches a new copy of it. Same thing as the "Last-Modified" header that informs browser how old the page is, so the browser knows if it had to get a fresh copy.
The only other thing you can do is to add manually the header in such files (not advisable and not convenient).
Code:
Header set Last-Modifed "Wed, 31 Oct 2012 17:41:05 GMT"
Regards
 
Old 11-09-2012, 02:45 AM   #9
Majed17
Member
 
Registered: Jul 2011
Posts: 75

Original Poster
Rep: Reputation: Disabled
well there is no php page i don't fetch anything from a browser just the check_http script which has a hidden code. the files are updated frequently so if there where a page to fetch them it would be dynamic it seems.

the hoster says that they have mod_expires installed and you can use it through php.

anyway from what i understood i put an index.php file in public_html because the root folder has a file called do not upload here..

the php file used to look like this (some config used in startpage)
Code:
<?php
ob_start();
echo 'foo';
header('Status: 404 Not Found');
echo 'bar';
$last_modified_time = filemtime($file);
$etag = md5_file($file);

header('Last-Modified: '.gmdate('D, d M Y H:i:s', $last_modified_time).' GMT');
header('Etag: $etag');

if (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $last_modified_time ||
    trim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) {
    header('HTTP/1.1 304 Not Modified');
    exit;
}
?>
so i changed it to this:

Code:
#<?php
#ob_start();
#echo 'foo';
#header("Status: 404 Not Found");
#echo 'bar';
#$last_modified_time = filemtime($file);
#$etag = md5_file($file);

#header("Last-Modified: ".gmdate("D, d M Y H:i:s", $last_modified_time)." GMT");
#header("Etag: $etag");

#if (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $last_modified_time ||
#    trim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) {
#    header("HTTP/1.1 304 Not Modified");
#    exit;
#}
#?>

<?php
Header set Last-Modifed "Wed, 31 Oct 2012 17:41:05 GMT"
?>
then i tried to set up the header in the file itself as you say... but that could make the ver file not operate so it looked like this:
Code:
Header set Last-Modifed "Wed, 31 Oct 2012 17:41:05 GMT"
[ENGINE0]
version=7000 (20120326)
versionid=7000
build=11076
type=engine
level=0
base=268435456
date=26.03.2012
category=engine
platform=x86
group=perseus,ra,core
buildregname=EngineBuild
file=http://av.hostoi.com/nod_update3/em002_32_l0.nup
size=35039844
nuv=5.02.2
[ARCHIVES0]
version=1154 (20121001)
versionid=1154
build=1120
type=archives
level=0
base=268435456
date=01.10.2012
category=engine
platform=x86
group=perseus,core
buildregname=ArchivesBuild
file=http://av.hostoi.com/nod_update3/em003_32_l0.nup
size=751826
nuv=5.02.2
[ADVHEUR0]
version=1129 (20120802)
versionid=1129
build=1093
type=advheur
level=0
base=268435456
date=02.08.2012
category=engine
platform=x86
group=perseus,core
buildregname=AdvheurBuild
file=http://av.hostoi.com/nod_update3/em004_32_l0.nup
size=827603
nuv=5.02.2
[ADVHEUR1]
version=1130 (20120820)
versionid=1130
build=1094
type=advheur
level=1
base=1093
date=20.08.2012
category=engine
platform=x86
group=perseus,core
buildregname=AdvheurBuild
file=http://av.hostoi.com/nod_update3/em004_32_l1.nup
size=22101
nuv=5.02.2
[LOADER0]
version=1040 (20120313)
versionid=1040
build=1048
type=loader
level=0
base=268435456
date=13.03.2012
category=engine
platform=x86
group=perseus,ra,core
buildregname=LoaderBuild
file=http://av.hostoi.com/nod_update3/em000_32_l0.nup
size=56165
nuv=5.02.2
[PERSEUS0]
version=1354 (20120425)
versionid=1354
build=1473
type=perseus
level=0
base=268435456
date=25.04.2012
category=engine
platform=x86
group=perseus,ra,core
buildregname=PerseusBuild
file=http://av.hostoi.com/nod_update3/em001_32_l0.nup
size=513487
nuv=5.02.2
[CLEANER0]
version=1000 (20070116)
versionid=1000
build=1000
type=cleaner
level=0
base=268435456
date=16.01.2007
category=engine
platform=x86
group=perseus,core
buildregname=CleanerBuild
file=http://av.hostoi.com/nod_update3/em005_32_l0.nup
size=29448
nuv=5.02.2
[CLEANER1]
version=1058 (20121005)
versionid=1058
build=1066
type=cleaner
level=1
base=1000
date=05.10.2012
category=engine
platform=x86
group=perseus,core
buildregname=CleanerBuild
file=http://av.hostoi.com/nod_update3/em005_32_l1.nup
size=58036
nuv=5.02.2
[ANTISTEALTH0]
version=1000 (20080514)
versionid=1000
build=1001
type=antistealth
level=0
base=268435456
date=14.05.2008
category=engine
platform=x86
group=perseus,win
buildregname=AntistealthBuild
file=http://av.hostoi.com/nod_update3/em006_32_l0.nup
size=10624
nuv=5.02.2
[ANTISTEALTH1]
version=1029 (20120305)
versionid=1029
build=1055
type=antistealth
level=1
base=1001
date=05.03.2012
category=engine
platform=x86
group=perseus,win
buildregname=AntistealthBuild
file=http://av.hostoi.com/nod_update3/em006_32_l1.nup
size=88570
nuv=5.02.2
[ANTISTEALTH2]
version=1032 (20120806)
versionid=1032
build=1058
type=antistealth
level=2
base=1055
date=06.08.2012
category=engine
platform=x86
group=perseus,win
buildregname=AntistealthBuild
file=http://av.hostoi.com/nod_update3/em006_32_l2.nup
size=10879
nuv=5.02.2
[EPFW0]
version=1082 (20120515)
versionid=1082
build=1119
type=epfw
level=0
base=268435456
date=15.05.2012
category=engine
platform=x86
group=epfw,ra
buildregname=EpfwBuild
file=http://av.hostoi.com/nod_update3/em008_32_l0.nup
size=253961
nuv=5.02.2
[SYSTEMSTATUS0]
version=1214 (20100127)
versionid=1214
build=1232
type=systemstatus
level=0
base=268435456
date=27.01.2010
category=engine
platform=x86
group=systemstatus
buildregname=SystemstatusBuild
file=http://av.hostoi.com/nod_update3/em009_32_l0.nup
size=996997
nuv=5.02.2
[SYSTEMSTATUS1]
version=1223 (20111003)
versionid=1223
build=1251
type=systemstatus
level=1
base=1232
date=03.10.2011
category=engine
platform=x86
group=systemstatus
buildregname=SystemstatusBuild
file=http://av.hostoi.com/nod_update3/em009_32_l1.nup
size=546736
nuv=5.02.2
[SMON0]
version=1021 (20120124)
versionid=1021
build=1028
type=smon
level=0
base=268435456
date=24.01.2012
category=engine
platform=x86
group=antispam
buildregname=SmonBuild
file=http://av.hostoi.com/nod_update3/em010_32_l0.nup
size=209669
nuv=5.02.2
[RA0]
version=1020 (20110119)
versionid=1020
build=1032
type=ra
level=0
base=268435456
date=19.01.2011
category=engine
platform=x86
group=ra
buildregname=RaBuild
file=http://av.hostoi.com/nod_update3/em011_32_l0.nup
size=976487
nuv=5.02.2
[SELFDEFENSE0]
version=1000 (20081024)
versionid=1000
build=1015
type=selfdefense
level=0
base=268435456
date=24.10.2008
category=engine
platform=x86
group=perseus
buildregname=SelfdefenseBuild
file=http://av.hostoi.com/nod_update3/em013_32_l0.nup
size=26145
nuv=5.02.2
[SELFDEFENSE1]
version=1017 (20100728)
versionid=1017
build=1034
type=selfdefense
level=1
base=1015
date=28.07.2010
category=engine
platform=x86
group=perseus
buildregname=SelfdefenseBuild
file=http://av.hostoi.com/nod_update3/em013_32_l1.nup
size=38454
nuv=5.02.2
[SELFDEFENSE2]
version=1018 (20100812)
versionid=1018
build=1037
type=selfdefense
level=2
base=1034
date=12.08.2010
category=engine
platform=x86
group=perseus
buildregname=SelfdefenseBuild
file=http://av.hostoi.com/nod_update3/em013_32_l2.nup
size=11522
nuv=5.02.2
[MAILSERVER0]
version=1000 (20090505)
versionid=1000
build=1000
type=mailserver
level=0
base=268435456
date=05.05.2009
category=engine
platform=x86
group=mailserver
buildregname=MailserverBuild
file=http://av.hostoi.com/nod_update3/em014_32_l0.nup
size=21291
nuv=5.02.2
[MAILSERVER1]
version=1001 (20091022)
versionid=1001
build=1002
type=mailserver
level=1
base=1000
date=22.10.2009
category=engine
platform=x86
group=mailserver
buildregname=MailserverBuild
file=http://av.hostoi.com/nod_update3/em014_32_l1.nup
size=14906
nuv=5.02.2
[MAILSERVER2]
version=1009 (20120312)
versionid=1009
build=1010
type=mailserver
level=2
base=1002
date=12.03.2012
category=engine
platform=x86
group=mailserver
buildregname=MailserverBuild
file=http://av.hostoi.com/nod_update3/em014_32_l2.nup
size=15548
nuv=5.02.2
[AMON0]
version=1000 (20090929)
versionid=1000
build=1000
type=amon
level=0
base=268435456
date=29.09.2009
category=engine
platform=x86
group=amon,ra
buildregname=AmonBuild
file=http://av.hostoi.com/nod_update3/em015_32_l0.nup
size=3315
nuv=5.02.2
[AMON1]
version=1001 (20091118)
versionid=1001
build=1001
type=amon
level=1
base=1000
date=18.11.2009
category=engine
platform=x86
group=amon,ra
buildregname=AmonBuild
file=http://av.hostoi.com/nod_update3/em015_32_l1.nup
size=1851
nuv=5.02.2
[AMON2]
version=1006 (20110921)
versionid=1006
build=1006
type=amon
level=2
base=1001
date=21.09.2011
category=engine
platform=x86
group=amon,ra
buildregname=AmonBuild
file=http://av.hostoi.com/nod_update3/em015_32_l2.nup
size=6390
nuv=5.02.2
[LOADER640]
version=1040 (20120313)
versionid=1040
build=1048
type=loader64
level=0
base=268435456
date=13.03.2012
category=engine
platform=x64
group=perseus,ra,core
buildregname=Loader64Build
file=http://av.hostoi.com/nod_update3/em000_64_l0.nup
size=67332
nuv=5.02.2
[ANTISTEALTH640]
version=1000 (20080514)
versionid=1000
build=1001
type=antistealth64
level=0
base=268435456
date=14.05.2008
category=engine
platform=x64
group=perseus,win
buildregname=Antistealth64Build
file=http://av.hostoi.com/nod_update3/em006_64_l0.nup
size=10646
nuv=5.02.2
[ANTISTEALTH641]
version=1029 (20120305)
versionid=1029
build=1055
type=antistealth64
level=1
base=1001
date=05.03.2012
category=engine
platform=x64
group=perseus,win
buildregname=Antistealth64Build
file=http://av.hostoi.com/nod_update3/em006_64_l1.nup
size=78252
nuv=5.02.2
[EPFW640]
version=1082 (20120515)
versionid=1082
build=1096
type=epfw64
level=0
base=268435456
date=15.05.2012
category=engine
platform=x64
group=epfw,ra
buildregname=Epfw64Build
file=http://av.hostoi.com/nod_update3/em008_64_l0.nup
size=322079
nuv=5.02.2
[SYSTEMSTATUS640]
version=1214 (20100127)
versionid=1214
build=1232
type=systemstatus64
level=0
base=268435456
date=27.01.2010
category=engine
platform=x64
group=systemstatus
buildregname=Systemstatus64Build
file=http://av.hostoi.com/nod_update3/em009_64_l0.nup
size=1196871
nuv=5.02.2
[SYSTEMSTATUS641]
version=1227 (20120927)
versionid=1227
build=1256
type=systemstatus64
level=1
base=1232
date=27.09.2012
category=engine
platform=x64
group=systemstatus
buildregname=Systemstatus64Build
file=http://av.hostoi.com/nod_update3/em009_64_l1.nup
size=575198
nuv=5.02.2
[SELFDEFENSE640]
version=1000 (20081024)
versionid=1000
build=1015
type=selfdefense64
level=0
base=268435456
date=24.10.2008
category=engine
platform=x64
group=perseus
buildregname=Selfdefense64Build
file=http://av.hostoi.com/nod_update3/em013_64_l0.nup
size=28673
nuv=5.02.2
[SELFDEFENSE641]
version=1017 (20100728)
versionid=1017
build=1033
type=selfdefense64
level=1
base=1015
date=28.07.2010
category=engine
platform=x64
group=perseus
buildregname=Selfdefense64Build
file=http://av.hostoi.com/nod_update3/em013_64_l1.nup
size=36492
nuv=5.02.2
[SELFDEFENSE642]
version=1018 (20100812)
versionid=1018
build=1036
type=selfdefense64
level=2
base=1033
date=12.08.2010
category=engine
platform=x64
group=perseus
buildregname=Selfdefense64Build
file=http://av.hostoi.com/nod_update3/em013_64_l2.nup
size=13172
nuv=5.02.2
[AMON640]
version=1000 (20090929)
versionid=1000
build=1000
type=amon64
level=0
base=268435456
date=29.09.2009
category=engine
platform=x64
group=amon,ra
buildregname=Amon64Build
file=http://av.hostoi.com/nod_update3/em015_64_l0.nup
size=3427
nuv=5.02.2
[AMON641]
version=1001 (20091118)
versionid=1001
build=1001
type=amon64
level=1
base=1000
date=18.11.2009
category=engine
platform=x64
group=amon,ra
buildregname=Amon64Build
file=http://av.hostoi.com/nod_update3/em015_64_l1.nup
size=2236
nuv=5.02.2
[AMON642]
version=1006 (20110921)
versionid=1006
build=1006
type=amon64
level=2
base=1001
date=21.09.2011
category=engine
platform=x64
group=amon,ra
buildregname=Amon64Build
file=http://av.hostoi.com/nod_update3/em015_64_l2.nup
size=6858
nuv=5.02.2
[EAV_WINNT32_1033]
display_name=ESET NOD32 Antivirus (English, 32bit)
language=1033
platform=winnt32
type=eav
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/eav_nt32_enu.nup
size=6741884
nuv=4.20.6
[EAV_WINNT64_1033]
display_name=ESET NOD32 Antivirus (English, 64bit)
language=1033
platform=winnt64
type=eav
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/eav_nt64_enu.nup
size=8016252
nuv=4.20.6
[EAVBE_WINNT32_1033]
display_name=ESET NOD32 Antivirus BUSINESS EDITION (English, 32bit)
language=1033
platform=winnt32
type=eavbe
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/eavbe_nt32_enu.nup
size=6742928
nuv=4.20.6
[EAVBE_WINNT64_1033]
display_name=ESET NOD32 Antivirus BUSINESS EDITION (English, 64bit)
language=1033
platform=winnt64
type=eavbe
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/eavbe_nt64_enu.nup
size=8017297
nuv=4.20.6
[ESS_WINNT32_1033]
display_name=ESET Smart Security (English, 32bit)
language=1033
platform=winnt32
type=ess
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/ess_nt32_enu.nup
size=8909179
nuv=4.20.6
[ESS_WINNT64_1033]
display_name=ESET Smart Security (English, 64bit)
language=1033
platform=winnt64
type=ess
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/ess_nt64_enu.nup
size=10133884
nuv=4.20.6
[ESSBE_WINNT32_1033]
display_name=ESET Smart Security BUSINESS EDITION (English, 32bit)
language=1033
platform=winnt32
type=essbe
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/essbe_nt32_enu.nup
size=8911760
nuv=4.20.6
[ESSBE_WINNT64_1033]
display_name=ESET Smart Security BUSINESS EDITION (English, 64bit)
language=1033
platform=winnt64
type=essbe
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/essbe_nt64_enu.nup
size=10136464
nuv=4.20.6
[RA1]
version=1021 (20110128)
versionid=1021
build=1033
type=ra
level=1
base=1032
date=28.01.2011
category=engine
platform=x86
group=ra
buildregname=RaBuild
file=http://av.hostoi.com/nod_update3/em011_32_l1.nup
size=12393
nuv=5.02.2
[RA2]
version=1022 (20110204)
versionid=1022
build=1034
type=ra
level=2
base=1033
date=04.02.2011
category=engine
platform=x86
group=ra
buildregname=RaBuild
file=http://av.hostoi.com/nod_update3/em011_32_l2.nup
size=1588
nuv=5.02.2
[ADVHEUR2]
version=1136 (20121017)
versionid=1136
build=1101
type=advheur
level=2
base=1094
date=17.10.2012
category=engine
platform=x86
group=perseus,core
buildregname=AdvheurBuild
file=http://av.hostoi.com/nod_update3/em004_32_l2.nup
size=20265
nuv=5.02.2
[SYSTEMSTATUS2]
version=1227 (20120927)
versionid=1227
build=1256
type=systemstatus
level=2
base=1251
date=27.09.2012
category=engine
platform=x86
group=systemstatus
buildregname=SystemstatusBuild
file=http://av.hostoi.com/nod_update3/em009_32_l2.nup
size=66496
nuv=5.02.2
[ENGINE1]
version=7512 (20120924)
versionid=7512
build=12134
type=engine
level=1
base=11076
date=24.09.2012
category=engine
platform=x86
group=perseus,ra,core
buildregname=EngineBuild
file=http://av.hostoi.com/nod_update3/em002_32_l1.nup
size=5640846
nuv=5.02.2
[PERSEUS1]
version=1355 (20120430)
versionid=1355
build=1474
type=perseus
level=1
base=1473
date=30.04.2012
category=engine
platform=x86
group=perseus,ra,core
buildregname=PerseusBuild
file=http://av.hostoi.com/nod_update3/em001_32_l1.nup
size=22379
nuv=5.02.2
[PERSEUS2]
version=1369 (20121025)
versionid=1369
build=1492
type=perseus
level=2
base=1474
date=25.10.2012
category=engine
platform=x86
group=perseus,ra,core
buildregname=PerseusBuild
file=http://av.hostoi.com/nod_update3/em001_32_l2.nup
size=69181
nuv=5.02.2
[EAV_WINNT32_1049]
display_name=ESET NOD32 Antivirus (Russian, 32bit)
language=1049
platform=winnt32
type=eav
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/eav_nt32_rus.nup
size=6997372
nuv=5.00.0
[EAV_WINNT64_1049]
display_name=ESET NOD32 Antivirus (Russian, 64bit)
language=1049
platform=winnt64
type=eav
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/eav_nt64_rus.nup
size=8271740
nuv=5.00.0
[EAVBE_WINNT32_1049]
display_name=ESET NOD32 Antivirus BUSINESS EDITION (Russian, 32bit)
language=1049
platform=winnt32
type=eavbe
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/eavbe_nt32_rus.nup
size=6998417
nuv=5.00.0
[EAVBE_WINNT64_1049]
display_name=ESET NOD32 Antivirus BUSINESS EDITION (Russian, 64bit)
language=1049
platform=winnt64
type=eavbe
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/eavbe_nt64_rus.nup
size=8272785
nuv=5.00.0
[ESS_WINNT32_1049]
display_name=ESET Smart Security (Russian, 32bit)
language=1049
platform=winnt32
type=ess
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/ess_nt32_rus.nup
size=9294203
nuv=5.00.0
[ESS_WINNT64_1049]
display_name=ESET Smart Security (Russian, 64bit)
language=1049
platform=winnt64
type=ess
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/ess_nt64_rus.nup
size=10510204
nuv=5.00.0
[ESSBE_WINNT32_1049]
display_name=ESET Smart Security BUSINESS EDITION (Russian, 32bit)
language=1049
platform=winnt32
type=essbe
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/essbe_nt32_rus.nup
size=9296784
nuv=5.00.0
[ESSBE_WINNT64_1049]
display_name=ESET Smart Security BUSINESS EDITION (Russian, 64bit)
language=1049
platform=winnt64
type=essbe
category=component
version=3.0.695.0
buildMS=196608
buildLS=45547520
date=19.01.2010
file=http://av.hostoi.com/nod_update3/essbe_nt64_rus.nup
size=10512785
nuv=5.00.0
[SMON1]
version=1022 (20120601)
versionid=1022
build=1029
type=smon
level=1
base=1028
date=01.06.2012
category=engine
platform=x86
group=antispam
buildregname=SmonBuild
file=http://av.hostoi.com/nod_update3/em010_32_l1.nup
size=15949
nuv=5.02.2
[ANTISTEALTH642]
version=1032 (20120806)
versionid=1032
build=1058
type=antistealth64
level=2
base=1055
date=06.08.2012
category=engine
platform=x64
group=perseus,win
buildregname=Antistealth64Build
file=http://av.hostoi.com/nod_update3/em006_64_l2.nup
size=13652
nuv=5.02.2
[TRANSLATOR0]
version=1092 (20120927)
versionid=1092
build=1111
type=translator
level=0
base=268435456
date=27.09.2012
category=engine
platform=x86
group=translator,core,ra
buildregname=TranslatorBuild
file=http://av.hostoi.com/nod_update3/em017_32_l0.nup
size=1008671
nuv=5.02.2
[TRANSLATOR640]
version=1092 (20120927)
versionid=1092
build=1111
type=translator64
level=0
base=268435456
date=27.09.2012
category=engine
platform=x64
group=translator,core,ra
buildregname=Translator64Build
file=http://av.hostoi.com/nod_update3/em017_64_l0.nup
size=1020751
nuv=5.02.2
[HIPS0]
version=1000 (20110112)
versionid=1000
build=1000
type=hips
level=0
base=268435456
date=12.01.2011
category=engine
platform=x86
group=hips
buildregname=HipsBuild
file=http://av.hostoi.com/nod_update3/em018_32_l0.nup
size=99327
nuv=5.02.2
[HIPS1]
version=1053P (20120712)
versionid=1053
build=1072
type=hips
level=1
base=1000
date=12.07.2012
category=engine
platform=x86
group=hips
buildregname=HipsBuild
file=http://av.hostoi.com/nod_update3/em018_32_l1.nup
size=80315
nuv=5.02.2
[HIPS2]
version=1058 (20121023)
versionid=1058
build=1079
type=hips
level=2
base=1072
date=23.10.2012
category=engine
platform=x86
group=hips
buildregname=HipsBuild
file=http://av.hostoi.com/nod_update3/em018_32_l2.nup
size=24622
nuv=5.02.2
[HIPS640]
version=1057 (20121010)
versionid=1057
build=1078
type=hips64
level=0
base=268435456
date=10.10.2012
category=engine
platform=x64
group=hips
buildregname=Hips64Build
file=http://av.hostoi.com/nod_update3/em018_64_l0.nup
size=152923
nuv=5.02.2
[HIPS641]
version=1058 (20121023)
versionid=1058
build=1079
type=hips64
level=1
base=1078
date=23.10.2012
category=engine
platform=x64
group=hips
buildregname=Hips64Build
file=http://av.hostoi.com/nod_update3/em018_64_l1.nup
size=24499
nuv=5.02.2
[PROTOSCAN0]
version=1000 (20101215)
versionid=1000
build=1000
type=protoscan
level=0
base=268435456
date=15.12.2010
category=engine
platform=x86
group=protoscan
buildregname=ProtoscanBuild
file=http://av.hostoi.com/nod_update3/em019_32_l0.nup
size=37987
nuv=5.02.2
[PROTOSCAN1]
version=1026 (20111025)
versionid=1026
build=1027
type=protoscan
level=1
base=1000
date=25.10.2011
category=engine
platform=x86
group=protoscan
buildregname=ProtoscanBuild
file=http://av.hostoi.com/nod_update3/em019_32_l1.nup
size=96764
nuv=5.02.2
[PROTOSCAN2]
version=1049 (20121018)
versionid=1049
build=1051
type=protoscan
level=2
base=1027
date=18.10.2012
category=engine
platform=x86
group=protoscan
buildregname=ProtoscanBuild
file=http://av.hostoi.com/nod_update3/em019_32_l2.nup
size=46837
nuv=5.02.2
[PARENTAL0]
version=1000 (20110207)
versionid=1000
build=1000
type=parental
level=0
base=268435456
date=07.02.2011
category=engine
platform=x86
group=parental
buildregname=ParentalBuild
file=http://av.hostoi.com/nod_update3/em020_32_l0.nup
size=4560
nuv=5.02.2
[PARENTAL1]
version=1001 (20110221)
versionid=1001
build=1001
type=parental
level=1
base=1000
date=21.02.2011
category=engine
platform=x86
group=parental
buildregname=ParentalBuild
file=http://av.hostoi.com/nod_update3/em020_32_l1.nup
size=1681
nuv=5.02.2
[PARENTAL2]
version=1009 (20110705)
versionid=1009
build=1009
type=parental
level=2
base=1001
date=05.07.2011
category=engine
platform=x86
group=parental
buildregname=ParentalBuild
file=http://av.hostoi.com/nod_update3/em020_32_l2.nup
size=25968
nuv=5.02.2
[HORUS0]
version=1053 (20120808)
versionid=1053
build=1063
type=horus
level=0
base=268435456
date=08.08.2012
category=engine
platform=x86
group=horus
buildregname=HorusBuild
file=http://av.hostoi.com/nod_update3/em021_32_l0.nup
size=890712
nuv=5.02.2
[HORUS1]
version=1102 (20121016)
versionid=1102
build=1173
type=horus
level=1
base=1063
date=16.10.2012
category=engine
platform=x86
group=horus
buildregname=HorusBuild
file=http://av.hostoi.com/nod_update3/em021_32_l1.nup
size=98248
nuv=5.02.2
[DB0]
version=1004 (20110311)
versionid=1004
build=1004
type=db
level=0
base=268435456
date=11.03.2011
category=engine
platform=x86
group=db,core
buildregname=DbBuild
file=http://av.hostoi.com/nod_update3/em022_32_l0.nup
size=234712
nuv=5.02.2
[DB1]
version=1024 (20121016)
versionid=1024
build=1025
type=db
level=1
base=1004
date=16.10.2012
category=engine
platform=x86
group=db,core
buildregname=DbBuild
file=http://av.hostoi.com/nod_update3/em022_32_l1.nup
size=37318
nuv=5.02.2
[PEGASUS0]
version=1808 (20121105)
versionid=1808
build=1829
type=pegasus
level=0
base=268435456
date=05.11.2012
category=engine
platform=x86
group=perseus,core
buildregname="PegasusBuild"
file=http://av.hostoi.com/nod_update3/em023_32_l0.nup
size=4556665
nuv=5.02.2
[IRIS0]
version=1001B (20120504)
versionid=1001
build=1001
type=iris
level=0
base=268435456
date=04.05.2012
category=engine
platform=x86
group=iris
buildregname=IrisBuild
file=http://av.hostoi.com/nod_update3/em024_32_l0.nup
size=29465
nuv=5.02.2
[IRIS1]
version=1002 (20120517)
versionid=1002
build=1002
type=iris
level=1
base=1001
date=17.05.2012
category=engine
platform=x86
group=iris
buildregname=IrisBuild
file=http://av.hostoi.com/nod_update3/em024_32_l1.nup
size=4219
nuv=5.02.2
[IRIS2]
version=1006 (20121017)
versionid=1006
build=1006
type=iris
level=2
base=1002
date=17.10.2012
category=engine
platform=x86
group=iris
buildregname=IrisBuild
file=http://av.hostoi.com/nod_update3/em024_32_l2.nup
size=6838
nuv=5.02.2
[EPFW1]
version=1090 (20120824)
versionid=1090
build=1131
type=epfw
level=1
base=1119
date=24.08.2012
category=engine
platform=x86
group=epfw,ra
buildregname=EpfwBuild
file=http://av.hostoi.com/nod_update3/em008_32_l1.nup
size=14878
nuv=5.02.2
[EPFW641]
version=1090 (20120824)
versionid=1090
build=1131
type=epfw64
level=1
base=1096
date=24.08.2012
category=engine
platform=x64
group=epfw,ra
buildregname=Epfw64Build
file=http://av.hostoi.com/nod_update3/em008_64_l1.nup
size=26979
nuv=5.02.2
[ENGINE2]
version=7674 (20121108)
versionid=7674
build=12462
type=engine
level=2
base=12134
date=08.11.2012
category=engine
platform=x86
group=perseus,ra,core
buildregname=EngineBuild
file=http://av.hostoi.com/nod_update3/em002_32_l2.nup
size=1378060
nuv=5.02.2
[TRANSLATOR1]
version=1093 (20120928)
versionid=1093
build=1112
type=translator
level=1
base=1111
date=28.09.2012
category=engine
platform=x86
group=translator,core,ra
buildregname=TranslatorBuild
file=http://av.hostoi.com/nod_update3/em017_32_l1.nup
size=11040
nuv=5.02.2
[TRANSLATOR2]
version=1094 (20120928)
versionid=1094
build=1113
type=translator
level=2
base=1112
date=28.09.2012
category=engine
platform=x86
group=translator,core,ra
buildregname=TranslatorBuild
file=http://av.hostoi.com/nod_update3/em017_32_l2.nup
size=1642
nuv=5.02.2
[TRANSLATOR641]
version=1093 (20120928)
versionid=1093
build=1112
type=translator64
level=1
base=1111
date=28.09.2012
category=engine
platform=x64
group=translator,core,ra
buildregname=Translator64Build
file=http://av.hostoi.com/nod_update3/em017_64_l1.nup
size=11189
nuv=5.02.2
[TRANSLATOR642]
version=1094 (20120928)
versionid=1094
build=1113
type=translator64
level=2
base=1112
date=28.09.2012
category=engine
platform=x64
group=translator,core,ra
buildregname=Translator64Build
file=http://av.hostoi.com/nod_update3/em017_64_l2.nup
size=1747
nuv=5.02.2
[HORUS2]
version=1121 (20121106)
versionid=1121
build=1230
type=horus
level=2
base=1173
date=06.11.2012
category=engine
platform=x86
group=horus
buildregname=HorusBuild
file=http://av.hostoi.com/nod_update3/em021_32_l2.nup
size=45855
nuv=5.02.2
[ARCHIVES1]
version=1155 (20121015)
versionid=1155
build=1121
type=archives
level=1
base=1120
date=15.10.2012
category=engine
platform=x86
group=perseus,core
buildregname=ArchivesBuild
file=http://av.hostoi.com/nod_update3/em003_32_l1.nup
size=86658
nuv=5.02.2
[PEGASUS1]
version=1822 (20121108)
versionid=1822
build=1843
type=pegasus
level=1
base=1829
date=08.11.2012
category=engine
platform=x86
group=perseus,core
buildregname=PegasusBuild
file=http://av.hostoi.com/nod_update3/em023_32_l1.nup
size=128127
nuv=5.02.2
[PEGASUS2]
version=1830 (20121108)
versionid=1830
build=1851
type=pegasus
level=2
base=1843
date=08.11.2012
category=engine
platform=x86
group=perseus,core
buildregname=PegasusBuild
file=http://av.hostoi.com/nod_update3/em023_32_l2.nup
size=14653
nuv=5.02.2
anyway the output is the same:

Code:
srvmon plugins # ./check_http -H av.hostoi.com  -u /nod_update3/update.ver  -M 2d
HTTP CRITICAL: HTTP/1.1 200 OK - Document modification date unknown - 26610 bytes in 0,184 second response time |time=0,183605s;;;0,000000 size=26610B;;;0
srvmon plugins #
what am i doing wrong?
 
Old 11-09-2012, 06:52 AM   #10
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,962

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
then i tried to set up the header in the file itself as you say... but that could make the ver file not operate so it looked like this
The header is set into the apache config file for the specific file(s). For example:
Code:
<filesMatch "\.(php|shtml|ver$">
Header set Last-Modifed "Wed, 31 Oct 2012 17:41:05 GMT"
</filesMatch>
Also looks like this check_http utility does not work (is it from nagios btw?). IF I run the check_http that comes with nagios, I get:
Code:
check_http -H localhost  -u /test.php  -M 2d
HTTP CRITICAL: HTTP/1.1 200 OK - Document modification date unknown - 258 bytes in 0.003 second response time |time=0.002998s;;;0.000000 size=258B;;;0
While using telnet to port 80 to test:
Code:
telnet localhost 80
GET /test.php HTTP/1.1
Host: localhost

HTTP/1.1 200 OK
Date: Fri, 09 Nov 2012 11:39:29 GMT
Server: Apache
Last-Modifed: Wed, 31 Oct 2012 17:41:05 GMT
Content-Length: 77
Content-Type: text/html
<-snipped->
 
Old 01-03-2013, 12:36 AM   #11
Majed17
Member
 
Registered: Jul 2011
Posts: 75

Original Poster
Rep: Reputation: Disabled
well it is from nagios and i hate to disappoint you but it does work!

i just opened another account at freehosting .com and it used to work on it but for some reason it became down since a while now.
my boss finally moved the update to a new stable server and it's working ever since.
Code:
srvmon plugins # ./check_http -H baza32.info  -u /nod_update3/update.ver  -M 3d
HTTP OK: HTTP/1.1 200 OK - 26168 bytes in 0,219 second response time |time=0,218608s;;;0,000000 size=26168B;;;0
anyway thanks for your patience and merry christmas
 
  


Reply

Tags
apache, headers


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
creation and modification date problem... satti_bb Linux - Server 1 08-27-2009 01:22 AM
executing linux commands from web page and outputing it back to the web page ashes_sheldon Programming 8 05-09-2009 07:19 AM
File Modification Date Comparison MadTurki Programming 7 03-08-2004 05:02 PM
New Samba date modification problem mdkelly069 Linux - Networking 14 01-12-2004 12:42 PM
Help with Samba and date modification mdkelly069 Linux - Networking 6 11-28-2003 07:26 PM


All times are GMT -5. The time now is 10:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration