Home > JAVA > Apache http server – Glassfish error 404

Apache http server – Glassfish error 404

Dua hari ini saya dipusingkan dengan error saat request dari apache http server mendapat respon 404 dari glassfish.

respon normal

 

 



http server berjalan normalrespon gssaat request apps ke glassfish

Saya sudah cek tidak ada masalah dengan konfigurasi pada apache dan glassfish

httpd.conf:

LoadModule jk_module /opt/apache/modules/mod_jk.so

JkWorkersFile /opt/apache/conf/workers.properties

# Where to put jk logs

JkLogFile /opt/apache/logs/mod_jk.log

# Set the jk log level [debug/error/info]

JkLogLevel debug

# Select the log format

JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

# JkOptions indicate to send SSL KEY SIZE,

JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format

JkRequestLogFormat "%w %V %T"

# Send all jsp requests to GlassFish

#JkMount /*.jsp worker1

#JkMount /*.zul worker1

#JkMount /*.dsp worker1

# Send all glassfish-test requests to GlassFish

JkMount /clusterjsp/* worker1

JkMount /XXX/* worker1

JkMount /XXX worker1

#JkMount /XXX-CORE-APP/* worker1

#JkMount /XXX-CORE-APP worker1

JKMount /clusterjsp worker1

 

JkMount /ccm/* worker2

JkMount /jts/* worker2

JkMount /admin/* worker2

JkMount /rm/* worker2

JkMount /qm/* worker2

JkMount /converter/* worker2

 

 

 

RewriteEngine on

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

 

workers.properties:


worker.list=worker1,worker2

worker.worker1.type=ajp13

worker.worker1.host=app.jupiter

worker.worker1.port=8888

 

 

worker.worker2.type=ajp13

worker.worker2.host=devApp.blabla.co.id

worker.worker2.port=9009

 

/etc/hosts:


# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1 web.jupiter web localhost.localdomain localhost

::1 localhost6.localdomain6 localhost6

192.168.0.215 web.jupiter

192.168.0.216 app.jupiter

192.168.0.211 devApp.blabla.co.id

192.168.0.1 blabla.dyndns.org

 

list glassfish HTTP Network Listeners:


asadmin> list-http-listeners

http-listener-1

http-listener-2

admin-listener

jk-connector

Command list-http-listeners executed successfully.

 

mod_jk.log bisa dilihat di sini

 

Setelah seharian pusing saya menemukan penyakitnya

 

target

Ya, applikasi saya belum didaftarkan ke server, hanya ke standalone instance.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: