On 10/04/2016 15:31, Roland Szűcs wrote:
Hi folks,

I use Apache 2.4 and I installed a Glassfish application server behind it. I use mod_jk modul as the dynamic content has to be handled by Glassfish and my static content (wordpress blog) is handled by Abapche.

My test domain is: muveltnep.hu <http://muveltnep.hu>

My conf file for virtual host looks like this:
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName muveltnep.hu <http://muveltnep.hu>
    ServerAlias www.muveltnep.hu <http://www.muveltnep.hu>
DocumentRoot /home/glassfish/glassfish/domains/domain1/applications/muveltnepbasic
    JkMount /* muvnepworker
    JkUnMount /blog/* muvnepworker
<Directory /home/glassfish/glassfish/domains/domain1/applications/muveltnepbasic/blog>
Options Indexes FollowSymLinks MultiViews
Require all granted
AddHandler php5-script php
    </Directory>
    ErrorLog /home/glassfish/glassfish/domains/domain1/logs/error.log
CustomLog /home/glassfish/glassfish/domains/domain1/logs/access.log combined
</VirtualHost>

The following erros are occured:
1. If I type muveltnep.hu <http://muveltnep.hu> I got 404 response
Not sure how your tomcat/glassfish is configured to handle the toot level requests!
2. If I type muveltnep.hu/muveltnepbasic <http://muveltnep.hu/muveltnepbasic> I got the right index.xhtml and works properly 3. If I type muveltnep.hu/blog <http://muveltnep.hu/blog> where there is an index.php of my wordpress, I Got: /blog/index.xhtml Not Found in ExternalContext as a Resource.


For this you need to add index.php to the the document index ... or configure wordpress according to the standard instructions.... with a rewrite rule if you are doing fancy URLs - although this may not play nicely with having the jkmount/unmount stuff!
i.e.

|DirectoryIndexindex.php index.xhtml|

Anybody can help me to find my mistakes in the configuration?

<https://www.linkedin.com/pub/roland-sz%C5%B1cs/28/226/24/hu> Roland Szűcs <https://www.linkedin.com/pub/roland-sz%C5%B1cs/28/226/24/hu> Connect with me on Linkedin <https://www.linkedin.com/pub/roland-sz%C5%B1cs/28/226/24/hu> <https://bookandwalk.hu/>
CEO             Phone: +36 1 210 81 13
Bookandwalk.hu <https://bokandwalk.hu/>





--
The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE.

Reply via email to