tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evert Hoff" <ev...@dontstaremedia.com>
Subject RE: Tomcat Connector: Attempting to map URI '/examples/index.html' from 0 maps
Date Sat, 01 Sep 2007 10:49:53 GMT
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@server2 auto]# cd /etc/httpd/conf.d/
[root@server2 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@server2 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@openminds.co.za

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-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@server2 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@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message