I have installed the piwik on guest8.example.com but somewhat I misconfigured during the installation that the login url is guest8.example.org therefore when I perform login it gets redirected into guest8.example.com how I can change this misconfiguration with the correct one?
I am using the docker image from https://hub.docker.com/_/piwik/ before 9 months and I has this info:
[
{
"Id": "fc42a6b0cc96e2400574923521b9612f8fa227401f9f136e304f2e69e3b9b874",
"Created": "2017-06-04T19:41:10.252721761Z",
"Path": "/entrypoint.sh",
"Args": [
"php-fpm"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 14684,
"ExitCode": 0,
"Error": "",
"StartedAt": "2017-10-22T10:22:16.383696072Z",
"FinishedAt": "2017-10-22T10:22:15.345095081Z"
},
"Image": "sha256:5710ab296dbf2a831085b5d1bf12f73b8d005124096d5843db2f3601bbcad06d",
"ResolvConfPath": "/var/lib/docker/containers/fc42a6b0cc96e2400574923521b9612f8fa227401f9f136e304f2e69e3b9b874/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/fc42a6b0cc96e2400574923521b9612f8fa227401f9f136e304f2e69e3b9b874/hostname",
"HostsPath": "/var/lib/docker/containers/fc42a6b0cc96e2400574923521b9612f8fa227401f9f136e304f2e69e3b9b874/hosts",
"LogPath": "/var/lib/docker/containers/fc42a6b0cc96e2400574923521b9612f8fa227401f9f136e304f2e69e3b9b874/fc42a6b0cc96e2400574923521b9612f8fa227401f9f136e304f2e69e3b9b874-json.log",
"Name": "/piwikwithwordpress_piwik_1",
"RestartCount": 0,
"Driver": "aufs",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/opt/piwik-with-wordpress/revaliases:/etc/ssmtp/revaliases:rw",
"/opt/piwik-with-wordpress/data/piwik/config:/var/www/html/config:rw",
"/opt/piwik-with-wordpress/ssmtp.conf:/etc/ssmtp/ssmtp.conf:rw",
"60f65afec1b8511eed254befb22f2b42718c6b30292ad8184cc126d8bfbf130a:/var/www/html:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "piwikwithwordpress_default",
"PortBindings": {},
"RestartPolicy": {
"Name": "",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": [],
"CapAdd": null,
"CapDrop": null,
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"DeviceCgroupRules": null,
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": -1,
"OomKillDisable": null,
"PidsLimit": 0,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0
},
"GraphDriver": {
"Data": null,
"Name": "aufs"
},
"Mounts": [
{
"Type": "bind",
"Source": "/opt/piwik-with-wordpress/revaliases",
"Destination": "/etc/ssmtp/revaliases",
"Mode": "rw",
"RW": true,
"Propagation": ""
},
{
"Type": "bind",
"Source": "/opt/piwik-with-wordpress/ssmtp.conf",
"Destination": "/etc/ssmtp/ssmtp.conf",
"Mode": "rw",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "60f65afec1b8511eed254befb22f2b42718c6b30292ad8184cc126d8bfbf130a",
"Source": "/var/lib/docker/volumes/60f65afec1b8511eed254befb22f2b42718c6b30292ad8184cc126d8bfbf130a/_data",
"Destination": "/var/www/html",
"Driver": "local",
"Mode": "rw",
"RW": true,
"Propagation": ""
},
{
"Type": "bind",
"Source": "/opt/piwik-with-wordpress/data/piwik/config",
"Destination": "/var/www/html/config",
"Mode": "rw",
"RW": true,
"Propagation": ""
}
],
"Config": {
"Hostname": "fc42a6b0cc96",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"9000/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"affinity:container==1f2fa7a7e9678007f7677e623d8bed5da20c1ec35b068b2f19fb771f12461b78",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PHPIZE_DEPS=autoconf \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c",
"PHP_INI_DIR=/usr/local/etc/php",
"PHP_EXTRA_CONFIGURE_ARGS=--enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data",
"PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2",
"PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2",
"PHP_LDFLAGS=-Wl,-O1 -Wl,--hash-style=both -pie",
"GPG_KEYS=0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3",
"PHP_VERSION=5.6.30",
"PHP_URL=https://secure.php.net/get/php-5.6.30.tar.xz/from/this/mirror",
"PHP_ASC_URL=https://secure.php.net/get/php-5.6.30.tar.xz.asc/from/this/mirror",
"PHP_SHA256=a363185c786432f75e3c7ff956b49c3369c3f6906a6b10459f8d1ddc22f70805",
"PHP_MD5=68753955a8964ae49064c6424f81eb3e",
"PIWIK_VERSION=3.0.1"
],
"Cmd": [
"php-fpm"
],
"ArgsEscaped": true,
"Image": "piwik",
"Volumes": {
"/etc/ssmtp/revaliases": {},
"/etc/ssmtp/ssmtp.conf": {},
"/var/www/html": {},
"/var/www/html/config": {}
},
"WorkingDir": "/var/www/html",
"Entrypoint": [
"/entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"com.docker.compose.config-hash": "e174da746f2d445a6eea5c967e641e9ac5d231d6f84b6c0b00a1f76a3c2b0c6e",
"com.docker.compose.container-number": "1",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "piwikwithwordpress",
"com.docker.compose.service": "piwik",
"com.docker.compose.version": "1.8.1"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "846fb7164b449afdbef9c994d12325e9161e47bcf06077ac28ba03987ad5e499",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"9000/tcp": null
},
"SandboxKey": "/var/run/docker/netns/846fb7164b44",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"piwikwithwordpress_default": {
"IPAMConfig": null,
"Links": [
"piwikwithwordpress_piwik-db_1:piwik-db",
"piwikwithwordpress_piwik-db_1:piwik-db_1",
"piwikwithwordpress_piwik-db_1:piwikwithwordpress_piwik-db_1"
],
"Aliases": [
"piwik",
"fc42a6b0cc96"
],
"NetworkID": "f7767ebdfbcca4b7f240e183f7e297312d253f47ab313bcef67a478fd1d5240c",
"EndpointID": "574e5fe06a48bc6720a43e914920198b1b7973580e22b7f32745cc7a9f723557",
"Gateway": "172.18.0.1",
"IPAddress": "172.18.0.5",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:12:00:05"
}
}
}
}
]
In other words I can access the both the global.ini.php
and config.ini.php
via a volume.
So far I unsuccessfully tried to put the following setting into :
[General]
login_logout_url = "https://guest8.ellak.gr"
I also have the following [General]
settings:
[General]
force_ssl = 1
proxy_client_headers[] = "HTTP_X_FORWARDED_FOR"
proxy_client_headers[] = "HTTP_CF_CONNECTING_IP"
proxy_client_headers[] = "HTTP_CLIENT_IP"
enable_trusted_host_check = 0
salt = "ed8c6f4bd17e41e1b90bfe0f7664771f"
trusted_hosts[] = "guest8.example.org"
trusted_hosts[] = "guest8.example.org.cy"
trusted_hosts[] = "172.17.0.1"
trusted_hosts[] = "0.0.0.0"
login_logout_url = "https://guest8.example.org"
I can only go to panel with enable_trusted_host_check = 0
setting and manually visiting the http://guest8.example.org after a sucessfull login.