• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Setting Docker wildfly container for domain

SeScDe

New Pleskian
Hey guys,

I hope somebody could help me, please. I use Plesk Onyx with Docker on Ubuntu 16. I installed wildfly image via Plesk Docker and started wildfly container and disabled automatic port mapping. Source Port is set and fixed to 8080 (from Plesk?) and having target port set to 32123

Now I go to Website & Domains, select my domain "example.com", clicking on Proxy rules, click add.
URL: example.com
Container: wildfly
Port (only thing I can choose): 8080->32123

But if I open http://example.com Port: 8080 I get the tomcat "it works" page. If I open http://example.com I get the Plesk default page. If I open http://example.com:32123 I get WILDFLY landing page.

What I like to have:
If I open http://example.com I should point to Wildfly showing up wildfly landing page!

How to solve my problem? For me it seems, that plesk does not follow the implemented rule because I can't see any changes after setting the rule.
 
Hi,
I guess docker register with this, free register moslty effect also if you can use terminal command via this / docker run -it jboss/wildfly / i installed myself on localhost i didnt get any error with centos 7 up to you but some unit packages i mean linux make me sick too.. i hope did you get backup
 
@SeScDe, deploy container, set up static port mapping (e.g. to 32123). Then go to domain > Apache & nginx Settings and (assuming you're using nginx) do the following:
  1. Deselect "Proxy mode" and make sure no checkboxes in nginx settings block are selected. Click Apply.
  2. Then paste into "Additional nginx directives" configuration to proxy to Docker and click OK:
    Code:
    location / {
            proxy_pass http://127.0.0.1:32123;
            proxy_set_header Host             $host;
            proxy_set_header X-Real-IP        $remote_addr;
            proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;
    }
Viola!
 
Back
Top