Agent for Apache w/Virtual Hosts question
I have an apache installation with two vritual hosts defined. The AMAgent for apache is installed and working fine. But ... I only want the agent to manage one of the virtual hosts. The virtual hosts are IP based because they both run over SSL. How do I tell the agent to not manage the second virtual?
Mark
I've tried that, and no luck. We actually set com.sun.am.policy.agents.config.notenforced_list.invert to 'true', inverting the meaning of the not enforced list, and there is just one specific sub-URL (https://site1.foo.com/suburl/*) in the list. So everything else should already be 'not enforced'. And testing against other url's under site.foo.com shows that to be true.
The behaviour I am seeing is actually odd ... When I try to go to https://site2.foo.com/, I get redirected to https://site1.foo.com/. You would think that, if the Agent is the problem, then it would redirect me to the login url defined in AMAgent.properties. But it doesn't ... it just sends me to https://site1.foo.com/.
But I know the plugin is the issue because, if I comment out the reference to dsame.conf in httpd.conf, everything works as expected.
Mark
Similar Messages
-
Weblogic, Apache and Virtual Hosts
Hello,
I have apache set for name-based Virtual Hosting (I'm serving 2 domains from the
same IP) and am running into the following problem:
Even though DOMAIN 2 has its own document root specified in the Apache httpd.conf
file, that is different than the document root for DOMAIN 1, both URLs are serving
up the same index.jsp from WebLogic (v. 5.1).
If I change the httpd.conf entry for DOMAIN 2, to serve up index.html instead
of index.jsp, it works????
Is there some setting I need in weblogic.properties???
Any help would be appreciated!!
Thanks,
Mark ManganoHello,
I have apache set for name-based Virtual Hosting (I'm serving 2 domains from the
same IP) and am running into the following problem:
Even though DOMAIN 2 has its own document root specified in the Apache httpd.conf
file, that is different than the document root for DOMAIN 1, both URLs are serving
up the same index.jsp from WebLogic (v. 5.1).
If I change the httpd.conf entry for DOMAIN 2, to serve up index.html instead
of index.jsp, it works????
Is there some setting I need in weblogic.properties???
Any help would be appreciated!!
Thanks,
Mark Mangano -
Help with apache and virtual hosts
I hope someone can help me I had installed shared point for testing and learning it. I had setup alternative mapping and know I want to add sub domain to my Apache web server. So I have sub domain redirecting back to share point. Also mine website is being redirected to share point. How I can have sub domain redirected to share point and main website go to my drupal ? I had created virtual host for main website but I still get redirected to share point.
I have this and the problem is that main domain goes to share point.
<VirtualHost xxxx.us:80>
ServerName xxxx.us
ServerAlias www.xxxx.us
DocumentRoot "/srv/http"
ServerAdmin [email protected]
ErrorLog "/var/log/httpd/error_log"
CustomLog "/var/log/httpd/access_log" common
<Directory />
Options FollowSymLinks
AddHandler cgi-script .cgi .pl
Options ExecCGI Indexes FollowSymLinks MultiViews +Includes
AllowOverride None
Order deny,allow
Deny from all
</Directory>
</VirtualHost>
<VirtualHost sharepoint.xxxx.us:80>
ServerName sharepoint.xxxx.us
ServerAlias sharepoint.xxxx.us
DocumentRoot "/srv/http"
ServerAdmin [email protected]
ErrorLog "/var/log/httpd/error_log"
CustomLog "/var/log/httpd/access_log" common
RewriteEngine On
RewriteLog "/var/log/httpd/rewrite_log"
RewriteLogLevel 9
RewriteCond %{HTTP_HOST} !^(sharepoint\.)?hebe\.us$
RewriteRule ^(.*)$ http://hebe.us$1 [L,R=301]
ProxyRequests On
ProxyPreserveHost On
ProxyVia full
ProxyPass / http://192.168.0.38/
ProxyPassReverse / http://192.168.0.38/
</VirtualHost>
Last edited by tritron4 (2013-06-19 17:01:08) -
Using Dreamweaver ftp for file upload to host question
My local site is set up with links relative to the root document.
The local root folder is defined as J:\xampp\htdocs\rootfilename\
I have not put anything in the field HTTP Address so it just shows http://
Once I have defined my remote site in the Dreamweaver setup I still have concerns regarding how dreamweaver will treat some of the links in my localhost testing environment, I have changed some of the relative links to fully qualified paths such as :
http://localhost/rootfilename/filename.php
So my question is when i do the file transfer how does dreamweaver treat these full links, will it change localhost to the new host name, and the root directory name to the root directory name automatically for me (obviously after i have defined them in the remote site setup)?
And what about my file path names such as my includes files which I have had to make a full path for example:
include_once ("J:/xampp/htdocs/rootfilename/includes/filename.inc.php");
Will Dreamweaver remove the J:/xampp stuff and give it the correct fully qualified path?
Thank you in advance for your help, I just want to make sure everything is set up right before I start the transfer.No DW will not update absolute paths in your code. Absolute paths will remain exactly how you've typed them on upload.
-
The Web Agent for Apache not working
Any chances to put the last version of Web Agent (im8154) working with Apache in Linux?
I4m using a Red Hat 6.2 system with Apache 1.3.12 and I compile the web agent without errors. In the some box I use php40 with Apache and I connect and use my Oracle database in another machine without problem.
All the enviroment is set (ORACLE_HOME, LD_LIBRARY_PATH, PATH) and I even put the Apache user running as oracle.dba
The problem is always the some: the Apache don4t find any page (404 in the log) in the /intermedia path. It4s seems that dont fire the web agent module that is compiled (I confirm with httpd -l) into. I can put anything in the httpd.conf in the Intermedia Location section that the symtom is the same: no errors, no logs in ORACLE_HOME/ord/web/log or in the /tmp, nothing at all. Just "Page not Found". But the others Location sections are working like the server-status.
Any ideias people?
Fernando SoaresAny chances to put the last version of Web Agent (im8154) working with Apache in Linux?
I4m using a Red Hat 6.2 system with Apache 1.3.12 and I compile the web agent without errors. In the some box I use php40 with Apache and I connect and use my Oracle database in another machine without problem.
All the enviroment is set (ORACLE_HOME, LD_LIBRARY_PATH, PATH) and I even put the Apache user running as oracle.dba
The problem is always the some: the Apache don4t find any page (404 in the log) in the /intermedia path. It4s seems that dont fire the web agent module that is compiled (I confirm with httpd -l) into. I can put anything in the httpd.conf in the Intermedia Location section that the symtom is the same: no errors, no logs in ORACLE_HOME/ord/web/log or in the /tmp, nothing at all. Just "Page not Found". But the others Location sections are working like the server-status.
Any ideias people?
Fernando Soares -
How can I connect to multiple WLS instances from a single Apache virtual host
Configuration : WebLogic 5.1 SP8 & Apache
I need to be able to have a configuration that looks something like this.
www.company.com/x -> WL cluster01
www.company.com/y -> WL cluster02
In all the examples that I have been able to find they alway defines the the WL
connection for the entire virtual host, but I need to be able to do it on a location
basis is that possible?
Thanks
Jens Schutthttpd.conf:
<VirtualHost 172.17.9.24:443>
DocumentRoot "/www/X"
ServerName qawebivesta.qa.livecapital.com
ErrorLog /usr/local/apache/logs/qaweb1.error_log
TransferLog /usr/local/apache/logs/qaweb1.access_log
SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/apache/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
Debug ON
DebugConfigInfo ON
<Location /ivesta/>
SetHandler weblogic-handler
WebLogicHost qawlgc1
WebLogicPort 7001
</Location>
<Location /TMPPhase2>
SetHandler weblogic-handler
WebLogicHost qawlgc1
WebLogicPort 11001
</Location>
</VirtualHost>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/TMPPhase2 works fine, but when I try to access /ivesta I get a 404 from WebLogic
"https://qawebtmp.qa.livecapital.com/ivesta/index.jsp?__WebLogicBridgeConfig
Weblogic Apache Bridge Configuration parameters:
WebLogic Cluster List:
General Server List:
Host: 'qawlgc1' Port: 11001
DefaultFileName: ''
PathTrim: ''
PathPrepend: ''
ConnectTimeoutSecs: '10'
ConnectRetrySecs: '2'
HungServerRecoverSecs: '300'
MaxPostSize: '-1'
DynamicServerList: ON
StatPath: false
CookieName: WebLogicSession
Idempotent: ON
FileCaching: ON
DisableCookie2Server: OFF
QueryFromRequest: OFF
Build date/time: Jun 25 2001 15:09:34
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This should have been connecting to my 7001 instance not the 11001.
Thanks
Jens
"Eric Gross" <[email protected]> wrote:
What do you mean the wrong port? Post the complete output from
WebLogicBridgeConfig as well as the URL you used.
Also, paste the weblogic relative portions from your httpd.conf
Thanks,
Eric
"jens" <[email protected]> wrote in message
news:[email protected]...
I also used ?__WebLogicBridgeConfig to verify that it did pick up thewrong port.
Here is my build date for mod_wl.so in SP10
Build date/time: Jun 25 2001 15:09:34
Thanks
Jens
"Eric Gross" <[email protected]> wrote:
Make sure you are using the latest plugin. As well, add parameter:
DebugConfigInfo=ON and make a request with a query paramater of
?__WebLogicBridgeConfig and you should then see the build date/time.
We can
then see if you are indeed using the latest plugin.
It is not a possibility to get the source.
Regards,
Eric
"jens" <[email protected]> wrote in message
news:[email protected]...
And the solution where you put the WebLogic parm under location
the
last
location
over rule the previous.
I have also tried to upgrade my plug-in from SP8 to SP10 but that
didn't
make
any difference either.
Is it possible to get the source code for the plug-in, I'm afraid
that
it
don't
follow put's all it's parm's a the vhost level no matter where in
the
conf
file
they are placed.
HELP
Jens
"Eric Gross" <[email protected]> wrote:
Yu is correct.
Here is another way to do it as well:
MatchExpression /x
WebLogicCluster=server1:port,server2:port|PathTrim=/x
MatchExpression /yWebLogicCluster=server3:port,server4:port|PathTrim=/y
The general syntax for this would be:
MatchExpression exp name=value|name=value
Where exp=Mime type(*.jsp) or exp=/x(path)
The next argument in the list is a pipe(|) delimited list ofname=value
pairs (ie: WebLogicHost, WebLogicPort, WebLogicCluster, PathTrim,
PathPrepend, etc..).
Hope this helps.
Regards,
Eric
"Yu Tian" <[email protected]> wrote in message
news:[email protected]...
Hi Jens,
I think you can proxy by ppath.
<Location /x>
SetHandler weblogic-handler
WebLogicCluster cluster1
</Location>
<Location /y>
SetHandler weblogic-handler
WebLogicCluster cluster2
</Location>
thanks
Yu
"Jens" <[email protected]> wrote in message
news:[email protected]...
Configuration : WebLogic 5.1 SP8 & Apache
I need to be able to have a configuration that looks something
like
this.
www.company.com/x -> WL cluster01
www.company.com/y -> WL cluster02
In all the examples that I have been able to find they alway
defines
the
the WL
connection for the entire virtual host, but I need to be able
to
do it
on
a location
basis is that possible?
Thanks
Jens Schutt -
Virtual Hosts in Apache HTTP Server
How to configure virtual hosts in Apache HTTP Server httpd.conf file.
If I want to access my server with some other name(alias), how can I do this ?
Suggestions in this matter would be highly helpful.
Thanks
Vidhyut AroraFollowing is a note explaining how to setup
Virtual hosts.
Hope this helps
Ranga
Note:70647.1
Subject: Apache Server Virtual Hosting
Last Revision Date: 07-JUN-2001
PURPOSE
This document discusses considerations for setting up virtual hosts on an
Apache machine, to include how to get the hostname working and how to
configure Apache.
SCOPE & APPLICATION
The information in this document is intended for those who manage multiple sites
using an Apache machine.
REFERENCES
First published in Apache Week issue 31 (6th September 1996)
Last update 20th September 1998
Using Virtual Hosts
Virtual Hosts let you run multiple independent Web sites on a single host with
a single Apache setup.
One of the most important facilities in Apache is its ability to run virtual
hosts. This is now the essential way to run multiple Web services - each with
different host names and URLs - that appear to be completely separate sites.
This is widely used by ISPs, hosting sites and content providers who need to
manage multiple sites but do not want to buy a new machine for each one.
Picking an IP address
There are two types of virtual hosts: IP-based and non-IP-based. The former is
where each virtual host has its own IP address. You must have a new IP address
for each virtual host you want to set up, either from your existing allocation
or by obtaining more from your service provider. When you have extra IP
addresses, you tell your machine to handle them. On some operating systems, you
can give a single ethernet interface multiple addresses (typically with an
fconfig alias command). On other systems, you must have a different
physical interface for each IP address (typically by buying extra ethernet
cards).
IP addresses are a resource that costs money and are increasingly difficult to
get, so modern browsers can now also use 'non-IP' virtual hosts. This
lets you use the same IP address for multiple host names. When the server
receives an incoming Web connection, it does not know the hostname that was used
in the URL. However, the new HTTP/1.1 specification adds a facility where the
browser must tell the server the hostname it is using, on the Host: header. If
an older browser connects to a non-IP virtual host, it does not send the Host:
header, so the server must respond with a list of possible virtual
hosts. Apache provides some help for configuring a site for both old and new
browsers.
Picking a Hostname and Updating the DNS
Having selected an IP address, the next stage is to update the DNS so that
browsers can convert the hostname into the right address. The DNS is the system
that every machine connected to the internet uses to find the IP address of host
names. If your hostname is not in the DNS, no one can connect to
your server (except by the unfriendly IP address).
If the virtual hostname you are going to use is under your existing domain,
you can just add the record into your own DNS server. If the virtual hostname
is in someone else's domain, you must get them to add it to their DNS
server files. In some cases, you want to use a domain not yet used on the
internet, in which case you must apply for the domain name from the
InterNIC and set up the primary and secondary DNS servers for it, before adding
the entry for your virtual host.
In any of these cases, the entry you need to add to the DNS is an address record
(an A record) pointing to the appropriate IP address. For example, say you want
the domain www.my-dom.com to access your host with IP address 10.1.2.3: you
must add the following line to the DNS zone file for my-dom.com:
www A 10.1.2.3
Now, users can enter http://www.my-dom.com/ as a URL in their browsers and get
to your Web server. However, it will return the same information as if the
machine's original hostname had been used. So, the final stage is to tell Apache
how to respond differently to the different addresses.
How Apache Handles Virtual Hosts
Configuring Apache for virtual hosts is a two-stage process. First, it needs
to be told which IP addresses (and ports) to listen to for incoming Web
connections. By default, Apache listens to port 80 on all IP addresses of the
local machine, and this is often sufficient. If you have a more complex
requirement, such as listening on various port numbers, or only to specific IP
addresses, then the BindAddress or Listen directives can be used.
Second, having accepted an incoming Web connection, the server must be
configured to handle the request differently, depending on what virtual host it
was addressed to. This usually involves configuring Apache to use a different
DocumentRoot.
Telling Apache Which Addresses to Listen To
If you are happy for Apache to listen to all local IP addresses on the port
specified by the Port directive, you can skip this section. However, there are
some cases where you want to use the directives explained here:
- If you have many IP addresses on the machine but only want to run a Web
server on some of them
- If one or more of your virtual hosts is on a different port
- If you want to run multiple copies of the Apache server serving different virtual
hosts
There are two ways of telling Apache what addresses and ports to listen to:
- Use the BindAddress directive to specify a single address or port
- Use the Listen directive to any number of specific addresses or ports
For example, if you run your main server on IP address 10.1.2.3 port 80, and a
virtual host on IP 10.1.2.4 port 8000, you would use:
Listen 10.1.2.3:80
Listen 10.1.2.4:8000
Listen and BindAddress are documented on the Apache site.
Configuring the Virtual Hosts
Having gotten Apache to listen to the appropriate IP addresses and ports, the
final stage is to configure the server to behave differently for requests on
each of the different addresses. This is done using <VirtualHost> sections in
the configuration files, normally in httpd.conf.
A typical (but minimal) virtual host configuration looks like this:
<VirtualHost 10.1.2.3>
DocumentRoot /www/vhost1
ServerName www.my-dom.com
</VirtualHost>
This should be placed in the httpd.conf file. You replace the text
10.1.2.3 with one of your virtual host IP addresses. If you want to specify a
port as well, follow the IP address with a colon and the port number
(example: 10.1.2.4:8000). If omitted, the port defaults to 80.
If no <VirtualHost> sections are given in the configuration files, Apache
treats requests from the different addresses and ports identically. In terms of
setting up virtual hosts, we call the default behavior the main server
configuration. Unless overridden by <VirtualHost> sections, the main server
behaviour is inherited by all the virtual hosts. When configuring virtual
hosts, you must decide what changes to make in each of the virtual
host configurations.
Any directives inside a <VirtualHost> section apply to just that virtual host.
The directives either override the configuration give in the main server, or
supplement it, depending on the directive. For example, the DocumentRoot
directive in a <VirtualHost> section overrides the main server's DocumentRoot,
while AddType supplements the main server's mime types.
Now, when a request arrives, Apache uses the IP address and port it arrived on
to find a matching virtual host configuration. If no virtual host matches the
address and port, it is handled by the main server configuration. If it does
match a virtual host address, Apache uses the configuration of that virtual
server to handle the request.
For the example above, the server configuration used is the same as the
main server, except that the DocumentRoot is /www/vhost1, and the
ServerName is www.my-dom.com. Directives commonly set in <VirtualHost>
sections are DocumentRoot, ServerName, ErrorLog and TransferLog. Directives
that deal with handling requests and resources are valid inside <VirtualHost>
sections. However, some directives are not valid inside <VirtualHost> sections,
including BindAddress, StartSevers, Listen, Group and User.
You can have as many <VirtualHost> sections as you want. You can
leave one or more of your virtual hosts being handled by the main server, or
have a <VirtualHost> for every available address and port, and leave the main
server with no requests to handle.
VirtualHost sections for non-IP Virtual Hosts
Non-IP virtual hosts are configured in a very similar way. The IP address that
the requests arrive on is given in the <VirtualHost> directive, and the
host name is put in the ServerName directive. The difference is that there
(usually) is more than one <VirtualHost> section handling the same IP address.
For Apache to know whether a request arriving on a particular IP
address is supposed to be a name-based requests, the NameVirtualHost directive
addresses for name-based requests. A virtual host can handle more than one
non-IP hostname by using the ServerAlias directive, in addition to the
ServerName.
null -
Does Apache Virtual Hosting work with localhost?
I'm a newbie trying to learn how apache web server works. I've activated apache web server on my Mac PowerBook G4, and tweaked the config file to get PHP, SSI and CGI working.
If I type the url http://127.0.0.1/ I get the same page as http://localhost/
If localhost is the domain name for the address 127.0.0.1, can I assign other domain names to 127.0.0.1 using apache's virtual hosting?
Ti Powerbook G4 Mac OS X (10.4.4)localhost is defined as 127.0.0.1. You can use them interchangeably.
As for virtual hosts, sure. Apache doesn't care.
There are two ways of running virtual hosts.
Port-based virtual hosts use a port number other than the standard 80. They can be accessed via something like http://localhost:8000/
Name-based virtual hosts look at the hostname header in the request to work out which site to serve. You can run any number of sites on the same port number this way, but you need to be able to control DNS so that it points to your machine.
If you are just testing this locally you can edit /etc/hosts to add whatever hostnames you like;
127.0.0.1 localhost my.testsite.com me.mydomain.com
Now when you enter 'my.testsite.com' or 'my.mydomain.com' in your web browser, /etc/hosts will resolve this to 127.0.0.1 and you'll talk to your local apache server.
Note that the localhost entries don't have to be in your domain. You can use this to override any real hostname you like.
Of course, if you want remote users to access this site you'll need to setup something in the DNS, or edit their /etc/hosts files individually. -
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? -
How to configure multiple virtual hosts for the same context root /
Hi,
I am using Glassfish V1 U1 - b14 on Solaris.
I am trying to configure two applications to be mapped to the / root context, each one in its own virtual host.
Two things I have noticed:
1. I have to manually add virtual-hosts="hostId" in domain.xml/application-ref ... looks like just simply deploying the app does not do that although the application is set as default for its particular virtual host. Is this a bug?
2. Although I have set for each virtual host the default web-app correctly, and they both respond fine, I cannot map both of them to the / context. The second application (chronologically deployed) does not respond when called with the / context ....
Any ideas? Is this a bug again?
Regards,
Rares
Message was edited by:
rarespWow, that's a shame. All mighty Application Server and two different apps on two different virtual hosts are considered ambiguous to have the same context root definition.... Fair play to Tomcat and 90% of the rest of servlet containers!
In my case I have the same EAR we are planning to deploy to many (up to 30) virtual hosts. Faking different context roots for each deployment will bring unnecessary overheads...
Should I file a bug or feature request?
Thanks again for your answer, although you're basically saying it is not possible I will wait and look a while for a possible solution before bringing this topic to a conclusion. -
Oracle AD4J Agent Installation Procedures for Apache Jserv
Hi,
Has anybody installed AD4J? I got confused during deply Oracle AD4J Agent for Apache Jserv.
1) For Set up classpath in jserv.conf. The jserv.conf is in target application server? e.g the application server ebiz installed ?
2) Loading the servlet at startup time:
The installation guid only has the following line:
servlets.startup=jamagent.jaminitservlet.jamagent.jaminit.initArgs=jamconshost=localhostservlet.jamagent.jaminit.initArgs=jamconsport=3600
Should I change some configuration file by adding this line. The file is zone.properties of ebiz application server ?
How do I know the Agent is installed at Apach Jserv successfully?
thanks,
taoI'm trying to configure AD4J with E-business suite Apache Jserv (11i). I've added the following to $IAS_ORACLE_HOME/Apache/Jserv/etc/zone.properties and executed $COMMON_TOP/admin/scripts/$CONTEXT_NAME/adapcctl.sh stop and start, but am not seeing any results. The console doesn't seem to pick anything up and none of the log files seem to reflect the loading of the servlets. Please advice on what other debugging tools I may use to investigate the problem.
jserv.properties:
wrapper.classpath=/Dbamnt/oracle/grid_control/jade/jamagent.zip
zone.properties:
servlets.startup=jamagent.jaminit
servlet.jamagent.jaminit.initArgs=jamconshost=<FDQN>
servlet.jamagent.jaminit.initArgs=jamconsport=3600
Message was edited by:
user633977 -
Mod_rewrite not working for virtual host nor .htaccess
I've been tearing my hair out trying to implement mod_rewrite on my Leopard Server. I have finally been able to get mod_rewrite to log what it does, but that has only shown that it DOES periodically respond to a /server_status request from the server itself, but any request to the virtual host (which is otherwise working) does not result in mod_rewrite being 'triggered.' I've tried all the usual suspects, in just about every permutation and combination:
1) .htaccess in all its guises and Override All;
2) RewriteEngine On;
3) http.conf, the virtual xxxx_80_virtualhostname.com.conf;
4) Options All -Includes -ExecCGI +MultiViews -Indexes +FollowSymlinks;
5) other less credible ideas gleaned from the Apple discussions and the web.
If I had to summarise the effect, it's that
a) mod_rewrite is on (as shown by the regular /server_status entries in the rewrite.log);
b) xxxx_80_virtualhostname.com.conf is read when the virtual host is turned on (because the site is active and can be turned off, at will);
c) any mod_rewrite and Options entries in the vistual host xxxx_80_virtualhostname.com.conf seem to be being studiously ignored, even though the .conf file is being read and used.
This part of http.conf is what seems to turn on the logging:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteLog /private/var/log/apache2/rewrite.log
RewriteLogLevel 9
</IfModule>
Here's the section of xxxx_80_virtualhostname.com.conf:
<Directory "/Library/WebServer/com.VirtualHostName">
AllowOverride All
<IfModule mod_dav.c>
DAV Off
</IfModule>
Options All -Includes -ExecCGI +MultiViews -Indexes +FollowSymlinks
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteLog /private/var/log/apache2/rewrite.log
RewriteLogLevel 9
RewriteRule ^/Tom.html$ /Mary.html [R]
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
</IfModule>
This is a variant of the .htaccess file:
RewriteEngine on
RewriteBase /
RewriteRule ^/Tom.html$ /MARY.html [R]
It makes no difference whether the RewriteBase is present in the .htaccess or the xxxx_80_virtualhostname.com.conf, or both.
No amount of pass-though [PT] or redirect [R] has any effect, either.
I do have Lasso 8.5 installed, but the developer says that Lasso should have no effect on the proper functioning of mod_rewrite.
mod_rewrite is working (i.e. it's on, as shown by the /server_status entries in the log and that the log is being updated), but it is also not working (in that no matter what I put into xxxx_80_virtualhostname.com.conf and/or .htaccess, there is no entry in the rewrite.log nor in the system logs).
Hence, I'm stumped. Any suggestions would be very, very welcome.Never mind. I discovered that Server had created several versions of the virtual host .conf file in the sites folder (I've no idea why, when, or how it would do that). They all had different numbers and so were well hidden within the dozens of other .conf files. Once I a) found the right .conf file for the virtual host, and b) deleted the rest from the sites folder, my mod_rewrite code worked fine.
Hence, if you find that mod_rewrite is working, but not for a particular virtual host, make darn sure that there are no errant .conf files for the domain and, if there are, that you're editing the correct one. -
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 -
Problem Changing the Root Directory of the Default Virtual Host in J2EE 7.0
Hi,
I'm trying to change the root directory for the default virtual host in J2EE 7.0.
i did the following steps in visual admin: services -> HTTP Provider -> Runtime -> Virtual Hosts -> default:
Root Directory: "D:/usr/sap/<server>/<instance>/j2ee/cluster/server0/apps/sap.com/crm~b2b/servlet_jsp/b2b/root/b2b" (this the correct path to the application)
Start Page:"z_index.jsp"
I restarted HTTP Provider Service and the J2EE.
When I start http://<server>:<port> i get the following error:
The requested resource /z_index.jsp is not available
Details: File [z_index.jsp] not found in application root of alias [/] of J2EE application [sap.com/com.sap.engine.docs.examples].
sap.com/com.sap.engine.docs.examples is the initial default root directory, but i changed it to the correcht path...
Can anybody help me?
Yours
Michael
Message was edited by:
Michael CendonHi,
hqt200475 wrote:
Hi,
I have the Environemt:
+ Linux SUSE 11 + Oracle Enterprise 11.2.0.2
oracle@stb:~> uname -a
Linux stb 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxMy Problem is changing the home directory of an existing Standalone-ASM:
/u00/app/oracle/product/11.2.0/grid_1/I want to move it to
/u00/app/grid/product/11.2.0/grid_1/My Question: what is the optimal path?
Optimal Flexible Architecture standard
All Oracle components on the installation media are compliant with Optimal Flexible Architecture. This means, Oracle Universal Installer places Oracle Database components in directory locations, assigning the default permissions that follow Optimal Flexible Architecture guidelines.
Oracle recommends that you use Optimal Flexible Architecture, specially if the database will grow in size, or if you plan to have multiple databases.
/u00/app/oracle/product/11.2.0/grid_1 - Oracle home directory for Oracle Grid Infrastructure 11g for a standalone server, if user owner of installation is "oracle"
/u00/app/grid/product/11.2.0/grid_1 - Oracle home directory for Oracle Grid Infrastructure 11g for a standalone server, if user owner of installation is "grid"
http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/appendix_ofa.htm
Hope this helps,
Levi Pereira -
Hi All,
We have a web site based on oracle portal and two virtual hosts have been defined in httpd.conf file as follows:
<VirtualHost *:7779>
ServerName www.mycompany.com
Port 80
ServerAdmin [email protected]
RewriteEngine On
RewriteOptions inherit
OssoConfigFile /opt/oracle/product/portal_int/Apache/Apache/conf/osso/osso_www.conf
OssoIpCheck off
</VirtualHost>
<VirtualHost *:7779>
ServerName abc.mycompany.com
Port 443
AddCertHeader HTTPS
ServerAdmin [email protected]
SimulateHttps On
RewriteEngine On
RewriteOptions inherit
RewriteRule ^/$ /portal/page/portal/MyHome [PT]
OssoConfigFile /opt/oracle/product/portal_int/Apache/Apache/conf/osso/osso_abc.conf
OssoIpCheck on
</VirtualHost>
Now when a request for abc.mycompany.com/PublicPages is made the request gets redirected to www.mycompany.com/PublicPages while the request for abc.mycompany.com/PrivatePages (requiring authentication) is served by abc.mycompany.com/PrivatePages itself.
I want to know:
1> How can I configure this type of behaviour for name based virtual hosts so that request for abc.mycompany.com/PublicPages is served by abc.mycompany.com/PublicPages itself and doesn't get redirected to www.mycompany.com/PublicPages.
2> Where can I find the URL mappings for pages in the Oracle portal.
3> How can I control the redirection of requests in general, on the basis of name based virtual hosts.
Regards,
NoamanHi,
Thank you for posting in Windows Server Forum.
From the listed error it seems that there is RD Virtualization Host process get failed and user authentication redirection can’t occur successfully. Because it seems that there might be some configuration issue during your RDVH configuration. So if possible
please check the whole configuration again and see whether it can resolve your issue. You can refer beneath article for rechecking.
Lab Ops 6 – Setup VDI in Windows Server 2012R2
http://blogs.technet.com/b/andrew/archive/2013/10/14/lab-ops-6-setup-vdi-in-windows-server-2012r2.aspx
Hope it helps!
Thanks.
Dharmesh Solanki
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Maybe you are looking for
-
Hi Everyone, I have created a model in Pages composed of text boxes and shapes. I find the that the model formating becomes skewed when the pages file is converted into a word document. I thought I could overcome this by creating the model in Keynote
-
Giving Access for an User On One Schema.
Hi all, I want to give read,write and execute access for an user in one schema and only read access to another two users. How can I give..Please suggest.
-
HT204347 it's the latest macbook pro 15"
I tried installing a DVD writer, and the computer froze. I cannot shut it down or open any programs
-
TCode PRRW: Document Currency not taken from Travel Expense Report Currency
Hi, We created a Trip Request using TCode TRIP and also created Travel Expense Report for the same Trip in which some of the payments were to be made to Vendor. We have Travel expense receipts in currency SGD. After settling the Trip and creating Pos
-
Error in generation of component piece list
Hi experts, I have developed delivery in SSDC for Add on Assembly Kit (AAK).In delivery i have geneated the objects, while creating component piece list facing some difficuties like object is missing and request is not included. Thanks in advance, C