Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
-none-

-none-

2007-09-01       - By Evert Hoff

 Back
Hi Rainer,

> Looks like you've got more than one virtual host in the httpd
> configuration. JkMounts are not inherited between virtual hosts.
> Although there is the directive JkMountCopy to inherit
> JkMount between vhosts, I would expect that not to help in
> your situation (localshot:80 vs. 127.0.0.1:80). So either
>
> - define the same JkMounts in the other vhost
>

I don't know how to do this. I've tried putting the IP address of the server
in the conf/auto/mod_jk.conf, but this hasn't made a difference.

The server's domain is www2.noteworthynewsletters.com and this virtual host
is setup in Plesk. But, whether I try to browse to
http://www2.noteworthynewsletters.com/examples or without the virtual host
to http://147.202.46.205/examples, I get the same problem.

Below is the file that Plesk generated with the virtual domain:

====================================
[root@(protected) auto]# cd /etc/httpd/conf.d/
[root@(protected) conf.d]# ls
fcgid.conf    perl.conf  python.conf  ssl.conf        welcome.conf
zz011_sitebuilder.conf
mailman.conf  php.conf   README       webalizer.conf  zz010_psa_httpd.conf
[root@(protected) conf.d]# cat zz010_psa_httpd.conf
NameVirtualHost 72.36.192.154:80
NameVirtualHost 72.36.192.154:443
ServerName server2.noteworthynewsletters.com
ServerAdmin evert@(protected)

DocumentRoot /var/www/vhosts/default/htdocs

<IfModule mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\""
plesklog
</IfModule>
<IfModule !mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
plesklog
</IfModule>
<Directory "/var/www/vhosts">
       AllowOverride All
       Options SymLinksIfOwnerMatch
       Order allow,deny
       Allow from all
       <IfModule sapi_apache2.c>
       php_admin_flag engine off
       </IfModule>
       <IfModule mod_php5.c>
       php_admin_flag engine off
       </IfModule>
</Directory>

<Directory "/usr/lib/mailman">
       AllowOverride All
       Options SymLinksIfOwnerMatch
       Order allow,deny
       Allow from all
       <IfModule sapi_apache2.c>
       php_admin_flag engine off
       </IfModule>
       <IfModule mod_php5.c>
       php_admin_flag engine off
       </IfModule>
</Directory>

<IfModule mod_userdir.c>
       UserDir disabled
</IfModule>
Include /var/www/vhosts/noteworthynewsletters.com/conf/httpd.include

<VirtualHost \
                       72.36.192.154:80 \
                       >
       ServerName default
       UseCanonicalName Off
       DocumentRoot /var/www/vhosts/default/htdocs
       ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/"
       <IfModule mod_ssl.c>
               SSLEngine off
       </IfModule>
       <Directory "/var/www/vhosts/default/cgi-bin/">
               AllowOverride None
               Options None
               Order allow,deny
               Allow from all
       </Directory>
       <Directory /var/www/vhosts/default/htdocs>
       <IfModule sapi_apache2.c>
               php_admin_flag engine on
               php_admin_flag safe_mode on
               php_admin_value open_basedir
"/var/www/vhosts/default/htdocs:/tmp"
       </IfModule>
       <IfModule mod_php5.c>
               php_admin_flag engine on
               php_admin_flag safe_mode on
               php_admin_value open_basedir
"/var/www/vhosts/default/htdocs:/tmp"
       </IfModule>
       </Directory>
       CustomLog /var/log/httpd/access_log combined
</VirtualHost>


<IfModule mod_ssl.c>

<VirtualHost 72.36.192.154:443 >
       ServerName default-72 (See http://ult-72.ora-code.com)-36-192-154
       UseCanonicalName Off
       DocumentRoot /var/www/vhosts/default/httpsdocs
       ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/"
       SSLEngine on
       SSLVerifyClient none
       SSLCertificateFile /usr/local/psa/var/certificates/certQtX4632
       <Directory "/var/www/vhosts/default/cgi-bin/">
               AllowOverride None
               Options None
               Order allow,deny
               Allow from all
       </Directory>
       <Directory /var/www/vhosts/default/httpsdocs>
               SSLRequireSSL
       </Directory>
       CustomLog /var/log/httpd/access_log combined
</VirtualHost>

</IfModule>

<VirtualHost \
                       72.36.192.154:80 \
                       >
       DocumentRoot /usr/share/psa-horde/
       Alias /horde/ /usr/share/psa-horde/
       Alias /imp/ /usr/share/psa-horde/imp/
       ServerName webmail
       ServerAlias webmail.*
       UseCanonicalName Off
       <Directory /usr/share/psa-horde>
               <IfModule sapi_apache2.c>
                       php_admin_flag engine on
                       php_admin_flag magic_quotes_gpc off
                       php_admin_flag safe_mode off
                       php_admin_value open_basedir
"/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-hor
de:/usr/share/doc"
                       php_admin_value include_path
"/usr/share/psa-horde:/usr/share/psa-horde/pear:."
               </IfModule>
               <IfModule mod_php5.c>
                       php_admin_flag engine on
                       php_admin_flag magic_quotes_gpc off
                       php_admin_flag safe_mode off
                       php_admin_value open_basedir
"/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-hor
de:/usr/share/doc"
                       php_admin_value include_path
"/usr/share/psa-horde:/usr/share/psa-horde/pear:."
               </IfModule>
               Order allow,deny
               Allow from all
       </Directory>
       CustomLog /var/log/httpd/access_log combined
</VirtualHost>


<IfModule mod_ssl.c>

<VirtualHost \
                       72.36.192.154:443 \
                       >
       DocumentRoot /usr/share/psa-horde/
       Alias /horde/ /usr/share/psa-horde/
       Alias /imp/ /usr/share/psa-horde/imp/
       ServerName webmail
       ServerAlias webmail.*
       UseCanonicalName Off
       SSLEngine on
       SSLVerifyClient none
       SSLCertificateFile /etc/httpd/conf/httpd.pem
       <Directory /usr/share/psa-horde>
               <IfModule sapi_apache2.c>
                       php_admin_flag engine on
                       php_admin_flag magic_quotes_gpc off
                       php_admin_flag safe_mode off
                       php_admin_value open_basedir
"/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-hor
de:/usr/share/doc"
                       php_admin_value include_path
"/usr/share/psa-horde:/usr/share/psa-horde/pear:."
               </IfModule>
               <IfModule mod_php5.c>
                       php_admin_flag engine on
                       php_admin_flag magic_quotes_gpc off
                       php_admin_flag safe_mode off
                       php_admin_value open_basedir
"/usr/share/psa-horde:/etc/psa-horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-hor
de:/usr/share/doc"
                       php_admin_value include_path
"/usr/share/psa-horde:/usr/share/psa-horde/pear:."
               </IfModule>
               SSLRequireSSL
               Order allow,deny
               Allow from all
       </Directory>
       CustomLog /var/log/httpd/access_log combined
</VirtualHost>


</IfModule>

<VirtualHost \
                       72.36.192.154:80 \
                       >
       DocumentRoot /var/www/vhosts/default/htdocs
       ServerName lists
       ServerAlias lists.*
       UseCanonicalName Off
       ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
       Alias /icons/ /var/www/icons/
       Alias /pipermail/ /var/lib/mailman/archives/public/
       <Directory /var/lib/mailman/archives/>
               Options FollowSymLinks
               Order allow,deny
               Allow from all
       </Directory>
       CustomLog /var/log/httpd/access_log combined
</VirtualHost>


<IfModule mod_ssl.c>

<VirtualHost \
                       72.36.192.154:443 \
                       >
       DocumentRoot /var/www/vhosts/default/httpsdocs
       ServerName lists
       ServerAlias lists.*
       UseCanonicalName Off
       ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
       Alias /icons/ /var/www/icons/
       Alias /pipermail/ /var/lib/mailman/archives/public/
       <Directory /var/lib/mailman/archives/>
               Options FollowSymLinks
               Order allow,deny
               Allow from all
       </Directory>
       CustomLog /var/log/httpd/access_log combined
</VirtualHost>


</IfModule>

[root@(protected) conf.d]#
==================================================

> > The documentation says that there is supposed to be an example
> > workers.properties file in Tomcat's conf directory, but
> there isn't. I
> > found one somewhere on the Internet and modified it. It is below.
>
> Could you give us the URL of this page, so we can fix it?

It is on this page...
http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
... under the section "Installation", that it says that there should be an
example workers.properties in the "conf" directory.

Thanks,
Evert


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.