Sponsored Content
Top Forums Web Development How to enable x-client-ip address in apache webserver LogFormat? Post 302996557 by raghur77 on Thursday 27th of April 2017 10:27:36 AM
Old 04-27-2017
How to enable x-client-ip address in apache webserver LogFormat?

how to enable x-client-ip address in apache webserver LogFormat
i tried below option, but no luck...
Code:
1. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

2. LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy

3. SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded

4. CustomLog "logs/access_log" combined env=!forwarded

5. CustomLog "logs/access_log" proxy env=forwarded

any help greatly appreciated

Last edited by Don Cragun; 04-27-2017 at 03:09 PM.. Reason: Fix CODE tags.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Logout Apache WebServer!

I've just started an Apache WebServer a few days ago. I'm using a web site interface for uses to interact with when they login. There are only 5 accounts for my server at the moment. How would i create a logout link so that when the user wants to end their session and logout I can see this in... (1 Reply)
Discussion started by: cipher
1 Replies

2. IP Networking

Client Ip Address

I have a UNIX daemon program which takes client connections via TCP/IP sockets. What I need to know is if there is any way of getting the IP address of the client socket once a connection has been made... or do I have to code my client to send it manually ? Thanks. (1 Reply)
Discussion started by: ovingtond
1 Replies

3. UNIX for Dummies Questions & Answers

enable php & java support in apache

Hello guys, I am in desperate need for this information: I have an apache server running on linux (suse 8.1) I am unable to run php or java code on it, and I wonder what is wrong. for the php case, the browser asks me how he should treat the file, namely download it to my local drive or... (5 Replies)
Discussion started by: bionicfysh
5 Replies

4. UNIX for Dummies Questions & Answers

client IP address

when working on a telnet is it possible the client machine accessing the server machine supply its IP Address to the server machine . The only other shell i can use is the TCL shell. (2 Replies)
Discussion started by: rolly
2 Replies

5. UNIX for Advanced & Expert Users

apache webserver

Can I set up an apache webserver on Mandriva? Looking for the easiest webserver program to install basic webserver just for home use. Any ideas/suggestions much appreciated..... (2 Replies)
Discussion started by: jo calamine
2 Replies

6. IP Networking

ip address of a client

A client(PC) connects to an unix server via terminal emulator. How can I obtain that client's IP address? The unix server is an old SVR4.2 (NCR) and the "who" command does not show ip addresses. I need a command or a shell script or a C/C++ program that will help me to obtain the client's... (6 Replies)
Discussion started by: ka2d2
6 Replies

7. Web Development

client authentication in sunone 7.0 webserver

hi, I am using sunone 7.0 webserver. The webserver instance is configured for https and i want to do client authentication for specific resources. I dont want to do any client authentication for the other resources. I was able to do a complete client auth for my webserver but unable to do... (0 Replies)
Discussion started by: pcs.abhishek
0 Replies

8. UNIX for Advanced & Expert Users

apache webserver url redirection

I need help in apache url redirection: I have added the below command in httpd.conf and it is working fine. Redirect http://xyz.com/site/homehttp://abc.com/site/home Can we set a rule such that http://xyz.com/site/* -> http://abc.com/site/* is applied For... (0 Replies)
Discussion started by: raghur77
0 Replies

9. Shell Programming and Scripting

Apache webserver troubleshooting

Need assistance in getting apache installation troubleshooting.. - Compiled source code of apache webserver , Installed and configured apache, - started apache web server with no errors. - web browser doesnt open any pages . say "Page cannot be displayed". Need troubleshooting . - When i... (12 Replies)
Discussion started by: ajayram_arya
12 Replies

10. Red Hat

Runtime Error Enable user directory apache

Hi I am exactly according to this link CentOS 6 - Apache httpd - Enable Userdir : Server World I Enabled userDirectory Server version: Apache/2.2.15 CentOS release 6.8 (Final) But Iget this Error Forbidden You don't have permission to access /~mn/index.html on this server Goal... (2 Replies)
Discussion started by: mnnn
2 Replies
anno(1mh)																 anno(1mh)

Name
       anno - annotate messages

Syntax
       anno [ +folder ] [ msgs ] [ -component field ] [ -help ] [ -[no]inplace ] [ -text body ]

Description
       The command annotates a message by adding one or more header fields to the message.

       The  command  allows  you to choose the name of the header field which you add.	It records the date at which the message is annotated, and
       allows you to add an additional field containing text, if you wish.

       You can use with and to keep track of how you have distributed, forwarded, or replied to messages.

       By default, annotates the current message in the current folder.  You can select another message by using the msg  and  +folder	arguments.
       You can also annotate more than one message, or a range of messages.

Options
       -component field
		 Specifies  the  name  of the header field which adds.	It should be a valid RFC 822-style message field name, which means that it
		 should consist of alphanumeric characters or dashes only.  If you do not supply this option, will prompt you for the field name.

       -help	 Prints a list of the valid options to this command.

       -inplace
       -noinplace
		 The -inplace switch causes annotation to be done in place in order to preserve links to the annotated message.

       -text body
		 Allows you to add a header field containing text to the message.  The command will create a second header field on  the  message,
		 containing  the  text that you specify.  If the text contains a space, you must enclose the text in double quotes (").  If you do
		 not supply this option, adds only one field, which contains the date of the annotation.

       The default settings for this command are:

	      +folder defaults to the current folder
	      msgs defaults to the current message
	      -noinplace

Examples
       This example annotates message number 1 in the folder The -component option specifies the name of the header field:
       % anno 1 +test -component Forwarded
       The following field is added to the message header:
       Forwarded: Tue, 08 Jan 91 16:10:06 +0000

       The next example shows how to use the -text option to add an additional field:
       % anno -component Forwarded -text "to David - as requested"
       The following lines are added to the message header:
       Forwarded: Tue, 08 Jan 91 16:13:27 +0000
       Forwarded: to David - as requested

       The final example shows how prompts for the name of the header field, if the -component option is not supplied:
       % anno
       Enter component name: forwarded
       The following line is added to the message:
       forwarded: Tue, 08 Jan 91 16:21:58 +0000

Profile Components
       Path:   To determine your Mail directory

Files
       The user profile.

See Also
       dist(1mh), forw(1mh), repl(1mh)

																	 anno(1mh)
All times are GMT -4. The time now is 06:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy