frankenphp icon indicating copy to clipboard operation
frankenphp copied to clipboard

[QUESTION] How to use reverse proxy if we have mutliple sites

Open ezekel opened this issue 1 year ago • 0 comments

Hi,

How can I use a reverse proxy if I have multiple sites?

In my docker-compose.yml I have 2 services having the same port and entrypoint but the host is different. as I know if we use octane we should have entrypoint like below.

     ports:
        - "80:80" # HTTP
        - "443:443" # HTTPS
        - "443:443/udp" # HTTP/3
      entrypoint: php artisan octane:frankenphp --max-requests=1 --host=api.mysite.online --port=443  --admin-port=2019 --https

Thank you in advance

ezekel avatar May 25 '24 11:05 ezekel