List Info

Thread: am i posting at wrong place!!




am i posting at wrong place!!
user name
2006-07-28 14:38:48
 

> -----Original Message-----
> From: sridevi polavaram [mailto:spolavargmail.com] 
> 	I would use ProxyPass (see
> 	
> http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
#proxypass) eg:
> 	
> 	ProxyPass / http://xyz.domai
n.edu:8080/neuroMor/ 
> <http://xyz.d
omain.edu:8080/neuroMor/> 
> 	ProxyPassReverse / http://xyz.domai
n.edu:8080/neuroMor/
> 	
> 	This assumes that the backend can handle
> 	http://xyz.domai
n.edu:8080/neuroMor/ 
> <http://xyz.d
omain.edu:8080/neuroMor/>  and redirect to
> 	http://
xyz.domain.edu:8080/neuroMor/index.jsp (ie, that 
> it can handle a
> 	request for "/"). 
> 
> 
> > where should i define  these, i guess not in
httpd.conf, 
> right! becuase i got an error when i tried to do that

Exactly in httpd.conf. What error did you get? where did it
occur (log
file, command line, ?)

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be
ignored. 

> 
> 
> 
> 	If http://xyz.domai
n.edu:8080/neuroMor/ is available on 
> the public
> 	internet, LDB's suggestion to use Redirect will also 
> work, although the
> 	browser location bar will change and they will need 
> access to port 8080. 
> 
> 
> > I am able to get my application loaded as 
> http://xyz.domain.edu/
neuroMor
> but with the above change even this is not working...
> and i don't want to mention even the 8080 port in the
url 
> just plain http://xyz.domain.edu
should bring up my application.
> 
> -Please guide me through this, I am doing this
configuration 
> stuff for the first time.
> Thanks
> Sri
> 
> 
> 
> 	Rgds,
> 	Owen Boyle
> 	Disclaimer: Any disclaimer attached to this message
may 
> be ignored.
> 	
> 	> 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 files 
> 	> right 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 via
> 	> tomcat as : 
> http://
xyz.domain.edu:8080/neuroMor/index.jsp 
> <htt
p://xyz.domain.edu:8080/neuroMor/index.jsp> 
> 	> <htt
p://xyz.domain.edu:8080/neuroMor/index.jsp>  
> [this is successful
> 	> apache as: http://xyz.domain.edu/
neuroMor 
> <http://xyz.domain.
edu/neuroMor> 
> 	> <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)serve
r$(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)
in
> 	process.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
> 	>
> 	>
> 	>
> 	>
> 	
> 	
> 	This message is for the named person's use only. It
may 
> contain confidential, proprietary or legally privileged

> information. No confidentiality or privilege is waived
or 
> lost by any mistransmission. If you receive this
message in 
> error, please notify the sender urgently and then
immediately 
> delete the message and any copies of it from your
system. 
> Please also immediately destroy any hardcopies of the 
> message. You must not, directly or indirectly, use,
disclose, 
> distribute, print, or copy any part of this message if
you 
> are not the intended recipient. The sender's company
reserves 
> the right to monitor all e-mail communications through
their 
> networks. Any views expressed in this message are those
of 
> the individual sender, except where the message states 
> otherwise and the sender is authorised to state them to
be 
> the views of the sender's company. 
> 	
> 	
>
------------------------------------------------------------
---------
> 	The official User-To-User support forum of the Apache 
> HTTP Server Project.
> 	See <URL:http://httpd.a
pache.org/userslist.html > for more info.
> 	To unsubscribe, e-mail: users-unsubscribehttpd.apache.org
> 	   "   from the digest: 
> users-digest-unsubscribehttpd.apache.org 
> <mailto:users-digest-unsubscribehttpd.apache.org> 
> 	For additional commands, e-mail: users-helphttpd.apache.org
> 	
> 	
> 
> 
> 

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

am i posting at wrong place!!
user name
2006-07-28 15:10:09
Exactly in httpd.conf. What error did you get? where did it occur (log
file, command line, ?)

ok I am attaching changes.html file which shows my configuration in httpd.conf, workers.properties and server.xml files. Please take a look at this. I have included only the changes that i have made not the entire files.

when i add ProxyPass to my virutal module i get the following error when i stop my apache server
[rootlocalhost spolavar]# /usr/local/apache/bin/httpd -S
[Fri Jul 28 10:18:57 2006] [warn] module jk_module is already loaded, skipping
Syntax error on line 1070 of /usr/local/apache/conf/httpd.conf:
Invalid command 'ProxyPass', perhaps mis-spelled or defined by a module not incl uded in the server configuration

So i have commented out those lines in my httpd.conf file.

In my Virtual hosts I have preciesely said my
DocumentRoot /usr/tomcat/apache-tomcat-5.5.15/webapps/mrald
and JkMount as
JkMount  /*.jsp ajp13
so that when i give "http://domain.org&quot; it opens the homepage of mrald...but this is not happening.
Sorry i didn't give my real addresses as I don't want to give information in public.
-Thanks
Sri


Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.


ServerName xyz.domain.edu ServerAlias domain.org xyz.domain.edu* DocumentRoot /usr/tomcat/apache-tomcat-5.5.15/webapps #ServerPath /mrald ErrorLog logs/xyz.domain.edu-error_log CustomLog logs/xyz.domain.edu-access_log common ServerName domain.org #ServerPath /neuroMor DocumentRoot /usr/tomcat/apache-tomcat-5.5.15/webapps/mrald ErrorLog logs/domain.org-error_log CustomLog logs/domain.org-access_log common #ProxyPass / http://domain.org/mrald/index.jsp #ProxyPassReverse / http://domain.org/mrald/index.jsp #Redirect / http://domain.org/mrald/index.jsp #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 AllowOverride None deny from all #JkAutoAlias /usr/tomcat/apache-tomcat-5.5.15/webapps # Send servlet for context /examples to worker named worker1 JkMount /neuroMor/* ajp13 # Send JSPs for conext /examples to worker named worker1 JkMount /*.jsp ajp13 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
am i posting at wrong place!!
user name
2006-07-28 18:38:16

Sorry i realise the file that i have attached has no formatting..i am attaching the  changes.txt  now.
On 7/28/06, sridevi polavaram <gmail.com"> spolavargmail.com> wrote:
Exactly in httpd.conf. What error did you get? where did it occur (log
file, command line, ?)

ok I am attaching changes.html file which shows my configuration in httpd.conf, workers.properties and server.xml files. Please take a look at this. I have included only the changes that i have made not the entire files.

when i add ProxyPass to my virutal module i get the following error when i stop my apache server
[rootlocalhost spolavar]# /usr/local/apache/bin/httpd -S
[Fri Jul 28 10:18:57 2006] [warn] module jk_module is already loaded, skipping
Syntax error on line 1070 of /usr/local/apache/conf/httpd.conf:
Invalid command 'ProxyPass', perhaps mis-spelled or defined by a module not incl uded in the server configuration

So i have commented out those lines in my httpd.conf file.

In my Virtual hosts I have preciesely said my
DocumentRoot /usr/tomcat/apache-tomcat-5.5.15/webapps/mrald
and JkMount as
JkMount  /*.jsp ajp13
so that when i give "http://domain.org&quot; it opens the homepage of mrald...but this is not happening.
Sorry i didn't give my real addresses as I don't want to give information in public.
-Thanks
Sri


Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.




[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )