Re: What is wrong with my virtual host setting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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

My conf file for virtual host looks like this:
<VirtualHost *:80> 
    ServerAdmin webmaster@localhost
    ServerName muveltnep.hu
    ServerAlias 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 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 I got the right index.xhtml and works properly
3. If I type 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.
DirectoryIndex index.php index.xhtml
Anybody can help me to find my mistakes in the configuration?

Roland Szűcs  Connect with me on Linkedin
CEO Phone: +36 1 210 81 13
Bookandwalk.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.

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux