<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Proper IP Address and Hostname on Log]]></title><description><![CDATA[<p dir="auto">Below is a sample log from LAMP app. Notice the IP address, which should have been the remote IP of the user-agent. Also when the app is configured to have multiple hostnames (aliases), there's no way to distinguish which service received the request. Please fix this. Thanks!</p>
<pre><code>May 10 23:22:23 172.18.0.1 - - [10/May/2021:17:37:23 +0000] "GET /path-redacted" HTTP/1.1" 301 1532 "-" "User-Agent redacted"
May 10 23:22:25 172.18.0.1 - - [10/May/2021:17:37:25 +0000] "GET /path-redacted" HTTP/1.1" 301 532 "-" "Mozilla (CloudronHealth)"
May 10 23:22:26 172.18.0.1 - - [10/May/2021:17:37:26 +0000] "GET /path-redacted" HTTP/1.1" 301 65332 "-" "User-Agent redacted"
May 10 23:22:26 172.18.0.1 - - [10/May/2021:17:37:26 +0000] "GET /path-redacted" HTTP/1.1" 301 5932 "-" "User-Agent redacted"
May 10 23:22:26 172.18.0.1 - - [10/May/2021:17:37:26 +0000] "GET /path-redacted" HTTP/1.1" 301 7532 "-" "User-Agent redacted"
May 10 23:22:28 172.18.0.1 - - [10/May/2021:17:37:28 +0000] "GET /path-redacted" HTTP/1.1" 301 5032 "-" "User-Agent redacted"
May 10 23:22:28 172.18.0.1 - - [10/May/2021:17:37:28 +0000] "GET /path-redacted" HTTP/1.1" 301 1532 "-" "User-Agent redacted"
May 10 23:22:28 172.18.0.1 - - [10/May/2021:17:37:28 +0000] "GET /path-redacted" HTTP/1.1" 301 2532 "-" "User-Agent redacted"
May 10 23:22:28 172.18.0.1 - - [10/May/2021:17:37:28 +0000] "GET /path-redacted" HTTP/1.1" 301 532 "-" "Mozilla (CloudronHealth)"
May 10 23:22:30 172.18.0.1 - - [10/May/2021:17:37:30 +0000] "GET /path-redacted" HTTP/1.1" 301 1532 "-" "User-Agent redacted"
May 10 23:22:41 172.18.0.1 - - [10/May/2021:17:37:41 +0000] "GET /path-redacted" HTTP/1.1" 301 1532 "-" "User-Agent redacted"
</code></pre>
]]></description><link>https://forum.cloudron.io/topic/5042/proper-ip-address-and-hostname-on-log</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 00:34:41 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/5042.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 May 2021 17:42:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Proper IP Address and Hostname on Log on Mon, 10 May 2021 23:40:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nj" aria-label="Profile: nj">@<bdi>nj</bdi></a> I have fixed this in the new package. However, it will work only for new installation. For existing install, you have to edit <code>/app/data/apache/app.conf</code> and add the following lines (You can add it after the <code>DocumentRoot /app/data/public</code> line):</p>
<pre><code>    LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
    CustomLog "|/bin/cat" proxy
    ErrorLog "|/bin/cat"
</code></pre>
<p dir="auto">After that restart the app.</p>
]]></description><link>https://forum.cloudron.io/post/31107</link><guid isPermaLink="true">https://forum.cloudron.io/post/31107</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 10 May 2021 23:40:47 GMT</pubDate></item><item><title><![CDATA[Reply to Proper IP Address and Hostname on Log on Mon, 10 May 2021 19:46:11 GMT]]></title><description><![CDATA[<p dir="auto">With the php below, I can confirm the app can see the real IP. It's just the logs:</p>
<pre><code>&lt;?php
print_r($_SERVER);
print_r($_POST);
print_r($_GET);
print_r($_FILES);
?&gt;
</code></pre>
]]></description><link>https://forum.cloudron.io/post/31091</link><guid isPermaLink="true">https://forum.cloudron.io/post/31091</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 10 May 2021 19:46:11 GMT</pubDate></item><item><title><![CDATA[Reply to Proper IP Address and Hostname on Log on Mon, 10 May 2021 18:48:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nj" aria-label="Profile: nj">@<bdi>nj</bdi></a> Thanks for reporting, I see the same behavior. The LAMP app is supposed to have RPAF module which fixes the IP address but clearly it's not working. Investigating...</p>
]]></description><link>https://forum.cloudron.io/post/31086</link><guid isPermaLink="true">https://forum.cloudron.io/post/31086</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 10 May 2021 18:48:30 GMT</pubDate></item></channel></rss>