Solved

Log session in Apache2 logs

Posted on 2004-08-03
10
193 Views
Last Modified: 2010-03-04
I'm new to linux / apache so I'm after ### clear instructions ### to acomplish the following please. Points for details to a successful serve through port:80 as detailed below.

Platform : RedHat Linux 9, Tomcat 4.1.30, Apache 2

Required:

1) Is it possible to enter in the log (as in IIS) the session when a user visits our web pages. I need this function due to extreme networking and proxies that actually only record 2 visitors to our site (internal and 1st proxy).

- is this possible?
- how?


2) I'm running Tomcat on port:8080, Apache2 on port:80 and want to serve Tomcat via Apache on port 80 (again logging all this in the logs). I cant get my head round what is needed and when I've downloaded and made files things on my system never appear where the docs say (if they exist at all)

- how?

Thanks
Neil
0
Comment
Question by:NeilT
  • 4
  • 2
  • 2
10 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11713905
1) > .. log .. the session ..
  what is a session for you? just the GET or POST request?
2) and what's the question here?

0
 
LVL 3

Author Comment

by:NeilT
ID: 11713933
1) (I'm a Windows/IIS boy so apologies) - by session I want to record the unique code that is allocated to each users browsing experience while online (more along the lines of the Micorosft/IIS session)

2) I think what I need is something called mod_jk2 but my folders do not appear to exist properly. downloading them and trying to build them gives me APSX? (or something similar) errors. Do I nned to download something else?

Thanks
Neil
0
 
LVL 3

Author Comment

by:NeilT
ID: 11713943
I'm using RedHat 9, I wonder if there are lots of new files (in the correct places) if I do a fresh install of Fedora Code 2?

Neil
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 198 total points
ID: 11714103
1) still not shure what you want, but each request to apache is logged by default, see httpd.conf
    LogFromat
    CustomLog
2) the README and/or INSTALL file will tell you how to configure and install it, you need a special option for configure which sets the path to aspx etc.

NO, you don't need to re-install Linux ;-)
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 4

Expert Comment

by:TomDavidson
ID: 11714982
you will probably need to install the http_devel rpm to build mod_jk2 into apache using APXS.

1. make sure you have it
"rpm -qa | grep http"

2. are you using an rpm or source to install mod_jk2?
0
 
LVL 3

Author Comment

by:NeilT
ID: 11715766
Thanks

1) I've got a strange src copy that I've tried to build (just checked for http_devel it's not there), I know that when i tried to build it it checked for perl which was ok, then errored o the APXS stuff.

2) Im building it i think???? (very new to linux I'm afraid) would love a self install / rpm if they exist

Thanks
Neil
0
 
LVL 4

Assisted Solution

by:TomDavidson
TomDavidson earned 197 total points
ID: 11718491
httpd_devel should have come with the distribution, check the cd's or download it off redhat's site, make sure you get the same version as httpd though.

Install it with:
rpm -U httpd-devel????.i386.rpm

this should provide you with APXS
0
 
LVL 3

Author Comment

by:NeilT
ID: 12144800
Apologies,

I'm fine with that periwinkle

Neil
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now