Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Virtual Host with Apache 2 and Tomcat 4.1

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello every body, i've a problem with my server and i need help. I've installed Suse 8.2 with Tomcat 4.1.18 and Apache 2. The two servers works find when a send request from the intranet with localhost and IP's. Now i want to redirect my domain to the server to host my web in it. The problem can with the virtual hosting. I have set the virtual host in apache config file: httpd.conf:
NameVirtualHost *
<VirtualHost *>
ServerAdmin mail@domain.com
DocumentRoot /opt/jakarta/tomcat/webapps/examples
ServerName www.domain.com
<Directory /opt/jakarta/tomcat/webapps/examples/WEB-INF>
Order allow,deny
Deny from all
</Directory>
JkMount /*.jsp ajp13
JkMount /jsp/*.jsp ajp13
JkMount /servlet/* ajp13
</VirtualHost>
It work find, when i go to my domain it redirect to my server and show the examples application, but when i send a request of a jsp or servlet it doesn't wirk. In the tomcat i've defined the host in thge server.xml file:
<Host name="j2ee.einge.com" debug="0"<br /> appBase="/opt/jakarta/tomcat/webapps/examples"<br /> unpackWARs="true" autoDeploy="true">
</Host>
I don't know where is the problem or if i have jump anything.
Could anybody help me??? Thanks. And have a nice weekend.
We are everybody Madrid.
 
Yeah, but is it art? What do you think tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic