Apache-weblogic bridge problems with virtual hosting
Hi,
Can we set apache-weblogic bridge where apache webserver is configured
as virtual hosts and each Virtual Host is mapped to a WebLogic server
instance running on separate port ?
Please provide doc or reference or your comments if you have solved this
problem
Thanks
Shriniwas
The above comments notwithstanding, there's one outstanding line in your post that seems crucial:
Also if I type on my browser the name of another secondary (or virtual) domain name in the form http://domain2.com it brings the website hosted under the primary domain which is domain1.com. In case I type http://www.domain2.com than it works as it should and displays the website hosted under this domain name.
As far as Apache is concerned, 'domain2.com' and 'www.domain2.com' are completely separate entities. They have to be otherwise if all domain2.com traffic went to this site you'd never be able to host different sites within the domain (e.g. blogs.domain2.com, wiki.domain2.com, blah.domain2.com, etc.). In other words, there is no automatic relationship between a hostname and sub-records of that hostname.
So what's happening here is Apache is seeing a request for 'domain2.com' which does not match any of its configured virtual hosts, so it handles the request via the default site. If you request www.domain2.com this matches your virtual host configuration so Apache serves the alternate content.
The fix is simple - trivial, even - you just need to tell Apache all the hostnames that match this site - in this case if you've configured the site's primary address as 'www.domain2.com' and you want it to also respond to requests to 'domain2.com' then add 'domain2.com' to the list of Server Aliases in Server Admin.
Similar Messages
-
Security problem with virtual host
Hello,
I am using flex builder3 and php5 to run an application built
in codeIgniter 1.6.3 and flex. Problem is that I am using a virtual
host to run codeigniter in browser. My doc root is
htdocs\projects\FlexPHP . Here my flex files resides. In browser I
can access it by giving following url :
http://localhost/projects/FlexPHP/bin-debug/FlexPHP.html
and I am accessing my php application in
http://flexphp/ (path :
htdocs\projects\FlexPHP\src\server-script)
I am calling http service from flex ...
<mx:HTTPService id="phpService"
url="
http://flexphp/profile/ProfileMngr"
resultFormat="e4x" result="showResult()" useProxy="false"
showBusyCursor="true" />
<mx:Button label="Call PHP"
click="phpService.send()"/>
and getting following error
[RPC Fault faultString="Security error accessing url"
faultCode="Channel.Security.Error" faultDetail="Destination:
DefaultHTTP"]
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.0.x\frameworks\project s\rpc\src\mx\rpc\AbstractInvoker.as:216
at
mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49 ]
at
mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest .as:103]
at
DirectHTTPMessageResponder/securityErrorHandler()[E:\dev\3.0.x\frameworks\projects\rpc\sr c\mx\messaging\channels\DirectHTTPChannel.as:368]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()
I have placed cross-domain policy file in server-script
folder as the urls are different but it didnt solve my problem.
I have tried it with another virtual host which is not a
codeigniter application , a simple php page returing a xml..working
properly.
Any help is appreciated. Thanks in advance.no problem from flex side.. need to escape crossdomain.xml
file in htacess for codeigniter i.e RewriteCond $1
!^(index\.php|images|application|uploads|robots\.txt|crossdomain\.xml)
in htaccess file. -
i create a virtual host on infrastructure and midtier
if i connect to the home page (http://www.virtualhost.it:7779) it works. if i connect to the http://www.virtualhost.it:7779/pls/portal i get the original page http://server.rsdom.com:7779/pls/portal.
how can i understand the problem?
thanks in advance
giorgioSounds like you edited the HTTP Server for the virtual host, but did not update the portal configuration within the repository. If you have access to metalink, see:
Note:218031.1
Subject: Configuring Multiple URLs With Portal 9.0.2 Using Virtual Hosts -
I am hoping some other Xserve users running OSX 10.7 (Lion) can offer some additional input or help in a couple of issues I am running into with the Apache settings on my server.
Below is an example site config file on our server. We are hosting a number of sites and are using .htaccess files and apache's rewrite module to create vanity URLs. In order for the .htaccess files to be used AllowOverride has to be set to "All" instead of "None"
The problem I am running into is everytime I stop and restart the web service on the machine it keeps changing this setting back in the individual site configuration files. I will change it to AllowOverride All and next time the server has to be restarted or the web service has to be restarted it is defaulting every site back to None which has become quite frustrating.
Is there somewhere I can set this default setting to prevent this from occuring and forcing every site and site config to default to "AllowOverride All" ?
Should I be researching this somewhere specific? OSX 10.7 changed the entire Apache Interface and the manner in which it runs and I am finding little to no documentation on it.Are you using the default Server.app, or have you downloaded and installed the (proper) Server Admin tools?
Server Admin.app isn't included as part of the Lion Server distribution, but if you download it and install it you get the same set of admin tools as you're used to with previous versions. From there you should be able to set the 'Allow All Overrides' setting for your site. -
Overriding default errror page for Apache-Weblogic bridge
I am writing this problem again as nobody has replied me with any solution.
I want to overide the default error page that comes up when weblogic is down
for some reason in apache-weblogic bridge. I looked into the weblogic
documentation and specfied the following in the apache configuration file
ErrorPage http://www.domain.com/systemerror.html
But for some reason it is not able to locate the domain as well as the page.
But if try the same url in the browser, it works. Please help.
RakeshI am using the plugin and using the error page successfully. Apache and WL
use the same document root, and the error page is located within the
document root:
Within the httpd.conf, I have:
<IfModule mod_weblogic.c>
# Config file for WebLogic which defines parameters for plugin
Include conf/weblogic.conf
</IfModule>
Within the weblogic.conf, I have:
ErrorPage unavailable.html
Provide your configuration settings.
"Rakesh Gupta" <[email protected]> wrote in message
news:39d3bcd3$[email protected]..
Well, we are using weblogic supplied apache plugin and I am following all
the steps that is specified in setting up apache plugins in weblogic
documentation. I do not think it is apache network problem as apache is
working fine.
The think the problem is somewhere in the weblogic-apache plugin module.
"Jesse E Tilly" <[email protected]> wrote in message
news:[email protected]..
[email protected] (Rakesh Gupta) wrote in <[email protected]>:
I am writing this problem again as nobody has replied me with any
solution.
I want to overide the default error page that comes up when weblogic is
down for some reason in apache-weblogic bridge. I looked into the
weblogic documentation and specfied the following in the apache
configuration file
ErrorPage http://www.domain.com/systemerror.html
But for some reason it is not able to locate the domain as well as the
page. But if try the same url in the browser, it works. Please help.
Rakesh
as worded, that sounds like a network setup problem on the apache server
side.
however, it seems that you want a server-connection-timeout error toreturn
an specific error page via the plug-in. This all depends on how theplugin
works. If it is how I think it works, there needs to be an INI
setting
to sepcify a page. Why? Because the plug-in effectively has control of
the response. It either needs a way hand control back to the web serveror
needs to have error pages of its own.
BEA?
Jesse -
Apache-Weblogic Bridge does not work?
I've gone thru' the documentation regarding setting up of apache-weblogic bridge, but still it does not work. Does anyboday have any more details regarding this...EnvironmentOS - Solars 5.7Weblogic - 5.1 SP 8Apache 1.3.12
I've given up and had to go back to running "Double NAT" which also reports as a "problem" within the AEBS, but I just "ignore" it so the light will always be green.
It still ***** though, as "Double NAT" is also a reason for "Back to my Mac" not working properly, but how the ** am I supposed to avoid Double NAT when the wireless will not work in bridged mode?! -
Overrding default Apache-Weblogic bridge error message
We are running WLS 5.1 sp5 with Apache as Webserver. I want to know how
could I display more user freindly error messages when
weblogic is down and apache is working. Currently we get the default
Weblogic-Apache down page.
I tried putting
ErrorPage http://www.mydomain.com/error.html
in apache conf file. Now I do not get the default message, but now it can
not find the above url.
I am able to this url directly in the browser. Please help ?[email protected] (srinivasa reddy) wrote in
<39bb039e$[email protected]>:
>
hi,
I have a basic question, does webloigc support apache-weblogic
bridge with mod_ssl/any ssl installed on apache.
thanks & regards
[email protected]
There is a mod_wl_ssl.so in sp4 (i believe). mod_ssl extends Apaches API
and thereby breaks the WebLogic bridge. For raven installations you need
mod_wl_ssl_rave.so because raven extends the API even further.
Joel
E-Mail: (jbf (at) proceedo dot com) -
RMI Through Apache-Weblogic Bridge
Hi,
How to use RMI in apache-weblogic bridge
Thanks,
Siva E.[email protected] (srinivasa reddy) wrote in
<39bb039e$[email protected]>:
>
hi,
I have a basic question, does webloigc support apache-weblogic
bridge with mod_ssl/any ssl installed on apache.
thanks & regards
[email protected]
There is a mod_wl_ssl.so in sp4 (i believe). mod_ssl extends Apaches API
and thereby breaks the WebLogic bridge. For raven installations you need
mod_wl_ssl_rave.so because raven extends the API even further.
Joel
E-Mail: (jbf (at) proceedo dot com) -
Configuring webclient with Virtual Host
i configure portal with a virtual host.
Portal it is ok. i can navigate and login with the virtual host server. But the collaboration portlets (Message portlet, calendar portlet) link to the original server.
what can i do to work also with virtual host?
my original server is the internal host name.
the virtual host is the public server name.
thanks in advance
Regards
giorgiono problem from flex side.. need to escape crossdomain.xml
file in htacess for codeigniter i.e RewriteCond $1
!^(index\.php|images|application|uploads|robots\.txt|crossdomain\.xml)
in htaccess file. -
Glibc-2.9.2-i686 breaks apache and causes problems with samba?
I could not start the apache daemon. The output from /usr/sbin/apachectl start is
httpd: ../sysdeps/posix/getaddrinfo.c:1465: rfc3484_sort: Assertion `src->results[i].native == -1 || src->results[i].native == a2_native' failed.
/usr/sbin/apachectl: line 78: 2933 Aborted $HTTPD -k $ARGV
The getaddrinfo.c, I believe, is in the glibc package.
Also, I get error logs in my /var/log/samba directory named like "__ffff" followed by the IP address of a remote client. In one of them it says that samba is dumping core and contains
[2008/12/24 18:47:10, 0] lib/util.c:log_stack_trace(1767)
BACKTRACE: 23 stack frames:
#0 /usr/sbin/smbd(log_stack_trace+0x2d) [0xb7cda584]
#1 /usr/sbin/smbd(smb_panic+0x80) [0xb7cda6e1]
#2 /usr/sbin/smbd [0xb7cc5033]
#3 [0xb7a31400]
#4 /lib/libc.so.6(abort+0x188) [0xb733b0c8]
#5 /lib/libc.so.6(__assert_fail+0xee) [0xb73326ee]
#6 /lib/libc.so.6 [0xb73c7a01]
#7 /lib/libc.so.6 [0xb733b888]
#8 /lib/libc.so.6(qsort_r+0x291) [0xb733bdd1]
#9 /lib/libc.so.6(getaddrinfo+0x7cf) [0xb73c91ff]
#10 /usr/sbin/smbd [0xb7cdca56]
#11 /usr/sbin/smbd(get_mydnsfullname+0x181) [0xb7cdcc5d]
#12 /usr/sbin/smbd(get_mydnsdomname+0x17) [0xb7cdada1]
#13 /usr/sbin/smbd [0xb7b7af8c]
#14 /usr/sbin/smbd(ntlmssp_update+0x297) [0xb7b792d6]
#15 /usr/sbin/smbd(auth_ntlmssp_update+0x48) [0xb7d27cc1]
#16 /usr/sbin/smbd [0xb7b04ecf]
#17 /usr/sbin/smbd(reply_sesssetup_and_X+0x1c4) [0xb7b057cd]
#18 /usr/sbin/smbd [0xb7b39f16]
#19 /usr/sbin/smbd(smbd_process+0x429) [0xb7b3ba61]
#20 /usr/sbin/smbd(main+0xfa2) [0xb7f2bbc7]
#21 /lib/libc.so.6(__libc_start_main+0xe5) [0xb73256c5]
#22 /usr/sbin/smbd [0xb7abfa81]
I downgraded glibc to 2.8-3 and I can now start apache. No problems with samba yet either although I had to make pacman skip dependency checks because a number of packages depended on glibc >= 2.9.getaddrinfo.c - this is place where glibc 2.9 has a major change in IP resolving. see the bugreport we had and still have. search google and upstream (Fedora/RedHat) for reports.
maybe a simple recompile of the affected packages can help. holding an outdated version is a bad solution. new packages compiled against the new version may use new functions and break with the old one. -
Aborting uploads through Apache/Weblogic bridge
Hi,
I have an application to which people should be able to upload files,
however only of a certain size. So if I detect that the file is too
large (based on Content-Length), I return an errorpage and don't read
the data from the browser. This is allowed according to rfc 1867 (which,
though it is obsoleted, is the one the HTTP1.1 rfc refers to on the
matter - also the obsoleting rfc doesn't say anything on the matter) and
all browsers seems to handle this.
However, once I go through the Apache/Weblogic bridge the behaviour
changes. When the browser sends the POST request to the bridge, the
bridge relays it on to the Weblogic server and my code. I immediately
determine that the file is too large, and returns the previously
mentioned errorpage. But, the bridge doesn't stop recieving the file
from the browser until it has got the entire file and then it returns a
standard bridge POST timeout error (and the timeout has definately not
been reached).
Any ideas?
CAPUT A/S Morten Jensen Phone +45 70 12 24 42
Nygade 6 Senior Developer Fax +45 70 11 24 42
DK-1164 Kbh K [email protected] http://www.caput.comAdd the following attributes:
<Location /re >
WLProxySSL ON
EnforceBasicConstraints false
</Location>
Original example in [http://m-button.blogspot.com/2008/11/how-to-configure-weblogic-to-use-ssl.html]
I hope this helps. -
I used to have a podcast that had been accepted on Itunes, but my I began to have problems with my host, so I changed host and created a new podcast, and I submitted my new podcast, Apple refused, and now says the feed has already been submitted? Maybe Itunes thought that I was someone trying to copy my old podcast because I kept the same name, I tried to change the names but it looks like I'm on a blocked list...
There is a procedure for changing the feed URL for a podcast, which it seems you haven't followed: you have to add a special tag to the old feed - just submitting a new feed will have exactly the effect you describe. The proper method is described here:
http://www.wilmut.webspace.virginmedia.com/notes/podcast.html#move -
Wf component container not starting with Virtual host
Hi,
We have setup fresh instance of R 12.1.1 on Solaris with Virtual host. Did installation with rapidwiz -servername virtual.
Now when we end setting up wfmailer setup it refused to start saying component services are not up. While looking at it, it is still looking for Physical host rather Virtual. Can anyone suggest how to resolve this.
ThanksPost in 11i thread closing it
-
SSL with virtual hosting in Weblogic Server 5.1(WLS5.1)
Hello,
I am tasked with implementing a virtual hosting situation that must
use SSL. It goes like this: https://www.aaa.com, https://www.bbb.com
and https://www.ccc.com all having separate IPs. These URLs must
forward the request to the same WebLogic Server instance. The problem
is each URL must have its own certificate while WLS 5.1 only uses one
certificate per instance.
I was thinking about using a proxy server such that all three Web
servers that would host the URLs would be sent to a proxy server which
would redirect to the WLS 5.1 instance.
My questions are, would this be feasible using WLS 5.1 as the Web
Server and again WLS as the App Server? How secure is this
arrangement? Is it preferable to use another vendor's software as the
WebServer(IPlanet, Apache)Hi Andy,
I think a good approach for you would be to use a proxy server --
browser -> proxy that supports virtual hosting -> WebLogic
Use a proxy which supports virtual hosting, and which can have a separate
certificate bound to each virtual host.
That way you can do SSL between the browser and the proxy, and you can
have the proxy do cleartext to WebLogic.
This situation gets around WebLogic's limitation of allowing only one
certificate per instance of the server.
You could also use 5.1 as the proxy in the following manner:
Run 3 instances of Weblogic, each as a proxy server, each bound to a
different IP address and DNS name, having its own certificate --
one instance for aaa.com, another for bbb.com, and a third for ccc.com
Then have each of these three instances of WebLogic proxy to your "app
server" instance of WebLogic on the backend.
Hope this makes sense.
Joe Jerry
Andy Walker wrote:
Hello,
I am tasked with implementing a virtual hosting situation that must
use SSL. It goes like this: https://www.aaa.com, https://www.bbb.com
and https://www.ccc.com all having separate IPs. These URLs must
forward the request to the same WebLogic Server instance. The problem
is each URL must have its own certificate while WLS 5.1 only uses one
certificate per instance.
I was thinking about using a proxy server such that all three Web
servers that would host the URLs would be sent to a proxy server which
would redirect to the WLS 5.1 instance.
My questions are, would this be feasible using WLS 5.1 as the Web
Server and again WLS as the App Server? How secure is this
arrangement? Is it preferable to use another vendor's software as the
WebServer(IPlanet, Apache) -
Apache - Weblogic bridge - tricky question...
We have WLS 5.1 sp4 on Redhat 6.1 and Apache 1.3.12 on the same box.
I also have Mass virtual hosting setup under Apache. Before, the Apache-WLS
bridge was available, I used RewriteRule to proxy the requests:
Apache:
<VirtualHost 10.10.10.1:80>
ServerName test.com
ServerAlias *.test123.com www.test.com
VirtualDocumentRoot /www/vhosts/%1.1/%1.2/%1
DirectoryIndex index.html index.jsp
<Files *.jsp*>
RewriteEngine On
RewriteRule ^/(.*)$ http://www.test.com:7001/$1 [P]
</Files>
</VirtualHost>
WLS:
weblogic.properties: weblogic.httpd.documentRoot=public_html/
I also had a link in the public_html directory called www->/www
So, when a person connect to http://test1.test.com/shoppingcart.jsp, they
are forwarded to WLS with the path
/public_html/www/vhosts/test1/shoppingcart.jsp.
However, if I want to use the Apache-WLS bridge:
<VirtualHost 10.10.10.1:80>
ServerName test.com
ServerAlias *.test.com www.test.com
VirtualDocumentRoot /www/vhosts/%1
DirectoryIndex index.html index.jsp
<Files *.jsp*>
WeblogicHost localhost
WebLogicPort 7001
</Files>
</VirtualHost>
If a person connects to http://test1.test.com/shoppingcart.jsp, the path
forwarded to WLS is /shoppingcart.jsp and it looks for the file in the
public_html directory and it fails.
I cannot use the "PathPrepend" directive as the path varies with the URL.
Any ideas????
Thanks...
HemanthYou need mod_rewrite which is enabled for Apache on redhat by default.
hemanth
"Klaus Oberecker" <[email protected]> wrote in message
news:[email protected]..
hi!
.. I have juste a short question concerning the Apache-Rewriting: do you
need a special module for that?!? - if so: which one???
thanks,
klaus
Hemanth wrote:
We have WLS 5.1 sp4 on Redhat 6.1 and Apache 1.3.12 on the same box.
I also have Mass virtual hosting setup under Apache. Before, the
Apache-WLS
bridge was available, I used RewriteRule to proxy the requests:
Apache:
<VirtualHost 10.10.10.1:80>
ServerName test.com
ServerAlias *.test123.com www.test.com
VirtualDocumentRoot /www/vhosts/%1.1/%1.2/%1
DirectoryIndex index.html index.jsp
<Files *.jsp*>
RewriteEngine On
RewriteRule ^/(.*)$ http://www.test.com:7001/$1 [P]
</Files>
</VirtualHost>
WLS:
weblogic.properties: weblogic.httpd.documentRoot=public_html/
I also had a link in the public_html directory called www->/www
So, when a person connect to http://test1.test.com/shoppingcart.jsp,
they
are forwarded to WLS with the path
/public_html/www/vhosts/test1/shoppingcart.jsp.
However, if I want to use the Apache-WLS bridge:
<VirtualHost 10.10.10.1:80>
ServerName test.com
ServerAlias *.test.com www.test.com
VirtualDocumentRoot /www/vhosts/%1
DirectoryIndex index.html index.jsp
<Files *.jsp*>
WeblogicHost localhost
WebLogicPort 7001
</Files>
</VirtualHost>
If a person connects to http://test1.test.com/shoppingcart.jsp, the path
forwarded to WLS is /shoppingcart.jsp and it looks for the file in the
public_html directory and it fails.
I cannot use the "PathPrepend" directive as the path varies with theURL.
>>
Any ideas????
Thanks...
Hemanth
Maybe you are looking for
-
Can we edit regionMap.xml
Hi, w.r.t my previous post we need to add couple of new fields to existing page but create item is not enabled at the stackLayout. We are planning to make a copy of the page and create a custom version with same akRegionCode in the region map such th
-
Having Problem with stuttering video. Please help!
I haven't had a problem with viewing video online with my laptop until a few days ago. Now, all it will do is start to play, then freeze, play for a few seconds, then freeze, etc. etc. If I am on Hulu and pause the video to allow it to buffer, it wil
-
[SOLVED] Cannot mount kindle
I have looked up at different posts on this topic but am still at a loss. I cannot mount a kindle dmesg [29881.943452] usb 2-1.5: new high-speed USB device number 75 using ehci-pci [29882.049006] usb-storage 2-1.5:1.0: USB Mass Storage device detecte
-
Help with AS3 for CP5.5
Hi, It seems that nobody can help me with my question http://forums.adobe.com/message/4900688#4900688 regarding some AS3 coding for Captivate course, therefore I would like to ask if anyone can help me in this forum section. How can I achive this: I
-
Hi, In p.o rel. strategy we have the three stage release status. First A( say) will rel. then B then C. we have released lot of p.o in the same manner. Now we want to change the rel.status to two step. That means A will release then B will rel.the