Jump to content
The Uniform Server Community

local\apache2\logs


cempriot
 Share

Recommended Posts

Hi ; Is there any way that i can see the people where they come from in to my pages?? like if someone came from google search in to my website; even the page number of the google and the keyword he used!!!! I had noip with another server program and i use to see them all in the logs files. Please help if there is any way to addjust this

many thanks

cem

Link to comment
Share on other sites

You can adjust the log format as follows:

 

File: httpd.conf

Folder: *\Uniform Server\udrive\usr\local\apache2\conf

Around line: 470

 

You will find log format settings:

 

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

LogFormat "%h %l %u %t \"%r\" %>s %b" common

LogFormat "%{Referer}i -> %U" referer

LogFormat "%{User-agent}i" agent

 

Note: Line 487 selects the short cut to use:

 

CustomLog logs/access.log combined

 

Hence you can create a new short cut and use that to suite your needs full details found here.

 

 

http://httpd.apache.org/docs/2.0/logs.html

 

All the best

Ric :)

Link to comment
Share on other sites

Hi; many thanks for the info & help. It has been more than 6 hours and i am getting no where.

al i want is to see which page of google coming from in to my server so i don't need no web counter. if you do know please-please-please just send me the txt to wich one shell i replace please in httpd.conf

many thanks

cem

Link to comment
Share on other sites

Not sure if I am answering the question!

 

Apache can log about anything you like and save to separate files for any custom output.

 

For example from my previous post:

 

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

LogFormat "%h %l %u %t \"%r\" %>s %b" common

LogFormat "%{Referer}i -> %U" referer

LogFormat "%{User-agent}i" agent

 

These are only shortcuts of what you want to log to a file Uniform Server uses access.log as shown by this line: CustomLog logs/access.log combined

It creates the file access.log in folder : *\Uniform Server\udrive\usr\local\apache2\logs

 

There is no need to define shortcuts you can mix as follow:

The first contains the basic information using a shortcut, while the second and third contain referer and browser information logged to separate files.

 

LogFormat "%h %l %u %t \"%r\" %>s %b" common

CustomLog logs/access_log common

CustomLog logs/referer_log "%{Referer}i -> %U"

CustomLog logs/agent_log "%{User-agent}i"

 

Basically just add the following line to the configuration file:

CustomLog logs/referer_log "%{Referer}i -> %U"

 

Note: %U is the path requested hence if you just want the referer use:

CustomLog logs/referer_log "%{Referer}i "

 

Will create a new file referer_log where all referers are logged.

 

Allthe best

Ric :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...