Nextcloud with wallabag on the same server

Hello,

i’m running nextcloud on one domain (example1.com on port 443) and wallabag on a second domain (example2.com theorically on port 88XX), both running on a LAMP server on a raspberry pi with ssl. Both are working correctly but concerning wallabag i can access it only by port 443 although port 88XX is open on my router. My configuration is the same as explained here https://raspiblog.noblogs.org/post/2018/01/31/self-hosting-your-wallabag-to-your-raspberry-pi.
The problem is that wallabag displays not correctly like “line by line”, though the content is correct. It looks as if the traffic for wallabag goes through the address used for nextcloud.
thanks for your help,

[/details]

Nextcloud version 13.0.5.2
Operating system and version raspbian stretch june 2018
Apache or nginx version Apache 2.4.25)
PHP version 7.1

The issue you are facing:

Normally you can run both apps in different virtual hosts and even use the default port 443 (nowadays, most clients should support SNI but you could also use a multi-domain certificate from letsencrypt). it would be the first example (here it is for port 80, but it will be the same for ssl sites):
https://httpd.apache.org/docs/2.4/vhosts/examples.html

In each virtual host, you can configure php or other scripts independently.

thanks @tflidd for your help. My configuration is as mentioned in your reference and it works but i only have this kind of unpleasant display, see picture attached. I’d like to have a normal display but i don’t know how to handle this…wallabagwrongdisplay
thanks,