httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff White" <jlw...@earthlink.net>
Subject Re: [users@httpd] Virtual Hosting Causing Server to not start
Date Fri, 14 Jan 2005 16:46:18 GMT

From: "Nick Kirby"

> Here is my apache log.
> Probably too much,

In a command prompt window
type:

findstr.exe /?

What happens?

In a command prompt window
set to the folder of Apache's
conf (c:\whatever\Apache2\conf)
type:

findstr.exe /V ^# httpd.conf
or
findstr.exe /V ^# httpd.conf | more
or
findstr.exe /V ^# httpd.conf > aplist.txt
type aplist.txt | more

or from any folder type:
(as one long line)

findstr.exe /V ^# "c:\program files\apache
group\apache2\conf\httpd.conf"

What happens?

Findstr: Seaches for patterns of text in
files using regular expressions.

Findstr.exe
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/findstr.mspx

And for those with Log Parser

Log Parser 2.0
http://www.microsoft.com/technet/scriptcenter/tools/logparser/default.mspx

Log Parser 2.0 Tool  (Windows 2000 and up)
http://www.microsoft.com/windows2000/downloads/tools/logparser/default.asp

Log Parser 2.1 (Windows XP and up)
But some say it runs on Windows 2000
also and is in the IIS 6.0 Resource Kit.

IIS 6.0 Resource Kit Tools
http://www.microsoft.com/downloads/details.aspx?familyid=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en

With Log Parser one can
use it to write queries such as:

"SELECT this_field from that_log
where that_field LIKE '%mysearch%'"

In a command prompt window
type:
(as one long line)

LogParser.exe
"SELECT Index, Text
FROM C:\Program\u0020Files\Apache\u0020Group\Apache2\conf\httpd.conf
WHERE Text NOT LIKE '%#%' "

What happens?

The above Log Parser command
prompt line SELECT... (without the
start and end quotes) can also be
stored in a file where Log Parser
calls the file.

LogParser.exe file:GetConfLines.txt

Also Log Parser can use template files
for even more "HTML" or headers/footers
type usage.

For tons of more Windows usage
information such as starting, stopping,
tracking (concerning) services,
processes, threads, event logs,
networking, logging and many
other Windows objects see:

Script Center
http://www.microsoft.com/technet/scriptcenter/default.mspx

Jeff




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message