# How can I access to payara 5 administration on port 4848 on a fresh installation where the FQDN is used by Payara and a mail server?

**URL:** <https://forum.payara.fish/t/how-can-i-access-to-payara-5-administration-on-port-4848-on-a-fresh-installation-where-the-fqdn-is-used-by-payara-and-a-mail-server/418>\
**Category:** Technical Discussion\
**Created:** [August 15, 2022, 8:13am UTC](https://forum.payara.fish/t/how-can-i-access-to-payara-5-administration-on-port-4848-on-a-fresh-installation-where-the-fqdn-is-used-by-payara-and-a-mail-server/418 "2022-08-15T08:13:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptsag](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@ptsag](https://forum.payara.fish/u/ptsag)\
**Post date:** [August 15, 2022, 8:13am UTC](https://forum.payara.fish/t/how-can-i-access-to-payara-5-administration-on-port-4848-on-a-fresh-installation-where-the-fqdn-is-used-by-payara-and-a-mail-server/418/1 "2022-08-15T08:13:20Z")

</div>

How can I access to payara administration on port 4848 on a fresh installation where the FQDN is used by Payara and a mail server?

I am trying to set a full new platform with Payara, I can’t manage to access to the administration console on port 4848.

Environment:  
• OS: Debian GNU/Linux 11 (bullseye)  
• Java: openjdk version “11.0.16” 2022-07-19  
• Payara: Payara Server 5.2022.2 #badassfish (build 306)  
• Ngnix: nginx/1.18.0

On a fresh Debian installation I first set ufw to be able to open necessary port. Then I started to install IredMail (1.6.0 MARIADB edition.). Once mail serveur was working I installed openjdk 11, then Payara. In Payara I created a domain with adminport set to 4848 and instance port set to 8888. change-admin-password and enable-secure-admin has been run for this domain.  
Taking in count that my FQDN is [my.domain.com](http://my.domain.com), I managed to have the Payara welcome page on https: // [my.domain.com](http://my.domain.com), IredMail administration on https: // [my.domain.com/ireadmin](http://my.domain.com/ireadmin) and IredWebMail on https: // [my.domain.com/mail](http://my.domain.com/mail).  
While trying to access the administation console https: // [my.domain.com:4848](http://my.domain.com:4848) goes on error:  
This site can’t be reached - ERR\_CONNECTION\_TIMED\_OUT  
After long search for a solution on the net, I created a dedicated url /gfadmin, see configuration below, where the page seems to be reached but I got a white page displayed. The console log shows:

gfadmin:18 GET … /theme/com/sun/webui/jsf/suntheme/css/safari.css net::ERR\_ABORTED 404  
gfadmin:28 GET … /theme/META-INF/prototype/prototype.js net::ERR\_ABORTED 404  
gfadmin:27 GET … /theme/META-INF/json/json.js net::ERR\_ABORTED 404  
gfadmin:29 GET … /theme/META-INF/com\_sun\_faces\_ajax.js net::ERR\_ABORTED 404  
gfadmin:26 GET … /theme/META-INF/dojo/dojo.js net::ERR\_ABORTED 404  
gfadmin:17 GET … /theme/com/sun/webui/jsf/suntheme/css/css\_master.css net::ERR\_ABORTED 404  
gfadmin:31 Uncaught ReferenceError: dojo is not defined  
at gfadmin:31:1  
(anonymous) @ gfadmin:31  
gfadmin:34 GET … /resource/css/css\_ns6up.css net::ERR\_ABORTED 404  
gfadmin:46 GET … /resource/community-theme/images/login-product\_name\_open.png 404  
gfadmin:89 GET … /resource/js/cj.js net::ERR\_ABORTED 404

as well as the nginx log shows:  
0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"  
94.43.88.148 - - [12/Aug/2022:10:05:26 +0000] “GET / HTTP/2.0” 304 0 “-” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36”  
94.43.88.148 - - [12/Aug/2022:10:05:29 +0000] “GET /gfadmin HTTP/2.0” 200 1705 “-” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36”  
94.43.88.148 - - [12/Aug/2022:10:05:59 +0000] “GET /theme/com/sun/webui/jsf/suntheme/css/safari.css HTTP/2.0” 404 548 “… [my.server.com/](http://my.server.com/)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36”  
94.43.88.148 - - [12/Aug/2022:10:05:59 +0000] “GET /theme/META-INF/prototype/prototype.js HTTP/2.0” 404 548 “… [my.server.com/](http://my.server.com/)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36”  
94.43.88.148 - - [12/Aug/2022:10:05:59 +0000] “GET /theme/META-INF/json/json.js HTTP/2.0” 404 548 “… [my.server.com/](http://my.server.com/)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36”  
94.43.88.148 - - [12/Aug/2022:10:05:59 +0000] “GET /theme/META-INF/com\_sun\_faces\_ajax.js HTTP/2.0” 404 548 “… [my.server.com/](http://my.server.com/)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36”  
94.43.88.148 - - [12/Aug/2022:10:05:59 +0000] “GET /theme/META-INF/dojo/dojo.js HTTP/2.0” 404 548 “… [my.server.com/](http://my.server.com/)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36”  
94.43.88.148 - - [12/Aug/2022:10:05:59 +0000] “GET /theme/com/sun/webui/jsf/suntheme/css/css\_master.css HTTP/2.0” 404 548 “… [my.server.com/](http://my.server.com/)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36”  
94.43.88.148 - - [12/Aug/2022:10:05:59 +0000] “GET /resource/css/css\_ns6up.css HTTP/2.0” 404 548 “… [my.server.com/](http://my.server.com/)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36”  
94.43.88.148 - - [12/Aug/2022:10:06:30 +0000] “GET /resource/community-theme/images/login-product\_name\_open.png HTTP/2.0” 404 548 “… [my.server.com/](http://my.server.com/)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36”  
94.43.88.148 - - [12/Aug/2022:10:06:30 +0000] “GET /resource/js/cj.js HTTP/2.0” 404 548 “… [my.server.com/](http://my.server.com/)” “Mozilla/5.0 (X11; Linux x86\_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36”

Thinking that the issue could come from the added url /gfadmin, I set, in location {…} root to /opt/payara5/ with not result.

From /etc/ngnix/sites-vailable I remove 00-default-ssl.conf and created a new file my.server.com.conf with he following content:  
upstream glassfish {  
server 127.0.0.1:8888;  
}  
upstream gfadmin {  
server 127.0.0.1:4848;  
}  
server {  
listen 443 ssl http2;  
listen [::]:443 ssl http2;  
server\_name [my.server.com](http://my.server.com);  
gzip on;  
gzip\_types text/css text/javascript text/plain application/xml;  
gzip\_min\_length 1000;  
location ^~ /.well-known/acme-challenge/ {  
allow all;  
root /var/www/my.server.com/;  
default\_type “text/plain”;  
try\_files $uri =404;  
}  
location / {  
proxy\_pass http: // localhost:8888;  
proxy\_connect\_timeout 300;  
proxy\_send\_timeout 300;  
proxy\_read\_timeout 300;  
send\_timeout 300;  
}  
location ~\* .(png|ico|gif|jpg|jpeg|css|js)$ {  
#proxy\_pass https: // localhost:8888/$request\_uri;  
proxy\_pass https: // localhost:8888;  
}  
location /gfadmin {  
root /opt/payara5/;  
charset utf-8;  
proxy\_set\_header Host $host;  
proxy\_set\_header X-Real-IP $remote\_addr;  
proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;  
proxy\_set\_header X-Forwarded-Proto $scheme;  
proxy\_max\_temp\_file\_size 0;  
client\_max\_body\_size 10m;  
client\_body\_buffer\_size 128k;  
proxy\_send\_timeout 90;  
proxy\_read\_timeout 90;  
proxy\_buffering off;  
proxy\_buffer\_size 4k;  
proxy\_buffers 4 32k;  
proxy\_busy\_buffers\_size 64k;  
proxy\_temp\_file\_write\_size 64k;  
proxy\_pass [https://127.0.0.1:4848](https://127.0.0.1:4848);  
proxy\_connect\_timeout 300;  
send\_timeout 300;  
}  
location /mail {  
root /var/www/html;  
index index.php index.html;  
}  
location /iredadmin {  
root /var/www/html;  
index index.php index.html;  
}  
error\_page 500 502 503 504 /50x.html;  
location = /50x.html {  
#root /usr/share/nginx/html;  
root /usr/share/nginx/base;  
}  
#listen 80;  
#listen 4848;  
ssl\_certificate /etc/letsencrypt/live/my.server.com/fullchain.pem; # managed by Certbot  
ssl\_certificate\_key /etc/letsencrypt/live/my.server.com/privkey.pem; # managed by Certbot  
include /etc/nginx/templates/misc.tmpl;  
include /etc/nginx/templates/ssl.tmpl;  
include /etc/nginx/templates/iredadmin.tmpl;  
include /etc/nginx/templates/roundcube.tmpl;  
include /etc/nginx/templates/sogo.tmpl;  
include /etc/nginx/templates/netdata.tmpl;  
include /etc/nginx/templates/php-catchall.tmpl;  
include /etc/nginx/templates/stub\_status.tmpl;  
}

I would appreciate any help that will allow me to fix this issue.  
Thank you
