Bad routing. The php server shows the public IP address during the VPN connection

Good day.

I have Linksys WRT3200ACM with OpenWRT 19.07.
I have install OpenVPN. This is a configuration file (/etc/config/openvpn)

config openvpn 'VPN_Server_Tun'
        option enabled  '1'

        option server   '10.9.20.0 255.255.255.0'
        option dev      'tun'

        option port     '1194'
        option proto    'udp'

        option log      '/tmp/openvpn_tun.log'
        option verb     '3'

        option ca       '/root/pki/ca.crt'
        option cert     '/root/pki/issued/alfa.gatek.pl.crt'
        option key      '/root/pki/private/alfa.gatek.pl.key'
        option dh       '/root/pki/dh.pem'

        list push       'route 10.9.19.0 255.255.255.0'
        list push       'dhcp-option DNS 10.9.19.1'
        list push       'dhcp-option DNS 8.8.8.8'
        list push       'dhcp-option DNS 8.8.4.4'

config openvpn 'VPN_Server_Tap'
        option enabled  '1'

        option server_bridge    '10.9.19.1 255.255.255.0 10.9.19.150 10.9.19.199'
        option dev      'tap'

        option port     '1195'
        option proto    'udp'

        option log      '/tmp/openvpn_tap.log'
        option verb     '3'

        option ca       '/root/pki/ca.crt'
        option cert     '/root/pki/issued/alfa.gatek.pl.crt'
        option key      '/root/pki/private/alfa.gatek.pl.key'
        option dh       '/root/pki/dh.pem'

        option tls_server       '1'

        option status   '/tmp/openvpn_tap.status'

        option persist_key      '1'
        option persist_tun      '1'
        option mute             '20'

        list push       'dhcp-option DNS 10.9.19.1'
        list push       'dhcp-option DNS 8.8.8.8'
        list push       'dhcp-option DNS 8.8.4.4'
        list push       'redirect-gateway'

        option ifconfig_pool_persist    '/etc/openvpn/ip.txt 0'

The LAN interface consists of vlan and tap0
This is a piece of the configuration file (/etc/config/network)

config interface 'lan'
        option type 'bridge'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '10.9.19.1'
        option ifname 'eth0.1 tap0'

Thanks to this, VPN clients have access to the entire network and all protocols.

The VPN server is working properly, the VPN client receives the public router (VPN server) address.
Sites such as:
https://www.myip.com/
show my address correctly.

Page:
https://php.home.pl/php52/phpinfo.php
in the Environment section, in the REMOTE_ADDR field, REMOTE_HOST also shows correctly.
(Public network address, VPN server address)

A NAS server works in my network, an NGINX server with php works.
On my test page, php variables (phpinfo ()) are displayed
but this time in the Environment tab in the fields REMOTE_ADDR and REMOTE_HOST are the IP addresses of my Internet provider (this is a different address, other than the public address of my home network on which the VPN server works)

It doesn't matter if I use VPN in tun-mode or tap-mode.

It seems to me that this is a matter of incorrectly set routing. Unfortunately I can't deal with it. Please help.

Jarek