Mapping Virtual Host to WebApp

Hi,
Does anyony know how to accomplish the following:
- Have two virtual hosts on one server:
dev.example.com and test.example.com
- Create two OC4J containers on the AppServer
(one for DEV and one for TEST)
- Deploy two different versions of an EAR file
to the DEV and TEST containers.
Make sure that http://dev.example.com/application leads to the development version and http://test.example.com/application leads to the test version.
So, the only distinction between the two is the host-name and the rest of the URL is supposed to be the same. How can I then make sure each URL leads to the appropriate webapp?
Thanks

Wilfred,
This should work for two url's going to different sites/pages
The following is from the httpd.conf file on my devl/test server:
<VirtualHost *:7778>
ServerName host2.home.com
DirectoryIndex host2.html
Port 80
RewriteEngine On
RewriteOptions inherit
OssoConfigFile c:\oracle\oramid\Apache\Apache\conf\osso\osso_host2.conf
OssoIpCheck off
DocumentRoot "c:\Oracle\OraMid\Apache\Apache\htdocs"
</VirtualHost>
<VirtualHost *:7778>
ServerName host1.home.com
DirectoryIndex host1.html
Port 80
RewriteEngine On
RewriteOptions inherit
</VirtualHost>
--in the next entries replace the http://....with the site you want the users to be redirected to.
Redirect /host2.html http://host2.home.com/portal/page?.....
Redirect /host1.html http://host1.home.com/portal/page?.....
I had to make all the changes directly to the httpd.conf file through OEM (directly to the file should work also). Tried the virtual hosts entries through oem to add the “DirectoryIndex” information but they kept discarding changes from each other….
Make sure the corresponding entries for the DirectoryIndex match the Redirect. The actual files don’t have to exist, Apache will look for them since that is the VirtualHost entry and redirect to the url specified in the Redirect.
Now when I enter http://host1.home.com I am taken to the Page specified in the redirect and when I enter http://host2.home.com I go to the page specified in that redirect.
Still have the logout issue “returning” to the default home page for the system. I'll be using a page with references to the existing sites with the addition of something that says “..if you’re done you may close your browser..”
HTH,
Dennis

Similar Messages

  • How to get virtual hosts to have their own default webapps?

    Is there a way to have several virtual hosts to have their own default
    webapps?
    I have five virtual hosts on my server, and I used to be able to deploy the
    webapps to the server, target a server and a virtual host, and then the
    default app to use. But I can't see that anymore in wls8.1. I looked
    around the web for some help, and all I could find was some reference to the
    <context-root> node. The problem with that solution is, when I put that in
    each of the webapps for the virtual hosts, only one gets the "/"
    context-root, and the rest can't use that.
    I would like to be able to have users just type out the virtual hosts URL to
    get access to the webapp. Surely a server as powerful as WebLogic can do
    that. I used to be able to do this in 7.0sp1. Any ideas? Thanks.

    Unfortunately you cannot split (nor merge) items purchased with an AppleID.  I am not clear on what you will have to do to allow them continued access to their music on your account.  Apple no longer has DRM protection in its music but then I also hear people have all kinds of authorization issues when trying to synch so it sounds like they still keep restrictions on what you can do with the music when trying to move it about.  I'll let somebody more experienced with syncing answer this part.  You may have to authorize their computers and devices to your AppleID to allow them all functionality with the music.
    Ideally you would have set them up with their own AppleIDs years ago but...
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card - http://support.apple.com/kb/HT2534 - only works for new accounts!

  • CT5760 - virtual-host in parameter-map not used in webauth redirect

    Hi all.
    I'll try posting my issue here before I post a TAC on this:
    Cisco CT5760 wireless controller running IOS-XE version 3.6.0.
    This issue is related to web authentication on an SSID with external web portal. It seems that the statement "virtual-host" in "parameter-map type webauth global" is not used as intended. I'll try to explain:
    When a user connects to an SSID with external web authentication enabled and the user opens a web browser, the user will get redirected to the external web portal for authentication. In this redirect URL we see the parameter "switch_url=http://1.2.3.4/login.html". The IP address 1.2.3.4 is, in this example, our virtual IP. But we have also configured "virtual-host" to be webauth.example.com. And in my opinion the "switch_url" parameter should be "switch_url=http://webauth.example.com/login.html". This is how it works on our old Cisco WiSM1 implementation.
    The reason why this is a problem is that the clients web browser will not accept the certificate installed on "http://1.2.3.4" because it is not issued with that IP address, only the hostname webauth.example.com. I know that it is possible to get certificates issued with an IP address (as long as it's not an RFC1918 IP address), but rumors say that many Certificate Authorities will stop issuing these soon, even with "real IPs". Therefore it is important that the redirect URL gets corrected.
    Does anyone disagree with me that this is a bug?

    Hi and thank you for your response.
    I feel that I need to clarify a few things. Here is my parameter-map config (a bit edited):
    parameter-map type webauth global
    virtual-ip ipv4 1.1.1.1 virtual-host webauth.example.com
    intercept-https-enable
    parameter-map type webauth webauth_external
    type webauth
    redirect for-login https://webauth-external.example.com/v2/login.html
    redirect portal ipv4 x.x.x.x
    So the problem here is that a web browser of the client gets the following redirect URL:
    https://webauth-external.example.com/v2/login.html?switch_url=https://1.1.1.1/login.html&redirect=http://www.cnn.com
    Then after a successful login on the external portal, the user gets redirected back to https://1.1.1.1/login.html. Here is the core of my problem. I think that the parameter "switch_url" should be with the name webauth.example.com since I configured it as the "virtual-host". This is the behavior we see with our old Cisco WiSM1.
    When the redirect goes to https://1.1.1.1/login.html the client complains about the certificate, because it is not issued to that IP address but to the hostname.
    I can verify that the client does not complain about this if I manually edit the redirect URL on the client to the following:
    https://webauth-external.example.com/v2/login.html?switch_url=https://webauth.example.com/login.html&redirect=http://www.cnn.com
    Then the redirect after authentication goes to https://webauth.example.com/login.html and the client accepts the certificate and everything is peachy.
    Do you see my problem? And yes, the virtual IP resolves to the name in DNS.

  • Virtual host (vod) map location of files

    I have my virtual host working in Adobe Interactive Server 4.0 however:
    inside of my virtual host:
    myvid1.domain.com
    /opt/adobe/fms/conf/_defaultRoot_/myvid1.domain.com/
    I have these directories & files
    -rw-r----- 1 fms fms 55318 Aug  2 15:12 Application.xml
    drwxr-xr-x 2 fms fms  4096 Aug  2 19:17 live
    -rw-r----- 1 fms fms 55318 Aug  2 12:49 Org_Application.xml.bak
    -rw-r----- 1 fms fms 15811 Aug  2 10:48 Org_Vhost.xml.bak
    -rw-r----- 1 fms fms 15960 Aug  2 19:25 Vhost.xml
    drwxr-xr-x 3 fms fms  4096 Aug  2 19:16 vod
    I have the vod and live directories
    however my virtual host is not pulling the data from the (vod directory)
    is there another file that needs to be changed to read from this directory?
    Any help would be great.
    thanks

    I was told by one of the Adobe people when we purchased the Interactive Server to copy the 'live' and 'vod' under the virtual host directory.
    Thank you for letting me know this is not needed here, I will get rid of them.
    The server pulls data from the following:
    /opt/adobe/fms/applications
    the 'live' and 'vod' directories the data is being pulled from here.
    The connection is successful, however I want each 'virtual host' to pull from its own data directory so the user data will be isolated and not viewable.
    How can I successfully change the 'vod' and 'live' directory on each virtual host this is my objective.
    So then I can change ownership of the 'vod' directory and create a username/password for the site owner to ftp data to the server.
    Lastly, is the main.asc (that is where the user name and password goes to prevent anyone from streaming live to the server?
    /opt/adobe/fms/applications/livepkgr
    [sysadmin@fmsvideo01  livepkgr]# ls -l
    total 24
    -rwxrwxrwx 1 fms fms  733 Jul 29 09:57 Application.xml
    drwxrwxrwx 3 fms fms 4096 Jul 29 09:57 events
    -rwxrwxrwx 1 fms fms 3941 Jul 29 09:57 main.asc     <-  -   -   -  -   (is this the security file)???
    What I want to do is incorporate this code to prevent unauthorized connections to publish live to the server.

  • 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:
    raresp

    Wow, 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.

  • 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"

  • Hiding the Port in a Virtual Host/Server-name Alias

    I need some guidance/help with the HTTP Server in AS 10g. We have several new Portal sites with a mix of forms, reports, and pl/sql server pages. We wish to make these services available from the internet via an aliased hole in the firewall.
    We have our public alias of Alias.CompanyWebsite.com mapped to the server-name, but we'd like to get the alias mapped to servername:port. I've tried to get this set up using virtual hosts in the HTTP server, but I'm having no luck. I'm also having trouble finding documentation on how to this.
    Is there a way to hide the server-name and port number via a virtual host (alias) in HTTP Server and/or Web Cache? If so, how do you accomplish this?
    Thanks,
    Josh

    Usually it is like this:
    outside name: www.acme.com
    oudside port: 80
    inside name: inside.acme.local
    inside port: 7778 (if you have a seperate machine for the middle tier)
    In the Webcache you'll need a site
    www.acme.com with port 80
    and an origin server
    inside.acme.local with port 7778
    Then create a site-to-server mapping from www.acme.com to inside.acme.local
    If your firewall listens to another name or does something with the ports you need to change the site accordingly.
    cu
    Andreas

  • 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 - Andy

    Your 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.

  • Tomcat 4.0.1 & Apache 1.3.22 & mod_webapp & virtual hosts

    I have succesfully been able to get tomcat 4.0.1 and apache 1.3.22 to use mod_webapp in both linux and windows.
    First problem:
    If I don't include a trailing slash, my webapp will not display. Just a 404. mod_dir works on the apache end. Also if I access my context thru tomcat on port 8080, without a trailing slash, it will put one in for me. Only when using mod_webapp, it doesn't seem to work.
    So...
    http://localhost/examples <--- doesn't work
    http://localhost/examples/ <--- works
    Second problem:
    How can I get virtual hosts working with mod_webapp? I've successfully been using mod_jk for a while now with virtualhosts, but there are no instructions on how to do this with mod_webapp. Has anyone been able to do this? Is it even possible? Is there a way to alias a /webapp to '/' or something?
    Any help/suggestions are appreciated,
    Tom

    Unfortunately, Tomcat 4.0.1 use the port number 8180 as default. Just after the installation, you need to test it by typing:
    http://localhost:8180/
    If the index page of Tomcat appears, then you succeed.
    On linux platform the webapps directory need to be downloaded for a separate package. For downloads, please visit here:
    http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/rpms/tomcat4-webapps-4.0.1-1.noarch.rpm
    Such webapps should be installed in {TOMCAT_HOME}/webapps. After all, just restart the Tomcat server (as I know) and see the results by typing:
    http://localhost:8180/
    Click on the link to see further examples.
    Good luck!

  • How to create a new virtual host under tomcat 4.1.x?

    hi all
    i need some help creating a new virtual host under tomcat 4.1.18!
    that's what i do:
    i'm using the web configuration, reacheable by typing "http://localhost:8080" and then clickign administration
    i create a new host
    name: www.class-site.it
    application base: webapps\class-site
    then i create the context:
    document base: webapps\class-site
    path: /
    and nothing works!!!
    anyone could help me?
    if needed i can also post the server.xml file
    thanx in advance for your help
    sandro

    It should look like this
    <Host name="myvhost.com" debug="0" appbase="/my/path/to/webapps" unpackWars="true">
    <Context path ="" docBase="ROOT" debug="0"/>
    </Host>
    This should be inside the <Engine> tags. You should be able to access a page by going to
    http://myvhost.com:8080/index.jsp
    Obviously you need index.jsp in /my/path/to/webapps/ROOT/index.jsp
    Hope that helps

  • OAS: The request did not specify a valid virtual host.

    Hi,
    we install the OAS 3.01 on our system (NT 4.0 sr 4 Worstation).
    we start the AdminListener with:
    oswctl start ADMIN
    the listener starts sucessfully.
    trying accessing on the ADMIN-Page with the IE 4.0
    (http://[IP-adress]:8888)
    the following message occured:
    The request did not specify a valid virtual host.
    any idea ???
    Thank
    Martin
    null

    Dennis Bourgeois (guest) wrote:
    : Peter Siket (guest) wrote:
    : : Martin Behrmann (guest) wrote:
    : : : Hi,
    : : : we install the OAS 3.01 on our system (NT 4.0 sr 4
    : Worstation).
    : : : we start the AdminListener with:
    : : : oswctl start ADMIN
    : : : the listener starts sucessfully.
    : : : trying accessing on the ADMIN-Page with the IE 4.0
    : : : (http://[IP-adress]:8888)
    : : : the following message occured:
    : : : The request did not specify a valid virtual host.
    : : : any idea ???
    : : : Thank
    : : : Martin
    : : Hi Martin,
    : : we learned that OAS 3.01 only accepts hostnames. The only
    way
    : to
    : : enable communication is to supply a hosts-file with the
    : : appropriate entry. I don't know why but so it works.
    : : Peter
    : Martin,
    : I'm running OAS 4.0.8 but here is a thought... In 4.0.8 if you
    go
    : to the network properties for your listner and add the IP
    address
    : there then it works. I also found that if you are using
    : something like a Cisco domain controller to do load balancing
    : you
    : will want to list the IP address of the Domain Controler in
    there
    : as well.
    : Dennis
    If you access using the hostname, this will be passed onto the
    Application Server in addition to the IP address. The
    Application Server will use the hostname details to determine
    the listener files to use under the $ORACLE_HOME/ows path. This
    means you can more than one set of OAS files and therefore in
    theory service two different hostname addresses mapped to the
    same IP address.
    Nigel.
    null

  • 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.

  • Virtual Host (localhost) + Wamp 2.1

    Hello
    I'm trying to test a local URL like xxxxx.localhost or loclahost / xxxxxxx
    This does not work.
    I read this post related to this topic:
    http://blogs.adobe.com/edgeinspect/2012/06/19/shadow-xip-io-virtual-hosts-workflow-simplif ied/
    But I do not know what to do.
    Thank you for your help.

    No change.
    Changes in the file are in bold and italics.
    # This is the main Apache HTTP server configuration file.  It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
    # In particular, see
    # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    # for a discussion of each configuration directive.
    # Do NOT simply read the instructions in here without understanding
    # what they do.  They're here only as hints or reminders.  If you are unsure
    # consult the online docs. You have been warned. 
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path.  If the filenames do *not* begin
    # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
    # with ServerRoot set to "C:/Program Files/Apache Software Foundation/Apache2.2" will be interpreted by the
    # server as "C:/Program Files/Apache Software Foundation/Apache2.2/logs/foo.log".
    # NOTE: Where filenames are specified, you must use forward slashes
    # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
    # If a drive letter is omitted, the drive on which Apache.exe is located
    # will be used by default.  It is recommended that you always supply
    # an explicit drive letter in absolute paths to avoid confusion.
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    # Do not add a slash at the end of the directory path.  If you point
    # ServerRoot at a non-local disk, be sure to point the LockFile directive
    # at a local disk.  If you wish to share the same ServerRoot for multiple
    # httpd daemons, you will need to change at least LockFile and PidFile.
    ServerRoot "c:/wamp/bin/apache/apache2.2.17"
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses.
    #Listen 12.34.56.78:80
    #Listen 80
    Listen  0.0.0.0:80
    # Dynamic Shared Object (DSO) Support
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available _before_ they are used.
    # Statically compiled modules (those listed by `httpd -l') do not need
    # to be loaded here.
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    LoadModule actions_module modules/mod_actions.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    #LoadModule auth_digest_module modules/mod_auth_digest.so
    #LoadModule authn_alias_module modules/mod_authn_alias.so
    #LoadModule authn_anon_module modules/mod_authn_anon.so
    #LoadModule authn_dbd_module modules/mod_authn_dbd.so
    #LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authn_file_module modules/mod_authn_file.so
    #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    #LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_host_module modules/mod_authz_host.so
    #LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule autoindex_module modules/mod_autoindex.so
    #LoadModule cache_module modules/mod_cache.so
    #LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule cgi_module modules/mod_cgi.so
    #LoadModule charset_lite_module modules/mod_charset_lite.so
    #LoadModule dav_module modules/mod_dav.so
    #LoadModule dav_fs_module modules/mod_dav_fs.so
    #LoadModule dav_lock_module modules/mod_dav_lock.so
    #LoadModule dbd_module modules/mod_dbd.so
    #LoadModule deflate_module modules/mod_deflate.so
    LoadModule dir_module modules/mod_dir.so
    #LoadModule disk_cache_module modules/mod_disk_cache.so
    #LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule env_module modules/mod_env.so
    #LoadModule expires_module modules/mod_expires.so
    #LoadModule ext_filter_module modules/mod_ext_filter.so
    #LoadModule file_cache_module modules/mod_file_cache.so
    #LoadModule filter_module modules/mod_filter.so
    #LoadModule headers_module modules/mod_headers.so
    #LoadModule ident_module modules/mod_ident.so
    #LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule include_module modules/mod_include.so
    #LoadModule info_module modules/mod_info.so
    LoadModule isapi_module modules/mod_isapi.so
    #LoadModule ldap_module modules/mod_ldap.so
    #LoadModule logio_module modules/mod_logio.so
    LoadModule log_config_module modules/mod_log_config.so
    #LoadModule log_forensic_module modules/mod_log_forensic.so
    #LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule mime_module modules/mod_mime.so
    #LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule negotiation_module modules/mod_negotiation.so
    #LoadModule proxy_module modules/mod_proxy.so
    #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    #LoadModule proxy_connect_module modules/mod_proxy_connect.so
    #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    #LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule setenvif_module modules/mod_setenvif.so
    #LoadModule speling_module modules/mod_speling.so
    #LoadModule ssl_module modules/mod_ssl.so
    #LoadModule status_module modules/mod_status.so
    #LoadModule substitute_module modules/mod_substitute.so
    #LoadModule unique_id_module modules/mod_unique_id.so
    #LoadModule userdir_module modules/mod_userdir.so
    #LoadModule usertrack_module modules/mod_usertrack.so
    #LoadModule version_module modules/mod_version.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule php5_module "c:/wamp/bin/php/php5.3.5/php5apache2_2.dll"
    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch. 
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    User daemon
    Group daemon
    </IfModule>
    </IfModule>
    # 'Main' server configuration
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition.  These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed.  This address appears on some server-generated pages, such
    # as error documents.  e.g. [email protected]
    ServerAdmin admin@localhost
    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    ServerName localhost:80
    # 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:/wamp/www/"
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    # First, we configure the "default" to be a very restrictive set of
    # features. 
    <Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
    </Directory>
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "c:/wamp/www/">
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs/2.2/mod/core.html#options
        # for more information.
        Options Indexes FollowSymLinks
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        AllowOverride all
        # Controls who can get stuff from this server.
    #   onlineoffline tag - don't remove
        Order Deny,Allow
    #   Deny from all
        Allow from all
    </Directory>
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    <IfModule dir_module>
        DirectoryIndex index.php index.php3 index.html index.htm
    </IfModule>
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    <FilesMatch "^\.ht">
        Order allow,deny
        Deny from all
        Satisfy All
    </FilesMatch>
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here.  If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    ErrorLog "c:/wamp/logs/apache_error.log"
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel debug
    <IfModule log_config_module>
        # The following directives define some format nicknames for use with
        # a CustomLog directive (see below).
        LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
        LogFormat "%h %l %u %t \"%r\" %>s %b" common
        <IfModule logio_module>
          # You need to enable mod_logio.c to use %I and %O
          LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
        </IfModule>
        # The location and format of the access logfile (Common Logfile Format).
        # If you do not define any access logfiles within a <VirtualHost>
        # container, they will be logged here.  Contrariwise, if you *do*
        # define per-<VirtualHost> access logfiles, transactions will be
        # logged therein and *not* in this file.
        CustomLog "c:/wamp/logs/access.log" common
        # If you prefer a logfile with access, agent, and referer information
        # (Combined Logfile Format) you can use the following directive.
        #CustomLog "logs/access.log" combined
    </IfModule>
    <IfModule alias_module>
        # Redirect: Allows you to tell clients about documents that used to
        # exist in your server's namespace, but do not anymore. The client
        # will make a new request for the document at its new location.
        # Example:
        # Redirect permanent /foo http://localhost/bar
        # Alias: Maps web paths into filesystem paths and is used to
        # access content that does not live under the DocumentRoot.
        # Example:
        # Alias /webpath /full/filesystem/path
        # If you include a trailing / on /webpath then the server will
        # require it to be present in the URL.  You will also likely
        # need to provide a <Directory> section to allow access to
        # the filesystem path.
        # ScriptAlias: This controls which directories contain server scripts.
        # ScriptAliases are essentially the same as Aliases, except that
        # documents in the target directory are treated as applications and
        # run by the server when requested rather than as documents sent to the
        # client.  The same rules about trailing "/" apply to ScriptAlias
        # directives as to Alias.
        ScriptAlias /cgi-bin/ "cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
        # ScriptSock: On threaded servers, designate the path to the UNIX
        # socket used to communicate with the CGI daemon of mod_cgid.
        #Scriptsock logs/cgisock
    </IfModule>
    # "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>
    # DefaultType: the default MIME type the server will use for a document
    # if it cannot otherwise determine one, such as from filename extensions.
    # If your server contains mostly text or HTML documents, "text/plain" is
    # a good value.  If most of your content is binary, such as applications
    # or images, you may want to use "application/octet-stream" instead to
    # keep browsers from trying to display binary files as though they are
    # text.
    DefaultType text/plain
    <IfModule mime_module>
        # TypesConfig points to the file containing the list of mappings from
        # filename extension to MIME-type.
        TypesConfig conf/mime.types
        # AddType allows you to add to or override the MIME configuration
        # file specified in TypesConfig for specific file types.
        #AddType application/x-gzip .tgz
        # AddEncoding allows you to have certain browsers uncompress
        # information on the fly. Note: Not all browsers support this.
        #AddEncoding x-compress .Z
        #AddEncoding x-gzip .gz .tgz
        # If the AddEncoding directives above are commented-out, then you
        # probably should define those extensions to indicate media types:
        AddType application/x-compress .Z
        AddType application/x-gzip .gz .tgz
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php .php3
        # AddHandler allows you to map certain file extensions to "handlers":
        # actions unrelated to filetype. These can be either built into the server
        # or added with the Action directive (see below)
        # To use CGI scripts outside of ScriptAliased directories:
        # (You will also need to add "ExecCGI" to the "Options" directive.)
        #AddHandler cgi-script .cgi
        # For type maps (negotiated resources):
        #AddHandler type-map var
        # Filters allow you to process content before it is sent to the client.
        # To parse .shtml files for server-side includes (SSI):
        # (You will also need to add "Includes" to the "Options" directive.)
        #AddType text/html .shtml
        #AddOutputFilter INCLUDES .shtml
    </IfModule>
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type.  The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #MIMEMagicFile conf/magic
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://localhost/subscription_info.html
    # EnableMMAP and EnableSendfile: On systems that support it,
    # memory-mapping or the sendfile syscall is used to deliver
    # files.  This usually improves server performance, but must
    # be turned off when serving from networked-mounted
    # filesystems or if support for these functions is otherwise
    # broken on your system.
    #EnableMMAP off
    #EnableSendfile off
    # Supplemental configuration
    # The configuration files in the conf/extra/ directory can be
    # included to add extra features or to modify the default configuration of
    # the server, or you may simply copy their contents here and change as
    # necessary.
    # Server-pool management (MPM specific)
    #Include conf/extra/httpd-mpm.conf
    # Multi-language error messages
    #Include conf/extra/httpd-multilang-errordoc.conf
    # Fancy directory listings
    #Include conf/extra/httpd-autoindex.conf
    # Language settings
    #Include conf/extra/httpd-languages.conf
    # User home directories
    #Include conf/extra/httpd-userdir.conf
    # Real-time info on requests and configuration
    #Include conf/extra/httpd-info.conf
    # Virtual hosts (STE)
    #Include conf/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    #Include conf/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf
    # Various default settings
    #Include conf/extra/httpd-default.conf
    # Secure (SSL/TLS) connections
    #Include conf/extra/httpd-ssl.conf
    # Note: The following must must be present to support
    #       starting without SSL on platforms with no /dev/random equivalent
    #       but a statically compiled-in mod_ssl.
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    #NameVirtualHost 127.0.0.1
    #<VirtualHost 127.0.0.1>
    #        ServerName localhost
    #        DocumentRoot "C:\wamp\www"
    #</VirtualHost>
    NameVirtualHost 192.168.1.98
    <VirtualHost 192.168.1.98>
            ServerName 192.168.1.98
            DocumentRoot "C:\wamp\www"
    </VirtualHost>
    Include "c:/wamp/alias/*"

  • Configurations, instances, nodes, virtual hosts, clusters ... oh my!

    Perhaps I am being dense, but I am having some trouble wrapping my head around the different "objects" of a SJS web server 7 installation. It is not clear to me how they relate/map to each other and to real processes on the server (logical architecture, mapped to physical architecture).
    I had the same difficulty with WebSphere App Server 6 terminology until, with one fell swipe of the Sword of Fundamental Truthiness, a very brilliant instructor cleared it up for me when he said (using WAS6 parlance) "a 'profile' is the on-disk configuration, files etc, of a node. 1 profile = 1 node. The node is the run-time object describe by the profile." Bingo. Everything (nodes, servers, cells, profiles) made sense after that.
    I've been through the docs, but it is still not clear to me. Any lucid descriptions would be appreciated. There's configurations, nodes, instances, virtual hosts, listeners, clusters.
    Is a cluster a collection of nodes? Or instances? Virtual server vs. instance? A "configuration" is the on-disk configuration/files etc describing a ???" Maybe there is a nice diagram out there someplace that maps all these bits together?
    Thanks,
    Mark

    Thanks all. Like I said, I've read the docs. They are not terribly clear, at least not to me, but maybe I am just being dense. Some detailed diagrams would be useful.
    [In the text below, I use leading CAPS to differentiate between generic use of a term and Web Server's use of a term ... instance vs. Instance for example.]
    To say "an Instance is a Configuration deployed to a Node" doesn't make any sense to me, since an "Instance" is a configuration item within the Configuration. Maybe it is technically correct
    I think I have the following correct:
    * A Configuration defines/describes an HTTP service that you wish to provide. It ties together all the elements required to define that service: ports to listen on, SSL or no SSL, document roots, access control and so on.
    * You deploy Configurations to Nodes. You define which Nodes to deploy the Configuration to using the Instances tab within the Configuration. The Instance is the run-time representation within a Node of the Configuration (as the Node is the run-time representation within a Cell of the on-disk Profile in WebSphere). You may only have one Instance of a Configuration per available Node. If you have multiple Configurations, you can deploy one Instance of each Configuration to a single Node. An important point here is that Instances really have nothing to do with Virtual Hosts or HTTP Listeners. They are related to Configurations. Configurations have a one-to-(potentially)-many relationship with Instances. Instances within a single Configuration have a one-to-one relationship with Nodes.
    * A Listener listens for incoming HTTP requests on a single port. You may have multiple Listeners per Configuration. A Listener forwards incoming HTTP requests to the "appropriate" Virtual Host.
    * You can map a single Listener (therefore a single port) onto multiple Virtual Hosts, (Why would you do this?) and of course, multiple Listeners onto a single Virtual Host. Listeners and Virtual Hosts have a many-to-many relationship.
    * A virtual host is really the definition of the "real HTTP service", by which I mean it defines the doc root, access controls etc.
    I think I have it straight. I apologize if this is amateur. I am hoping to replace all my Apache servers with SJSWS and need to have all my ducks lined up to make the argument for doing so.
    Thanks again,
    Mark

  • Virtual hosts problem

    I have an interesting problem. Running CF 7.02
    standard on Windows using Apache 2.2 as the web server. I have
    multiple name virtual hosts set up on this server. Let's say I have
    two sites A and B. A user requests
    http://A/default.cfm. They get
    http://B/default.cfm but the images
    are missing since the server is looking for B/default.cfm's images
    in A. This seems to occur on all sites where there is a request to
    a page with the same relative path to the webroot as another site
    like webroot/default.cfm and a couple of other generic functions
    duplicated between sites. Also, thankfully, this behavior does not
    occur on what I consider the primary site running CF code or other
    virtual sites that have no CF.
    The CFIDE mapping in the CF Administrator was established in
    the webroot of this primary CF site. From reviewing the access logs
    for the different sites, it appears that there is an http request
    made followed by access to the CFIDE directory. Since this is
    mapped within the webroot of the primary website, it seems like it
    is accessing this sites default.cfm instead of the one from the
    correct virtual site. The images for this page are missing because
    it is looking for the files in the correct virtual site.
    The CFIDE mapping for CF MX Standard is set up on
    installation and is not configurable through the Administrator so I
    have not tried to change this to a different location. Has anyone
    else seen a problem like this?
    Brian

    In the administrator in Caching, make sure Cache web server
    paths is unchecked. If it is selected, uncheck it and restart CF.
    You can also set this in jrun.xml under the
    jrun.servlet.jrpp.JRunProxyService by adding:
    <!-- set this to false for multi-hosted sites -->
    <attribute
    name="cacheRealPath">false</attribute>

Maybe you are looking for

  • SSO using Kerberos with SAP Logon Tickets

    Hi, I am creating a Repository Manager for the Portal Knowledge Management System and I want to use SSO to a backend IIS application and I have a few questions here.  I have a three tiered architecture.  A.  The presentation tier (SAP Portal which ha

  • How to automatically login multiple users?

    I've got a good size family sharing an iMac. When the iMac has to restart, I'd like to not just autologin to my account, but also have my wife's account and oldest child's account startup as well so that fast user switching is actually...well fast. R

  • IPod error message when trying to sync contacts

    Hey all, When I try syncing my iPod Touch, it comes up with the error message: "iTunes could not sync contacts to the iPod because the iPod disconnected." When I turn off contact syncing, the sync works just fine, but then all of my contacts remain o

  • Vendor Evaluation Period Selection

    Dear Sir, We use ME63 for Vendor Evaluation , here we do not find any option to give  the period over which Vendor should be Evaluated . We have a requirement that Vendor Evaluation must be based upon the Purchases made during period 1-DEC-2007 to 31

  • Additional FAQs and Wikies (Updated 16th of November 2014)

    Additional FAQs and Wikies (Updated 16th of November 2014) The wikis listed below are all unofficial documentation. They have been written and adapted to tackle the problems of the Dell Microsoft OS Forum by me, Philip Yip, the Dell Community Rocksta