--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/85168613-550b-4da5-bb53-eac618b04f37n%40googlegroups.com.
upstream wildfly {
server 127.0.0.1:8080 weight=100 max_fails=5 fail_timeout=5;
}
server {
listen 80;
server_name itcmedbr.com;
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://wildfly/;
}
}
Step 6 : stop wildfly, change standalone.xml these lines and start
<?xml version="1.0"?>
<subsystem xmlns="urn:jboss:domain:undertow:14.0" default-virtual-host="default-host" default-servlet-container="default" default-server="default-server" statistics-enabled="${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}" default-security-domain="other">
<byte-buffer-pool name="default"/>
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" ssl-context="applicationSSC" enable-http2="true"/>
<host name="default-host" alias="localhost,www.itcmedbr.com,itcmedbr.com">
<location name="/" handler="welcome-content"/>
<http-invoker http-authentication-factory="application-http-authentication"/>
</host>
</server>
<servlet-container name="default">
<jsp-config/>
<websockets/>
</servlet-container>
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
</handlers>
<application-security-domains>
<application-security-domain name="other" security-domain="ApplicationDomain"/>
</application-security-domains>
</subsystem>
Step 7 : Inside war file web-inf/jboss-web.xml
<jboss-web>
<context-root>/</context-root>
<virtual-host>default-host</virtual-host>
</jboss-web>
Step 8 : Folder /opt/wildfly/....deployments/ I think u missing deploy war file but before this step we need to make sure if wildfly is show welcomepage and nginx redirect the port after that just create a file dodeploy
$ > itcmedbr.war.dodeploy
i hope i don't miss any step
--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/81859ba0-6bc3-4246-8e40-215f6befc93en%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/73b2f03f-2e28-47b3-96b9-4604908ad256n%40googlegroups.com.
Hi, trying to solve my problem I made some changes following this link "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/deploying_different_types_of_servers/index" "2.2. Configuring NGINX as a web server that provides different content for different domains". I believe that my problem is the configuration of my nginx.conf, I am using wildfly as server then my application are deployed in the path /opt/wildfly/standalone/deployments I put this path in the root of nginx.con but the problem still still the same. The question is how to configure nginx with wildfly server?
Em terça-feira, 13 de fevereiro de 2024 às 11:52:41 UTC-3, Cezar Apulchro escreveu:Hi, no more ideas to solve this problem???Em segunda-feira, 12 de fevereiro de 2024 às 18:38:12 UTC-3, Cezar Apulchro escreveu:Hi Jose, what you want from this "nmcli -p device show"?
--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/dfe5018f-772f-426e-9f21-d93a2452aabcn%40googlegroups.com.
Hi Ken sorry by delay, I created a directory for my app as you say.-----ls /var/www/itcmedbr.com/html/
index.jsp------getenforce
Enforcing---------sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version: 33-----
--Em sexta-feira, 16 de fevereiro de 2024 às 20:02:56 UTC-3, Ken Wills escreveu:Hi Cezar,On Fri, Feb 16, 2024 at 3:44 PM Cezar Apulchro <razec.a...@gmail.com> wrote:Hi, trying to solve my problem I made some changes following this link "https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/deploying_different_types_of_servers/index" "2.2. Configuring NGINX as a web server that provides different content for different domains". I believe that my problem is the configuration of my nginx.conf, I am using wildfly as server then my application are deployed in the path /opt/wildfly/standalone/deployments I put this path in the root of nginx.con but the problem still still the same. The question is how to configure nginx with wildfly server?This is not correct, and in fact may open a security hole in your configuration allowing your deployments to be downloaded by an external visitor (meaning your WARs / EARs etc), I suggest you set this to /var/www/ or something (it can be an empty directory.) Nginx should behave as a proxy only and forward requests to WildFly. As a reminder, WildFly should only be bound to the loopback address, while nginx should be bound to the external address.It is quite hard to make suggestions as to what may not be working currently, however do you have selinux enabled? This could perhaps be preventing the proxy from functioning correctly. You can check if it is enabled using the command $ getenforce. If it is enabled you can google for a nginx and selinux configuration and you'll get some info on what your options are. Since this appears to be a public host, I do not recommend disabling selinux.KenEm terça-feira, 13 de fevereiro de 2024 às 11:52:41 UTC-3, Cezar Apulchro escreveu:Hi, no more ideas to solve this problem???Em segunda-feira, 12 de fevereiro de 2024 às 18:38:12 UTC-3, Cezar Apulchro escreveu:Hi Jose, what you want from this "nmcli -p device show"?--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/dfe5018f-772f-426e-9f21-d93a2452aabcn%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/d904f296-708d-45d0-8f9f-637663017a9fn%40googlegroups.com.
On Mon, Feb 19, 2024, 14:07 Cezar Apulchro <razec.a...@gmail.com> wrote:Hi Ken sorry by delay, I created a directory for my app as you say.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/c1213fbd-ff78-4aab-8de6-02f4c24b964an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/abf72e83-7ff7-4fea-b51c-c930bd4734afn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/abf72e83-7ff7-4fea-b51c-c930bd4734afn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/2a4a2c76-48ff-4371-807e-020e7567dd09n%40googlegroups.com.
Hi, now my nginx proxy reverse is working fine after made an alteration in my nginx.conf, now I know that my problem is in my wildfly configuration.My itcmedbr.conf:--------1 server {
2 listen 80;
3 listen [::]:80;
4 server_name itcmedbr.com;
5
6 # Load configuration files for the default server block.
7
8 location / {
9 proxy_pass "http://xxx.xxx.xx.xxx:8080";
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/aab228a6-f938-4b7d-9c3c-82382442dc0fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/a620889b-cb1e-43dd-b604-5d7020f9ef41n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/ef83e7a4-8e81-40f6-a65d-31161ada4768n%40googlegroups.com.
The connection was reset." and if I typing in the browser ip:8080 the "Welcome to Wildfly" page is loaded.
Now my /var/log/nginx/error.log is showing:-------------------[error] 170362#0: *585 open() "/usr/share/nginx/html/badging/badge_print_v0.php" failed (2: No such file or directory), client: xxx.xx.xxx.xxx, server: _, request: "GET /badging/badge_print_v0.php?tpl=../../. ./../../etc/passwd HTTP/1.1", host: "xxx.xxx.xx.xxx"
175 2024/03/06 08:22:06 [error] 198825#0: *1 "/usr/share/nginx/html/search/index.html" is not found (2: No such file o r directory), client: xxx.xx.xxx.xxx, server: _, request: "POST /search/ HTTP/1.1", host: "xxx.xxx.xx.xxx"
176 2024/03/06 08:22:19 [error] 198825#0: *2 "/usr/share/nginx/html/search/index.html" is not found (2: No such file o r directory), client: xxx.xx.xxx.xxx, server: _, request: "POST /search/ HTTP/1.1", host: "xxx.xxx.xx.xxx"
---------------------
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/4bc56351-158c-44fd-9409-cac81fe9636fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/6e11f370-6656-4d78-94ce-5c8cdecd4b52n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/922f69a3-99c7-42d9-ae91-9509b710e1f9n%40googlegroups.com.
Hi, i've a question, in my nginx.conf the $host variable is tested but where is loaded or set this variable?
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/9f6c629e-9c13-460c-bb7b-7d63e0c67cbfn%40googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/231fd042-c1b7-4983-9734-3f3ad7b250a2n%40googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/c2bfd813-bb3a-4712-93fc-a5c64501539bn%40googlegroups.com.




To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/5a9f0137-5420-4972-b1c8-31dd54cfae20n%40googlegroups.com.