cempriot Posted February 4, 2008 Report Share Posted February 4, 2008 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 thismany thankscem Quote Link to comment Share on other sites More sharing options...
Ric Posted February 4, 2008 Report Share Posted February 4, 2008 You can adjust the log format as follows: File: httpd.confFolder: *\Uniform Server\udrive\usr\local\apache2\confAround line: 470 You will find log format settings: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combinedLogFormat "%h %l %u %t \"%r\" %>s %b" commonLogFormat "%{Referer}i -> %U" refererLogFormat "%{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 bestRic Quote Link to comment Share on other sites More sharing options...
cempriot Posted February 5, 2008 Author Report Share Posted February 5, 2008 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.confmany thankscem Quote Link to comment Share on other sites More sharing options...
Ric Posted February 5, 2008 Report Share Posted February 5, 2008 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\"" combinedLogFormat "%h %l %u %t \"%r\" %>s %b" commonLogFormat "%{Referer}i -> %U" refererLogFormat "%{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" commonCustomLog logs/access_log commonCustomLog 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 bestRic Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.