You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jeff Cohen <su...@gej-it.com> on 2003/07/25 16:27:39 UTC

RE: [users@httpd] Antwort: RE: [users@httpd] Antwort: RE: [users@httpd] Antwort: RE: [users@httpd] Problem with tomcat displaying code

I think you are going too far away, use mod_proxy with the following config:

<VirtualHost *:443>
DocumentRoot /usr/path/to/html
ServerName www.domain.com:443
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
TransferLog logs/sslaccess.log
SSLEngine on
SSLCertificateFile conf/ssl/server.cert
SSLCertificateKeyFile conf/ssl/server.key
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
</Files>
<Directory cgi-bin>
    SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
CustomLog logs/ssl_request.log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>

That should work with no problems!

All the best,
Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!



> -----Original Message-----
> From: Dietmar.Mueller@eurotours.at [mailto:Dietmar.Mueller@eurotours.at]
> Sent: Friday, July 25, 2003 10:10 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] Antwort: RE: [users@httpd] Antwort: RE:
[users@httpd]
> Antwort: RE: [users@httpd] Problem with tomcat displaying code
> 
> 
> Sorry, I have no experience with building the module from source, but
> you can get binaries from:
> 
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/
> 
> regards Dietmar
> 
> 
> 
> 
> 
> batristain@mediageneral.com am 25.07.2003 15:50:46
> 
> Bitte antworten an users@httpd.apache.org
> 
> An:    users@httpd.apache.org
> Kopie:
> Thema: RE: [users@httpd] Antwort: RE: [users@httpd] Antwort: RE: [users@
>        httpd] Problem with tomcat displaying code
> 
> 
> I'm trying to build the mod_jk stuff and I keep getting configure not
found
> although I'm setting my path as follows
> # cc=/usr/local/bin/gcc \
> > ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-EAPI
> ksh: ./configure:  not found
> 
> Any help would be appreciated
> Thanks,
> bobbie
> 
> -----Original Message-----
> From: Dietmar.Mueller@eurotours.at [mailto:Dietmar.Mueller@eurotours.at]
> Sent: Friday, July 25, 2003 9:10 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] Antwort: RE: [users@httpd] Antwort: RE:
> [users@httpd]
> Problem with tomcat displaying code
> 
> 
> 
> Bingo, this is the problem!
> 
> You serve the file without using tomcat!
> 
> You have to setup tomcat correct and transfer the output
> via mod_proxy, mod_webapp or the best choice mod_jk.
> 
> For config look to the links from Jeff and the tomcat docu.
> 
> I suggest follow link:
> 
> http://www.galatea.com/flashguides/index
> 
> regards Dietmar
> 
> 
> 
> 
> 
> 
> 
> 
> batristain@mediageneral.com am 25.07.2003 15:04:11
> 
> Bitte antworten an users@httpd.apache.org
> 
> An:    users@httpd.apache.org
> Kopie:
> Thema: RE: [users@httpd] Antwort: RE: [users@httpd] Problem with tomcat
>        displaying code
> 
> 
> This is how it is set up
> 
> <VirtualHost 207.243.40.37:443>
>     DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapps
>     ServerName placeanad.classifiedmarketplace.net
>     ErrorLog logs/placeanadclassi.com-error_log
>     CustomLog logs/placeanadclassi.com-access_log common
>     SSLEnable
>     SSLCertificateFile /usr/local/apache/certs/nc1public.cert
>     SSLCertificateKeyFile /usr/local/apache/certs/nc2private.key
> </VirtualHost>
> 
> Is that what you are talking about with directory mapping?
> 
> Thanks,
> Bobbie
> 
> -----Original Message-----
> From: Dietmar.Mueller@eurotours.at [mailto:Dietmar.Mueller@eurotours.at]
> Sent: Friday, July 25, 2003 9:00 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] Antwort: RE: [users@httpd] Problem with tomcat
> displaying
> code
> 
> 
> 
> Do you use mod_proxy or mod_jk?
> 
> Are you shure, that you use in the VH for SSL also the directory mapping
> for
> tomcat!
> 
> regards Dietmar
> 
> 
> 
> 
> 
> batristain@mediageneral.com am 25.07.2003 14:54:45
> 
> Bitte antworten an users@httpd.apache.org
> 
> An:    users@httpd.apache.org
> Kopie:
> Thema: RE: [users@httpd] Problem with tomcat displaying code
> 
> 
> Hi Jeff,
> Yes I believe that is set up correctly.  When we were running it through
> 8080
> everything was working fine but yesterday when I got the ssl working
> through 443
> it all went downhill.  The jsp pages stopped displaying.  We change the
> code in
> the server.xml of tomcat from 8443 to 443 but it hasn't done any good.
Any
> more
> suggestions?
> 
> Thanks,
> Bobbie
> 
> -----Original Message-----
> From: Jeff Cohen [mailto:support@gej-it.com]
> Sent: Friday, July 25, 2003 8:41 AM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Problem with tomcat displaying code
> 
> 
> Make sure you did not miss any of the steps:
> http://www.johnturner.com/howto/apache-tomcat-howto.html
> 
> http://atlassw1.phy.bnl.gov/jakarta-tomcat/mod_jk-howto.html
> 
> Good luck,
> Jeff Cohen
> Support@GEJ-IT.com
> Tel. (416) 917-2324
> www.GEJ-IT.com
> GEJ-IT Networks!
> 
> 
> 
> > -----Original Message-----
> > From: batristain@mediageneral.com [mailto:batristain@mediageneral.com]
> > Sent: Friday, July 25, 2003 8:22 AM
> > To: users@httpd.apache.org
> > Subject: RE: [users@httpd] Problem with tomcat displaying code
> >
> > How do I add .jsp to the min.types - is that under the httpd.conf
> > file?
> >
> > Thanks,
> > Bobbie
> >
> > -----Original Message-----
> > From: Jeff Cohen [mailto:support@gej-it.com]
> > Sent: Thursday, July 24, 2003 7:01 PM
> > To: users@httpd.apache.org
> > Subject: RE: [users@httpd] Problem with tomcat displaying code
> >
> >
> > You should add .jsp to your min.types file or make the server to
> understand what
> > to do with it. Make sure that you did not miss any configuration when
> > you
> set
> > the JK module.
> >
> > All the best,
> > Jeff Cohen
> > Support@GEJ-IT.com
> > Tel. (416) 917-2324
> > www.GEJ-IT.com
> > GEJ-IT Networks!
> >
> >
> >
> > > -----Original Message-----
> > > From: batristain@mediageneral.com
> > > [mailto:batristain@mediageneral.com]
> > > Sent: Thursday, July 24, 2003 3:22 PM
> > > To: users@httpd.apache.org
> > > Subject: [users@httpd] Problem with tomcat displaying code
> > >
> > > Greetings,
> > > My index.jsp page running under tomcat 4.1.12 shows code
> > > https://placeanad.classifiedmarketplace.net/AdWebster/
> > >
> > > What do I need to do to the conf file to make it process the jsp?
> > >
> > > Thanks,
> > > Bobbie
> > >
> > > Bobbie Atristain
> > > Internet Systems Administrator
> > >
> > > --------------------------------------------------------------------
> > > -
> > > The official User-To-User support forum of the Apache HTTP Server
> > > Project. See <URL:http://httpd.apache.org/userslist.html> for more
> > > info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> > Project.
> See
> > <URL:http://httpd.apache.org/userslist.html> for more info. To
> unsubscribe,
> > e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> > Project. See <URL:http://httpd.apache.org/userslist.html> for more
> > info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See
> <URL:http://httpd.apache.org/userslist.html> for more info. To
unsubscribe,
> e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See
> <URL:http://httpd.apache.org/userslist.html> for more info. To
unsubscribe,
> e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See
> <URL:http://httpd.apache.org/userslist.html> for more info. To
unsubscribe,
> e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See
> <URL:http://httpd.apache.org/userslist.html> for more info. To
unsubscribe,
> e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See
> <URL:http://httpd.apache.org/userslist.html> for more info. To
unsubscribe,
> e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org