• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

apache tomcat 4

 
guptabandhu roy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys i am new to java ranch and just had a few questions :-
i am using tomcat for hosting my own web pages
1>i wanted to know how to deploy cgi programs using c (or any other language) in tomcat
2>the default base for tomcat is the ROOT directory ...how do i change it to a folder of by own ?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Tomcat can't run CGI code in languages other than Java (in which they're called servlets). You'll need to use Apache httpd for this.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Slight correction.
There is a CGI servlet that ships with Tomcat but it probably isn't your best bet for running CGI apps. If I needed to run both server side Java and CGI apps from the same domain, I'd look at other options, such as connecting Tomcat to the Apache Web Server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic