sridevi polavaram wrote:
I am surpirsed that nobody has responded to my query since yesterday. I am so desperate for help!! I have done my best to solve the problem but it wasn't successful. I am sure if you spend a few minutes you will know that mine is a simple problem. Please help me!! I don't know if this query ever got posted..but i didn't get any reply so far.Dear Forum,I am posting a query for the first time. That too only because i didn't find any other resource for help!! I have successfully setup Virtualhost definition on my fedora 4 machine by modifyin the httpd.conf , workers.properties and server.xml filesright now i have apache 2.0 talking to tomcat 5.5 via mod_jk successfully.I am able to invoke my applications hosted on tomcat 5.5 via apache without any problems but i have one application space in tomcat called neuroMor in the webapps folder. " I want to show the home page of this application as the default apache web server home page" (i.e) when url: http://xyz.domain.edu <http://xyz.domain.edu/> is given my neuroMor homepage should comeup!!I can otherwise invoke my application viatomcat as : http://xyz.domain.edu:8080/neuroMor/index.jsp [this is successfulapache as: http://xyz.domain.edu/neuroMor [this too is successful]But if i give http://xyz.domain.edu/ <http://xyz.domain.edu/> it is taking to the error page saying index.jsp doesn't exist..I have changed the httpd.conf file accordingly. Please take a look at it*<VirtualHost xxx.xx.xx.xx:8080>* *ServerName xyz.domain.edu <http://xyz.domain.edu/>**ServerAlias xyz.domain.edu* www.domain.org <http://www.domain.org/> domain.org <http://domain.org/>**DocumentRoot /usr/tomcat/apache-tomcat-5.5.15/webapps* *ServerPath /neuroMor* *ErrorLog logs/xyz.domain.edu-error_log* *CustomLog logs/xyz.domain.edu-access_log common* *</VirtualHost>* *<VirtualHost xxx.xx.xx.xx:8080>* *ServerName www.domain.org <http://www.domain.org/> * *ServerPath /neuroMor* *DocumentRoot /usr/tomcat/apache-tomcat-5.5.15/webapps* *ErrorLog logs/www.domain.org-error_log* *CustomLog logs/www.domain.org-access_log common * *</VirtualHost>* *#To be added at the end of your httpd.conf tomcat auto-configure* *Include /usr/tomcat/apache-tomcat-5.5.15/conf/auto/mod_jk.conf* *# Load mod_jk module* *LoadModule jk_module libexec/mod_jk.so* *# Where to find workers.properties* *JkWorkersFile /usr/local/apache/workers.properties* *# Where to put jk logs* *JkLogFile /var/log/httpd/mod_jk.log* *# Set the jk log level [debug/error/info]* *JkLogLevel info* *# Select the log format* *JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "* *# JkOptions indicate to send SSL KEY SIZE,* *JkOptions +ForwardKeySize +ForwardURICompat ForwardDirectories* *# JkRequestLogFormat set the request format* *JkRequestLogFormat "%w %V %T"* *# Static files in the neuroMor webapp are served by apache* *Alias /neuroMor /usr/tomcat/apache-tomcat-5.5.15/webapps/neuroMor* *# The following line prohibits users from directly access WEB-INF* *<Location "/neuroMor/WEB-INF/">* *AllowOverride None* *deny from all* *</Location>* *#JkAutoAlias /usr/tomcat/apache-tomcat-5.5.15/webapps* *# Send servlet for context /examples to worker named worker1* *JkMount /index.jsp ajp13* *# Send JSPs for conext /examples to worker named worker1* *JkMount /* ajp13 * My workers.properties file is as follows: *workers.tomcat_home=$CATALINA_HOME* *workers.java_home=$JAVA_HOME * *ps=/* *worker.list=ajp13* *worker.ajp13.port=8009* *worker.ajp13.host=localhost* *worker.ajp13.type=ajp13* *worker.ajp13.lbfactor=1* *worker.loadbalancer.type=lb * *worker.loadbalancer.balanced_workers=ajp13* *worker.inprocess.type=jni* *worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server$(ps)lib* *worker.inprocess.cmd_line=start* *worker.inprocess.jvm_lib=$ (workers.java_home)$(ps)jre$(ps)lib$(ps)* *i386$(ps)server$(ps)libjvm.so* *worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout**worker.inprocess.stderr=$(workers.tomcat_home )$(ps)logs$(ps)inprocess.stderr* I will be awaiting for your help!! as i am going though a time crunch. Thanks a lot Sri
You might try ... Redirect / http://xyz.domain.edu/neuroMor/index.jsp within the VirtualHost directives near the end. LDB --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx