Virtual hosts and rewrite rule
I've got Oracle portal with several virtual hosts setup.
<VirtualHost *:7778>
ServerName hosta
Port 80
ServerAdmin [email protected]
RewriteEngine On
RewriteOptions inherit
OssoIpCheck off
ErrorLog "|d:\oracle\mid10g\Apache\Apache\bin\rotatelogs logs/hosta_error_log 43200"
CustomLog "|d:\oracle\mid10g\Apache\Apache\bin\rotatelogs logs/hosta_access_log 43200" common
RewriteRule ^/$ /portal/page/portal/bmi/hosta/$1 [PT,L]
</VirtualHost>
<VirtualHost *:7778>
ServerName hostb
Port 80
ServerAdmin [email protected]
RewriteEngine On
RewriteOptions inherit
OssoIpCheck off
ErrorLog "|d:\oracle\mid10g\Apache\Apache\bin\rotatelogs logs/www.jafabu.co.uk_error_log 43200"
CustomLog "|d:\oracle\mid10g\Apache\Apache\bin\rotatelogs logs/www.jafabu.co.uk_access_log 43200" common
RewriteRule ^/?$ /portal/page/portal/pdg/hostb/$1 [PT,L]
</VirtualHost>
This doesn't match any of the pages I have in the two pagegrooups - "HostA" and "HostB".
If I try RewriteRule ^/(..*)$ /portal/page/portal/pdg/hostb/$1 [PT,L], then Portal reports back about there being a problem and promptly dies.
How do I allow http://hosta/ being a different hpome page to http://hostb/ and allow any pages to be referenced without Portal crashing ??? I dont want to add a new rewrite page for avery page my developers add in....
Thanks
Kev
You cannot use your virtual hostnames as a page or procedure name. Instead, please try this:
<VirtualHost *:8001>
ServerName hosta.yourdomain.com
# Redirect if on desired VirtualHost:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^hosta\.yourdomain\.com \[NC,OR\]
RewriteCond %{HTTP_HOST} ^yourdomain\.com \[NC\]
RewriteRule ^/(.*) http://hosta.yourdomain.com/portal/page/portal/ \[R\]
</VirtualHost>
<VirtualHost *:8001>
ServerName hostb.yourdomain.com
# Redirect if on desired VirtualHost:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^hosta\.yourdomain\.com \[NC,OR\]
RewriteCond %{HTTP_HOST} ^yourdomain\.com \[NC\]
RewriteRule ^/(.*) http://hostb.yourdomain.com/portal/page/portal/ \[R\]
</VirtualHost>
hope that helps!
AMN
Similar Messages
-
Following the book in chapter 2 I think Ivé followed everything correctly, but have encluded all the things I've edited below.
I was using wamp with no problems but after trying to set up a virtual host and now using xampp im abit lost its probabsomething stupid but I can find the prob.
(This post is abit long and dragged out so I used some colour to try ease the reading..)
When I try to view a dynamic page in live view or in firefox I get the following error:
**when using:
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs
ServerName localhost
</VirtualHost>
result:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
thegoodlife
2009/10/13 12:47:48 PM
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
*when using:
<VirtualHost *:80>
DocumentRoot c:/htdocs
ServerName localhost
</VirtualHost>
result:
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
thegoodlife
2009/10/13 12:32:58 PM
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
This is what I've done, blue indicating where I have or was meant to edit, red being the relivant context. (hope it helps )
1. Created a new folder called htdocs (C:\htdocs)
2. Changed the pathname to:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot "C:/htdocs"
and
# This should be changed to whatever you set DocumentRoot to.
<Directory "C:/htdocs">
3. Created vhosts folder; with a sub-folder called thegoodlife (C:\vhosts)
4. entered new vhost:
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
127.0.0.1 dwcs4
127.0.0.1 thegoodlife
127.0.0.1 bin.errorprotector.com ## added by CiD
5.It says uncomment the command by removing the #, (Supplemental configuation.), but this is the origional file; already uncommented?
# Real-time info on requests and configuration
Include "conf/extra/httpd-info.conf"
# Virtual hosts
Include "conf/extra/httpd-vhosts.conf"
# Distributed authoring and versioning (WebDAV)
Include "conf/extra/httpd-dav.conf"
6.Set the permissions and changed the code as instructed, unsing (c:/xampp/htdocs) as advised.
# You may use the command line option '-S' to verify your virtual host
# configuration.
<Directory C:/vhosts>
Order Deny,Allow
Allow from all
</Directory>
# Use name-based virtual hosting.
##NameVirtualHost *:80
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/dwcs4
ServerName dwcs4
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/thegoodlife
ServerName thegoodlife
</VirtualHost>
Then creating the site definition:
local root forlder: C:\htdocs\thegoodlife\
testing server folder: C:\vhosts\thegoodlife\
URL prefix: http://thegoodlife/
hope i've covered all area's where I could have gone wrongJust one more thing - the description of what i did while first Kernel appeared:
Happened 2 days ago. Wasn't turning it off for like a day, only sleep mode by closing it. Worked fine all day, wasn't doing anything, except for checking mail 2-3 times and having windows 7 virtual machine opened but doing nothing, everything was going fine. Then closed it without turning off.
Opened 3-4 hours later, everything was working fine for 30 minutes of checking mail, then Kernel appeared. After that pretty much everything i did is described in part 1-5.
Note: all the time MBP was connected to internet via wifi, so updates to both MBP and virtual machine of all programs were possible.
I only shared downloads and desktop folders, so windows couldn't have access to system folder of Mac Os.
Hope this might help...Thanks again. -
Apache, name based virtual hosts and multiple servers.
Hi,
Ive been playing with Apache and name-based virtual hosts for a while now, but, ive been doing it with one single server... now i have the need to forward a name-based request to another server inside the intranet (wich doesnt have a public IP, but a private)...
Something like this:
internet -----> Webserver (name based vhosts) ----> intranet-webserver
Where "webserver" has several domains resolved via name based virtual hosting, and one of those needs to be redirected (or forwarded) to another server on the LAN.
Any ideas on how to do this? i tryed searching the web, but i dont know under which keywords, so i always end on single server virtual hosting help sites.
thanks in advance!you need to define a virtual server for it..but inside that definition.. define a proxy.
Then the middle webserver, will actually handle the request to the intranet server, on behalf of the internet client..and then pass the traffic to the internet client.
this looks like a reasonable example..
http://www.linuxfocus.org/English/March … le147.html
namely, the section "Mapping Virtual Servers" -
Web sharing - virtual hosts and CGI
This topic might be a bit advanced for this forum, I'm not sure. But here goes.
I'm trying to set up my laptop to act like a web server so that I can do test development on it. I have two web sites, and have successfully created virtual hosts for each of them.
The part that I'm struggling with now is enabling CGIs, as I want to learn to write CGIs in Perl. I can't seem to find any site that discusses how this is done in Leopard. One said something like "just put the CGIs into /Library/WebServer/CGI-Executables and it'll work", but of course, since I've got virtual hosts defined, it seems that anything addressed to "localhost" defaults to the first virtual host and thus there is no way to refer to a CGI placed in that location. Besides which, I'd like to know how to enable CGIs placed in a folder on each of my virtual sites, so that I could test them in place.
Any ideas?One said something like "just put the CGIs into /Library/WebServer/CGI-Executables and it'll work", but of course, since I've got virtual hosts defined, it seems that anything addressed to "localhost" defaults to the first virtual host and thus there is no way to refer to a CGI placed in that location.
That is an incorrect assumption.
By default, Apache is configured to recognize any URI that begins with /cgi-bin and serve that request via a CGI script in /Library/WebServer/CGI-Executables
This is true even though each site's DocumentRoot is set somewhere else on the file system (that's by design since it makes it harder for a remote attacker to affect your CGIs)
Since it does not matter which site the request was on, any /cgi-bin request would be served from there, so:
http://www.domain1.com/cgi-bin/some.cgi
http://www.domains2.net/cgi-bin/other.cgi
would both be served from /Library/WebServer/CGI-Executables even though they are for two different virtual hosts.
Now, of course, if you want each site to be separate and have its own set of CGIs (maybe some.cgi for domain1 does something different from some.cgi on domain2) then this approach causes problems. For this you will need to edit each site to have its own cgi-bin directory.
Unfortunately (although I haven't tested it) I think Matt's solution won't work because Apache is going to catch all /cgi-bin/ requests and serve them from /Library/WebServer/CGI-Executables, never getting to the cgi-bin directory within each site's documentroot.
To set site-specific CGI directories you need to add a ScriptAlias command to each site's .conf, such as:
ScriptAlias /cgi-bin/ /path/to/site/cgi-bin/
This tells apache that any request for /cgi-bin/* should be served from /path/to/site/cgi-bin
Ideally the path should be outside of the site's normal document root, but it can be inside if you really want. -
What does virtual host and port mean in a system in ESB console
Hi !
When you click on a system in ESB console you can see and change 'cluster name' , 'Virtual host' and 'Port' .
What does this mean ?
As default the port is 8888 even though the installation uses port 80.
If I change the port, I see no difference.
Could someone please explain ?It is used to generate the endpoint urls in the wsdl's for the services you have deployed. It needs to be set to the esb server and port number where the services are installed. So if your esb installation uses port 80 you need to change 8888 to 80. Try the wsdl and look at the url of the endpoint.
Kind Regards,
Andre -
VIrtual host and reverse proxy FOR EBIZ R12.0.6
we have 4 dev EBIZ instances on a single hp_ux itanium server on which I have to setup one instance for virtual hosting and to work behind a reverse proxy .
any particular documents or steps for this.
Thanks
mnwe have 4 dev EBIZ instances on a single hp_ux itanium server on which I have to setup one instance for virtual hosting and to work behind a reverse proxy .
any particular documents or steps for this.Implementing Virtual Host, Concurrent Managers and EM DBconsole on Oracle Applications R12 [ID 603883.1]
Conc-System Node Name Not Registered After Fresh Install Using Virtual Name [ID 948644.1]
Is Auto Failover With Virtual Hostnames For Concurrent Processing Servers Supported In 11i Or R12? [ID 456540.1]
Case History: Implementing a Reverse Proxy Alone in a DMZ Configuration - R12 [ID 726953.1]
Oracle E-Business Suite R12 Configuration in a DMZ [ID 380490.1]
Thanks,
Hussein -
Apache Virtual Hosts and Weblogic 5.1SP6
Running:
WebLogic Server 5.1.0 w/ Service Pack 6
Solaris 7
Hello, I've been reading through the newsgroups and saw alot of information on
setting up apache and weblogic to handle virtual hosts, but am still having problems
getting it to work.
I have 2 domains that will be served up by one instance of Apache using NameBased
virtual hosts and I would like to have our one instance of WebLogic 5.1SP6 handle
them as well.
Excerpt from my httpd.conf file:
NameVirtualHost 216.xx.x.xx:80
<VirtualHost vcstgws011:80>
ServerName vcstgws011.domain1.com
Port 80
DocumentRoot /opt/vci-10.8/webapps/www
DirectoryIndex index.jsp
<Directory "/opt/vci-10.8/webapps/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost vcstgws011:80>
ServerName www.domain2.com
Port 80
DocumentRoot /opt/vci-10.8/webapps/www/dsl
DirectoryIndex index.jsp
<Directory "/opt/vci-10.8/webapps/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Under my default server configuration I have the WebLogic stuff:
<IfDefine WL>
WebLogicCluster vcstgas011.domain1.com:7001
Debug on
DebugConfigInfo on
ConnectTimeoutSecs 60
HungServerRecoverSecs 300
Debug on
DebugConfigInfo on
<Files *.jsp>
SetHandler weblogic-handler
</Files>
<Location /weblogic>
SetHandler weblogic-handler
PathTrim /weblogic
</Location>
<Location /servlet>
SetHandler weblogic-handler
</Location>
<Location /Admin*>
SetHandler weblogic-handler
</Location>
<Location /j_security_check>
SetHandler weblogic-handler
</Location>
</IfDefine>
And here's an excerpt from my weblogic.properties file:
# HTTPD
weblogic.httpd.enable=true
# DocumentRoot configuration
weblogic.httpd.defaultWebApp=/opt/vci-10.8/webapps/www
weblogic.httpd.indexDirectories=true
Any help would be appreciated.
Thanks,
MarkAnyone have success with Name-Based virtual hosts using same instance of WebLogic?
"Mark Mangano" <[email protected]> wrote:
>
Running:
WebLogic Server 5.1.0 w/ Service Pack 6
Solaris 7
Hello, I've been reading through the newsgroups and saw alot of information
on
setting up apache and weblogic to handle virtual hosts, but am still
having problems
getting it to work.
I have 2 domains that will be served up by one instance of Apache using
NameBased
virtual hosts and I would like to have our one instance of WebLogic 5.1SP6
handle
them as well.
Excerpt from my httpd.conf file:
NameVirtualHost 216.xx.x.xx:80
<VirtualHost vcstgws011:80>
ServerName vcstgws011.domain1.com
Port 80
DocumentRoot /opt/vci-10.8/webapps/www
DirectoryIndex index.jsp
<Directory "/opt/vci-10.8/webapps/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost vcstgws011:80>
ServerName www.domain2.com
Port 80
DocumentRoot /opt/vci-10.8/webapps/www/dsl
DirectoryIndex index.jsp
<Directory "/opt/vci-10.8/webapps/www">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Under my default server configuration I have the WebLogic stuff:
<IfDefine WL>
WebLogicCluster vcstgas011.domain1.com:7001
Debug on
DebugConfigInfo on
ConnectTimeoutSecs 60
HungServerRecoverSecs 300
Debug on
DebugConfigInfo on
<Files *.jsp>
SetHandler weblogic-handler
</Files>
<Location /weblogic>
SetHandler weblogic-handler
PathTrim /weblogic
</Location>
<Location /servlet>
SetHandler weblogic-handler
</Location>
<Location /Admin*>
SetHandler weblogic-handler
</Location>
<Location /j_security_check>
SetHandler weblogic-handler
</Location>
</IfDefine>
And here's an excerpt from my weblogic.properties file:
# HTTPD
weblogic.httpd.enable=true
# DocumentRoot configuration
weblogic.httpd.defaultWebApp=/opt/vci-10.8/webapps/www
weblogic.httpd.indexDirectories=true
Any help would be appreciated.
Thanks,
Mark -
Deploying applications to virtual hosts and root contexts on OC4J
Hi
Does anyone out there know how to use hostnames other than the default to talk to an OC4J application (live virtual hosts in Apache). I have a server called web.mydomain.com but for a particular website I want to access it as shop.otherdomain.com - the same machine just 2 different DNS entries. I want OC4J to accept requests for both these machines and display a different site depending on which is accessed. This functionality is provided in Tomcat by the <host> construct - but how do you do it in OC4J?
A secondary question related to this is how to deploy an application to the root context of one of these virtual hosts? The Enterprise Manager interface won't let you map anything to the '/' URL.
I have read a lot of documentation and found little of relevance (fairly typical). I hope this is just a simple option I have overlooked.
Thanks,
Anthony.Sorry... Forgot to mention:
I have read the post about using URL rewriting but this seems like a bit of a fudge. I was wondering if there was a way to do this from the OC4J setup. Preferably through the Enterprise Manager?
Anthony. -
How to configure virtual hosts and separate tiers
The configuration we require with WLS must:
1) provide virtual hosts that can operate under their own SSL environments (some one way, some two way, with different certs)
2) perform all XML parsing of received message objects in the web layer in order to (a) offload CPU from ejb layer to web layer and (b) prevent any malformed message from penetrating to the ejb layer - reject in the web layer
3) the web tier must be physically separate from the ejb tier - an integrated WLS server is not acceptable for security reasons
4) the ejb layer must be clusterable
5) DNS round robin is sufficient protection for web layer failover
I do not see clearly how to accomplish this configuration using the WLS suite. Would appreciate guidance on this prior to plunking down big dollars for licenses.
ThanksThe configuration we require with WLS must:
1) provide virtual hosts that can operate under their own SSL environments (some one way, some two way, with different certs)
2) perform all XML parsing of received message objects in the web layer in order to (a) offload CPU from ejb layer to web layer and (b) prevent any malformed message from penetrating to the ejb layer - reject in the web layer
3) the web tier must be physically separate from the ejb tier - an integrated WLS server is not acceptable for security reasons
4) the ejb layer must be clusterable
5) DNS round robin is sufficient protection for web layer failover
I do not see clearly how to accomplish this configuration using the WLS suite. Would appreciate guidance on this prior to plunking down big dollars for licenses.
Thanks -
Virtual Hosts and Mod_JK
I setup two sites: madplanet.com and j-community.org. Both on all addresses and on port 80. The two domain names resolve to an external IP address. I configured Mod_JK correctly in the httpd.conf file.
Now I configured two workers in workers.properties each pointing to a different JBoss/Tomcat server. I added them to the workers list and finally added them manually to the appropriate XXXXany_90<domain name>.conf file in the sites directory which looks like this:
<VirtualHost *:80>
ServerName madplanet.com
ServerAdmin [email protected]
DocumentRoot "/Library/WebServer/Documents"
DirectoryIndex "index.html" "index.php"
CustomLog "/var/log/apache2/access_log" "%h %l %u %t \"%r\" %>s %b"
ErrorLog "/var/log/apache2/error_log"
ErrorDocument 404 /error/HTTPNOTFOUND.html.var
<IfModule mod_ssl.c>
SSLEngine Off
SSLCertificateFile "/etc/certificates/192.168.0.2.crt"
SSLCertificateKeyFile "/etc/certificates/192.168.0.2.key"
SSLCipherSuite "ALL:!ADH:RC4RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP:eNULL"
</IfModule>
<IfModule mod_dav.c>
DAVLockDB "/var/run/davlocks/.davlockany80default"
DAVMinTimeout 600
</IfModule>
<IfModule modmemcache.c>
CacheEnable mem /
MCacheSize 4096
</IfModule>
<Directory "/Library/WebServer/Documents">
Options All -Includes -ExecCGI +MultiViews -Indexes
AllowOverride None
<IfModule mod_dav.c>
DAV Off
</IfModule>
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
</IfModule>
<IfModule modproxybalancer.c>
<Proxy "balancer://balancer-group">
</Proxy>
</IfModule>
<IfModule mod_alias.c>
Alias "/collaboration" "/usr/share/collaboration"
Alias "/icons/" "/usr/share/httpd/icons/"
Alias "/error/" "/usr/share/httpd/error/"
Alias "/examples" "/Library/Tomcat/webapps/examples"
Alias "/macserver" "/Library/WebServer/Documents"
</IfModule>
<IfModule mod_jk.c>
JKMount / JBoss1
JKMount /* JBoss1
</IfModule>
Include /etc/apache2/httpd_users.conf
Include /etc/apache2/httpd_groups.conf
Include /etc/apache2/httpdteamsrequired.conf
LogLevel debug
ServerAlias *
</VirtualHost>
Still after the web service is started both domains delivery the same content (the one from madplanet.com) meaning that 'http://madplanet.com' and 'http://j-community.org' delivery the same web site. Using the web site port from Tomcat the j-community website comes up fine.
Any pointers?
Thanks - AndyYour fatal flaw is the line:
ServerAlias *
This tells Apache that this virtual host matches all hostnames, so it doesn't matter what site the user tried to access, they will always get the output of this virtual host.
Remove this line and you should be fine. -
IAS 6.0 and Rewrite rules
Hi,
I have worked with Apache JServ in which you have the concept of Rewrite
rules in one of the property files.
How does the same concept work with iAS 6.0?
Thanks
UzmaBased on my (limited) understanding of JServ rewrite rules, rewrite rules
are essentially a regex tool for URL modification that takes place at the
webserver tier before the servlet engine sees the request.
So, you should be able to implement something similar in an NSAPI plug-in at
the webserver tier. Or by using an ISAPI plug-in if you are using IIS, or
mod_rewrite if you are using Apache. (I don't know if anyone has already
implemented such a plug-in in NSAPI or ISAPI). Just make sure that the
re-write plug-in is before the iAS plug-in.
You could try to do something similar with servlet mapping at the iAS tier,
but that route is much more limited. Wildcards as opposed to regular
expresssions. And you ability to map servlets would be limited to URL's that
are already in the context of the webapp.
David
Uzma Siddiqui wrote:
Hi,
I have worked with Apache JServ in which you have the concept of Rewrite
rules in one of the property files.
How does the same concept work with iAS 6.0?
Thanks
Uzma -
Can someone please explain how to configure mod_oc4j and virtual hosts. It can be done with mod_jk, but I am have major problems in getting it to work with mod_oc4j.
I am not sure about mod_jk so I won't touch that.
mod_oc4j introduces directives that have the scope of either default server or virtual host - just like most OHS (Apache) directives. By default, these directives are in a file mod_oc4j.conf, and this file is included at the highest level.
If you do want those mount points defined in mod_oc4j.conf to be available only to a certain virtual host etc., you can either create a mod_oc4j_vh1.conf file and have it included within the scope of the vh1 virtual host. Or, you can just define those directives right within the vh1 virtual host directive. -
Virtual Hosts and mod_oc4j. How is it done?
Can someone please explain how to configure mod_oc4j and virtual hosts. It can be done with mod_jk, but I am have major problems in getting it to work with mod_oc4j.
yes, I am also very interested in this thing. i could not find anything about that in the documentation.
greetings from munich, .thomas -
Apache Virtual Hosting and WLS 6.0 Apache plug-in
We have a client that uses Apache and virtual hosting. We also have a
single webapp that serves these virtual hosts/domains.
Therefore, all of the served virtual hosts/domain has the same webapp
directory structure ( e.g.: index.jsp, advert.jsp, css/ )
For the above to work, we are thinking of getting the requested virtual
hostname ( supposedly part of the HTTP header sent by the browser as the
"Host:" parameter ) to figure out how the page will be displayed ... Does
the Apache plug-in send this information to WLS?Apache plugin will forward the "Host" header to wls.
BTW, HTTP1.0 client will not send the HOST header if I recalled properly since
HOST header is not part of HTTP1.0 spec.
Jesus M. Salvo Jr. <[email protected]> wrote:
>
We have a client that uses Apache and virtual hosting. We also have a
single webapp that serves these virtual hosts/domains.
Therefore, all of the served virtual hosts/domain has the same webapp
directory structure ( e.g.: index.jsp, advert.jsp, css/ )
For the above to work, we are thinking of getting the requested virtual
hostname ( supposedly part of the HTTP header sent by the browser as
the
"Host:" parameter ) to figure out how the page will be displayed ...
Does
the Apache plug-in send this information to WLS? -
Web App and Virtual Host and Clustering
Hi,
How are you doing?
What is the best way to deploy a web application using a virtual host on a clustered
environment?
Here is what we are doing:
o Deploy the web application on the virtual host
o Deploy the virtual host on the cluster
o Make the web appliation, the default application on the virtual host
This seems to work, but I have additional questions?
In the above deployment, looking at the deploy tab for the web application shows
that the application is deployed to both the cluster as well as the virtual host.
Even though we didn't explicitly deploy to the cluster! What happens if we deploy
explicity (i.e., target) the web application to the cluster?
What other approaches / configurations are you guys using?
Thank you so much,
-Bart Simpson
Never mind, I think I have a solution. Even though e-docs say that DefaultWebApp attribute at virtual host level was deprecated as of WL 8.1 (inline with Servlet 2.3 specification) one can directly edit config.xml file and add the attribute.
For instance, here is an example to set webapp APP1 as a default webapp for virtual host vhAPP1:
<VirtualHost
Name="vhAPP1"
DefaultWebApp="APP1"
... />
Maybe you are looking for
-
How do I hook up a G3 iBook to my home network with only Windows machines?
I'm completely ignorant of Apple technology but pretty good for a novice with Windows PC's. To help a family member with an iBook (Mac OS 10.3.9) back up a gazillion family photos (at least 3.2GB in the iPhoto Library), we want to connect his iBook t
-
Problem in table maintenance creation
Hi I am trying to create a table maint for z table for my project, but it is not allowing, it is giving the message-- The maintenance object description transportable package please help.
-
Workflow, Folios and Document Update question?
" Hi All, System Setup - Oracle UCM 10gR3, ORacle 11G DB using OracleText We are currently passing a folio through the workflow and want to be able to read the metadata of the content/docuemnt item stored in the folio. We can do this from iDoc from s
-
How to record with garage band.
Can i record my digital accordion RolandFR1X on garage band 10.0.2 withUSB connection?
-
I'm running Flex builder 3 and player 10. The builder can't find the debugger. Version 10 is working in Flash 4.