Adding more virtual hosts in Apache

Hi, When I want to add more virtual hosts to Apache in XAMPP. How does the code looks. Can some one please give an example with 3 virtual hosts.
Windows Vista 32.
Is it only adding:      <VirtualHost *:80>
                              DocumentRoot c:/vhosts/siteA
                              ServerName siteA
                              </VirtualHost>
                              <VirtualHost *:80>
                              DocumentRoot c:/vhosts/siteB
                              ServerName siteB
                              </VirtualHost>                 
                              <VirtualHost *:80>
                              DocumentRoot c:/vhosts/siteC
                              ServerName siteC
                              </VirtualHost>
Thanks!

As it says in step 3 of my tutorial:
On a separate line, enter 127.0.0.1, followed by some space and the name of the virtual host you want to register. For instance, to set up a virtual host called phpdw, enter the following:
127.0.0.1   phpdw
So, if you already have this:
127.0.0.1     localhost
::1           localhost
It become this:
127.0.0.1     localhost
::1           localhost
127.0.0.1     phpdw

Similar Messages

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

    Following 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

  • Setting up Virtual Host in Apache for UCM Sites

    As the subject says: I am trying to setup virtual hosts in apache for UCM Sites. Now we are trying to set it up so for every site in UCM we have one ip address. So on the browser when I see someone typed in "http://www.myfirstsite.com" (through the magic of dns they get routed to my server). Once they are at the server in Apache I want to setup virtual hosts so I can redirect user to the proper site residing in UCM.
    Now, it is possible for me to access the sites by doing this "http://myservername/myfirstsite". But what I want to setup in Apache is that when someone types in "http://www.myfirstsite.com" they see which ever site I want them to see in UCM. But mann I just don't know what would be the document root or how would I go about getting the users to SEE what I want them to see. Can anyone help me with this please? Thanks in advance.

    You should be able to stick with the default apache config where it will answer for any hostname and create virtual hosts for each instance with the document root appropriate for that CS instance. Then you should be able use rewrite rules to direct users to the appropriate virtual host depending on what URL they access the server with. Check out the documentation for Apache around mod_rewrite: http://httpd.apache.org/docs/current/rewrite/

  • Question about Virtual Hosts with Apache 2

    Hi,
    I have a mac mini with 10.5.4 and I was wondering if it is possible to host two websites on this one computer. What I mean by this is I have an ip address 12.34.56.78 that points to the mac mini.
    I also have two domain names, say example1.com and example2.com, each with total DNS control. Is it possible to point both domains to 12.34.56.78 and have different pages show. For example when example1.com is loaded, the file /Library/WebServer/Documents/example1/index.html is loaded. When example2.com is loaded, /Library/WebServer/Documents/example2/index.html is loaded.
    I have tried to do this with virtual hosts, but I can't seem to get it to work. I seem to have permission problems with apache 2 and I get the forbidden error.
    If anyone knows if this is possible, and how to do it that would be of great help. Thanks.

    Awesome, thanks David! I look forward to reading this. I've
    just been
    "dealing" with it. :O)
    Jon
    "David Powers" <[email protected]> wrote in message
    news:elh9uq$el0$[email protected]..
    >I have written a short tutorial on setting up virtual
    hosts in Apache 2.2
    >on Windows. I wrote it as an update for readers of
    "Foundation PHP for
    >Dreamweaver 8", but it contains full instructions, so
    doesn't require a
    >copy of my book to be able to follow it.
    >
    >
    http://foundationphp.com/tutorials/apache22_vhosts.php
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

  • How to set up Virtual Hosts in Apache (OS X Server 10.9)

    I want to host more than one website on my mac mini with OS X Server 10.9
    1.) I edited /etc/apache2/httpd.conf for uncommenting the include line:
    # Virtual hosts
    Include /private/etc/apache2/extra/httpd-vhosts.conf
    2.) I edited /etc/apache2/extra/httpd-vhosts.conf and added:
    <VirtualHost *:80>
        ServerName cammino-al-dente.net
        ServerAlias www.cammino-al-dente.net
        DocumentRoot "/Library/Server/Web/Data/Sites/cammino-al-dente.net"
        ErrorLog "/private/var/log/apache2/cammino-al-dente.net.com-error_log"
        CustomLog "/private/var/log/apache2/cammino-al-dente.net-access_log" common
        ServerAdmin [email protected]
    </VirtualHost>
    <VirtualHost *:80>
        ServerName sutterer.net
        ServerAlias www.sutterer.net
        DocumentRoot "/Library/Server/Web/Data/Sites/sutterer.net"
        ErrorLog "/private/var/log/apache2/sutterer.net-error_log"
        CustomLog "/private/var/log/apache2/sutterer.net-access_log" common
        ServerAdmin [email protected]
    </VirtualHost>
    3.) then I edited /etc/hosts/ to spoof my IP address to the domains:
    127.0.0.1
    localhost
    127.0.0.1
    cammino-al-dente.net
    127.0.0.1
    www.cammino-al-dente.net
    127.0.0.1
    sutterer.net
    127.0.0.1
    www.sutterer.net
    255.255.255.255
    broadcasthost
    ::1        
    localhost
    fe80::1%lo0
    localhost
    Then I restarted Apache...But nothing happens :-(
    I could reach my website cammino-al-dente.net only by using the Server Default-entry, chancing the entry to my cammino...-folder
    Regards
    Fred Mario

    In the /etc/apache2/extra/httpd-vhosts.conf file check this line exists:
    NameVirtualHost *:80
    This solve same issue for me.
    I hope it's help.

  • Virtual hosts in Apache

    I have followed the 'Powers doctrine' in defining virtual
    hosts for my
    Apache installation. This is the relevant section in the
    httpd.conf file
    <VirtualHost *:80>
    DocumentRoot "C:/Program Files/Apache
    Group/Apache2/htdocs/wild"
    ServerName wild
    </VirtualHost>
    <VirtualHost *:80>
    DocumentRoot "C:/Program Files/Apache
    Group/Apache2/htdocs/practical"
    ServerName practical
    </VirtualHost>
    <VirtualHost *:80>
    DocumentRoot "C:/Program Files/Apache
    Group/Apache2/htdocs/navenewell"
    ServerName nni
    </VirtualHost>
    Yet none of them seem to work. When I browse to
    http://wild, for example, I
    get a not found error. I still need to use
    http://localhost/wild to get
    there. What's that about?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================

    no problem glad I could return the help you have given me in
    the past
    Dave Buchholz
    I-CRE8
    www.i-cre8.co.uk
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    Hmm - good idea.... I believe that cracked it.
    Thanks, Dave!
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Dave Buchholz" <[email protected]>
    wrote in message
    news:[email protected]...
    > have you added the entries to the windows hosts file ?
    >
    > --
    > Dave Buchholz
    > I-CRE8
    > www.i-cre8.co.uk
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:[email protected]...
    > Dave:
    >
    > I have now added that line to httpd.conf, and restarted
    Apache, but it's
    > still not working as I would expect it to.
    >
    > The documentation mentions a command line I can use with
    Apache to check
    > the
    > virtual server configuration, but it's *nix, referring
    to
    > /usr/local/apache2/bin/httpd -S. This would be handy,
    but I do not see an
    > httpd file or folder within the Apache2/bin folder on my
    XPHome system.
    > Any
    > ideas?
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Dave Buchholz"
    <[email protected]> wrote in message
    > news:[email protected]...
    >> Murray,
    >>
    >> you don't appear to have actually defined the
    localhost folder, I use
    >> apache
    >> 1.3 and this is how my http.conf file looks:
    >>
    >> NameVirtualHost 127.0.0.1
    >>
    >> <VirtualHost 127.0.0.1>
    >> DocumentRoot "C:\Program Files\Apache
    Group\Apache\htdocs"
    >> ServerName localhost
    >> </VirtualHost>
    >>
    >> <VirtualHost 127.0.0.1>
    >> DocumentRoot "C:\Program Files\Apache
    Group\Apache\htdocs\i-cre8"
    >> ServerName i-cre8.local
    >> </VirtualHost>
    >>
    >> <VirtualHost 127.0.0.1>
    >> DocumentRoot "C:\Program Files\Apache
    >> Group\Apache\htdocs\standardsitephp
    >> ServerName standardsitephp.local
    >> </VirtualHost>
    >>
    >> <VirtualHost 127.0.0.1>
    >> DocumentRoot "C:\Program Files\Apache
    Group\Apache\htdocs\xhtmlsitephp
    >> ServerName xhtmlsitephp.local
    >> </VirtualHost>
    >>
    >> <VirtualHost 127.0.0.1>
    >> DocumentRoot "C:\Program Files\Apache
    Group\Apache\htdocs\cricketclub
    >> ServerName cricketclub.local
    >> </VirtualHost>
    >>
    >> I use the suffix .local on all my localhost sites to
    indentify them. I
    >> used
    >> this tutorial
    http://apptools.com/phptools/virtualhost.php
    as the basis
    >> for
    >> my set-up if that helps.
    >>
    >> --
    >> Dave Buchholz
    >> I-CRE8
    >> www.i-cre8.co.uk
    >>
    >>
    >
    >
    >

  • Using Name-based Virtual Hosts on Apache

    Hi!
    We have Novell SBS 6.5, a tree with 3 servers:
    1. Border Manager sp1
    2. GroupWise (NAT) sp1
    3. WEB (NAT) sp6 - Apache 2, MySQL, PHP.
    My site is at http://www.kalmanovitz.co.il.
    I want to try to add a new sub domain and\ or a Domain using Name-based Virtual Hosts (2 or more domains on same IP number).
    1. My BM server use SSL. Will it influence SSL? How?
    2. What I need to change on my servers?
    3. What my ISP need to update\change on his system?
    4. Can i try to experience the changes without my ISP intervention?
    Please help.
    TIA
    Nanu

    Nanu Kalmanovitz,
    > 1. My BM server use SSL. Will it influence SSL? How?
    Not protocol wise, but you will get asecurity warning that certificate
    and host names do not match.
    > 2. What I need to change on my servers?
    Httpd.conf
    > 3. What my ISP need to update\change on his system?
    DNS, pointers to the domains
    > 4. Can i try to experience the changes without my ISP intervention?
    >
    Yes. Add the names to the workstation's hosts-file
    - Anders Gustafsson, Engineer, CNE6, ASE
    NSC Volunteer Sysop
    Pedago, The Aaland Islands (N60 E20)
    Novell does not monitor these forums officially.
    Enhancement requests for all Novell products may be made at
    http://support.novell.com/enhancement
    Using VA 5.51 build 315 on Windows 2000 build 2600

  • Virtual hosts in apache defaults to first host

    On my MacMini I have set up apache to use virtual hosts I and use a mounted USB drive to host the sites (in my case /Volumes/Work1/www as root). I have configured 3 sites and switch on the subdomain (in my case and in order in the virtual hosts file: hbc1.helsted.net, consulting.helsted.net, store.helsted.net).
    On the MacMini I have inserted the urls in the hosts file to point at localhost for two of the entries and all work beautifully on the MacMini for those two. Anywhere else (and from the MacMini on the one not in the hosts file) the system defaults to the first entry in the virtual hosts config file (as the documentation says it will if the url is not recognized) which is displayed in the browser and which has entries in the log file.
    After some time the server occasionally refuses to serve the pages and I get a 403 error (access denied). Again not on the MacMini with the hosts file entries. Looking at the error log from apache in that case it appear that it has got the full url served as it is in the log file.
    Restarting the web share removes the 403 error (until next time).
    Any hints on how to to resolve my two issues?

    Thanks for the reply, my vhosts config file contains the following (note that the viewer in the forum browser removes the initial #es on the comment lines):
    # Virtual Hosts
    # If you want to maintain multiple domains/hostnames on your
    # machine you can setup VirtualHost containers for them. Most configurations
    # use only name-based virtual hosts so the server doesn't need to worry about
    # IP addresses. This is indicated by the asterisks in the directives below.
    # Please see the documentation at
    # <URL:<a class="jive-link-external-small" href="http://">http://httpd.apache.org/docs/2.2/vhosts/>
    # for further details before you try to setup virtual hosts.
    # You may use the command line option '-S' to verify your virtual host
    # configuration.
    # 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>
    ServerAdmin [email protected]
    DocumentRoot "/Volumes/Work1/www/hbc1"
    ServerName hbc1.helsted.net
    ErrorLog "/private/var/log/apache2/hbc1.helsted.net-error_log"
    CustomLog "/private/var/log/apache2/hbc1.helsted.net-access_log" common
    </VirtualHost>
    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/Volumes/Work1/www/consulting"
    ServerName consulting.helsted.net
    ErrorLog "/private/var/log/apache2/consulting.helsted.net-error_log"
    CustomLog "/private/var/log/apache2/consulting.helsted.net-access_log" common
    </VirtualHost>
    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/Volumes/Work1/www/store"
    ServerName store.helsted.net
    ErrorLog "/private/var/log/apache2/store.helsted.net-error_log"
    CustomLog "/private/var/log/apache2/store.helsted.net-access_log" common
    </VirtualHost>
    <Directory /Volumes/Work1/www>
    Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    Message was edited by: skhelsted

  • CFCs and virtual hosts on Apache

    I'm running Apache 2.0.x and using a virtual host to remap
    the document root to a separate drive (d:\public\test)
    When I try to use remoting, I get the error:
    [RPC Fault faultString="File not found:
    C:\WebServer\Apache2\htdocs\test\test.cfc"
    faultCode="Server.Processing" faultDetail="null"]
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()
    Now the htdocs directory is the primary document root for the
    server, but this is being overridden by the specific document root
    change in the virtual host entry. Regular CF pages that reference
    this component work fine, but flex is throwing a fit.
    Any ideas?
    Chris

    try cross domain xml in server root..may be it will work.
    have a look on cross domain help page :
    http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

  • Problem getting db connection when using virtual hosts / tomcat / apache

    Hello,
    I have servlets that use a connection pool to query an oracle database. When running Tomcat 5.5 stand-alone, everything works fine. But the same servlets do not work when running them on a server tomcat and apache integrated with jk and using virtual hosts. The problem is the connection pool, because servlets not using the pool also work fine.
    Does anybody have any idea why this is happening?
    Thank you.
    Logan

    Hi Saish,
    Thank you for helping.
    Try connecting with the machinen's IP, if this is a viable strategy for you (meaning the database IP is not dynamically assigned).I'm not sure how to do this. Here is a copy of my context.xml:
    <Context path="" docBase="" debug="0">
    <Resource name="jdbc/CraigsList" auth="Container"
    type="javax.sql.DataSource" username="craigslist" password="xxxxxx"
    driverClassName="oracle.jdbc.driver.OracleDriver"
    url="jdbc:oracle:thin:@localhost:1521:GRI"
    maxActive="8" maxIdle="4"/>
    </Context>
    Does this help?
    Thanks.

  • Lost Virtual Hosts After Apache Upgrade

    I have migrated my server from 10.4.11 to 10.5.1. The upgrade appeared to go fine but the virtual hosts I have disappeared. I tried using the 1.3 to 2.2 Apache conversion process but that failed. I tried cleaning up the site files, modified the /var/db/.ApacheVersion file to 2 and then tried copying httpd.conf and sites from a working version of a clean install of 10.5 where I had gotten the virtual hosts to work. I am at a loss. I would be willing to do a clean install of Apache 2 but I am not sure how to do that.
    Interestingly, the mailman pages work for the virtual hosts but no matter what I seem to do, the other web pages for the different sites default to the "Documents" directory.
    Thanks for any help you can provide.
    Paul

    The plot thickens...
    When I do a ps -ax, I see the following processes:
    untitled text 6:16: 47 ?? 0:01.29 /usr/sbin/httpd-1.3 -F -D LAUNCHD
    untitled text 6:43: 102 ?? 0:00.13 /usr/sbin/httpd-1.3 -F -D LAUNCHD
    untitled text 6:80: 325 ?? 0:00.13 /usr/sbin/httpd-1.3 -F -D LAUNCHD
    untitled text 6:86: 529 ?? 0:00.13 /usr/sbin/httpd-1.3 -F -D LAUNCHD
    untitled text 6:94: 2042 ?? 0:01.61 /usr/sbin/httpd -D FOREGROUND
    untitled text 6:104: 2079 ?? 0:00.60 /usr/sbin/httpd -D FOREGROUND
    untitled text 6:105: 2082 ?? 0:00.55 /usr/sbin/httpd -D FOREGROUND
    Also, looking in Console, it appears that errors are being logged in the /var/httpd/ error and access log files and not in the log files assigned by ServerAdmin /var/log/apache2... Though ServerAdmin suggests that I am running 2.2, it appears that I may still be running 1.3. Any suggestions?

  • I need help with Virtual Hosting on Apache Tomcat 6

    Morning all,
    I have Tomcat 6 on Windows XP and I've been trying to have multiple domains work on it without success.
    I have the following configuration in my server.xml
    <Host name="www.myapp1.com" appBase="webapps/myapp1"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    <Alias>myapp1.com</Alias>
    </Host>
    <Host name="www.myapp2.com" appBase="webapps/myapp2"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    <Alias>myapp2.com</Alias>
    </Host>
    +... only the following code works+
    <Host name="www.myapp.com" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
    </Host>
    I have been looking online for solutions but nothing has worked so far
    Can someone please tell me what I am doing wrong. I am not fronting the container with Apache (http://www.myapp.com takes me to my default page).

    Hi:
    The only way to upgrade the graphics adapter in any HP consumer notebook (Intel or AMD) that has been made in the last several years is to completely replace the motherboard for one with better graphics (if one exists for your model).
    This procedure is normally much too expensive to make such an upgrade worthwhile.
    A person would be better off selling their current notebook and buying a new one with the graphics they want.

  • Apache server - tomcat - jk, virtual hosts, database/context.xml question?

    Hello,
    I have an web application that runs perfectly in Tomcat 5.5 when running tomcat stand-alone.
    I also have Apache HTTP server integrated with Tomcat using the jk connector and running virtual hosts in a mod_jk.conf file, which is working for html files. When I run apache and tomcat at the same time, the jsp opens but the servlet cannot get a database connection.
    To run virtual hosts and apache and tomcat, I added this host container to server.xml:
    <Host name="www.mydomain.com" debug="0" appBase="d:/WebApps/mydomain"
    unpackWARs="true" autoDeploy="true">
    <Context path="" docBase="" debug="0"/>
    </Host>
    Does anybody see anything wrong with this? Is there some reason why the context.xml (which contains the database info) is not being read?
    Any suggestions are greatly appreciated.
    Thank you,
    Logan

    Hi,
    In the docmentation of Tomcat 5.x is written that is not recommended to put <context> element in the server.xml file. Create a file in CATALINA_HOME/conf/Catalina/www.mydomain.com/ with an XML extension. For example context.xml. In files like this you should write all of your <context> elements.

  • OAM Webgate installation on APache with multiple Virtual hosts?

    Hi I have customer who is having One Single APache web server and having two different applications configured as different Virutal hosts in the single server.
    requirement is , Each application should be protected by OAM Webgate and each application have seperate session configurations. So, How can we handle this ..
    I am thinking to install webgate for each application virutal Host to fulfill this requirement but i am worrying about the Webgate installation since both applications on single Apache server and single httpd.conf file.
    Really appreciated if anyone suggest me the approach of how to fulfil this requirement.
    -Srini
    Edited by: user567398 on Jun 17, 2011 3:00 PM

    Hi Srini,
    You can use a single WebGate - in the "Preferred HTTP Host" setting for the WebGate in the Access System Console, specify SERVER_NAME. OAM will then use the name of the Virtual Host (as returned by Apache) when evaluating policies, and you can have different policies by having different Host Identifiers for the two (or more) virtual hosts.
    Regards,
    Colin

  • Apache, virtual hosts & cgi-bin

    Hello all,
    I have an AL server running apache, qmail, vpopmail (&mysql), bincimap, squirrelmail.
    I've setup apache to have 2 virtual hosts :
    www.mydomain.com (with docroot /home/httpd/html/www.mydomain.com) as http & mail.mydomain.com (with docroot /home/httpd/html/mail.mydomain.com) as https.
    Everything is working fine so far, except when I ask for http://mail.mydomain.com (not https) it shows the contents of www.mydomain.com. Minor annoyance, but I'd like to fix it some time. Any suggestions ?
    My main problem is that I want to install qmailadmin in mail.mydomain.com, so I can access it via ssl, so I installed it as /home/httpd/cgi-bin/qmailadmin & made a symlink to /home/httpd/html/mail.mydomain.com/cgi-bin.
    When I try to access it (https://mail.mydomain.com/cgi-bin/qmailadmin), I get "500 Internal server error" & in error_log:
    [error] [client MY_IP] Premature end of script headers: qmailadmin
    and in ssl_request_log :
    [14/Jan/2004:17:00:45 +0200] MY_IP TLSv1 RC4-MD5 "GET /cgi-bin/qmailadmin HTTP/1.1" 674
    I've never setup cgi-bin in virtual hosts before & it's driving me nuts, any suggestions ?
    btw, qmailadmin works fine on my home server without any virtual hosts in apache...

    This isn't perfect, but it's probably pretty close to what you're looking for.  You may need to play around with some <Directory/> tags for your cgi-bin directory, or (as the example illustrates below), just put your cgi scripts in the document root for mail.mydomain.com.
    <Directory "/home/httpd/html/www.mydomain.com">
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    <Directory "/home/httpd/html/mail.mydomain.com">
    AllowOverride All
    Options ExecCGI
    Order allow,deny
    Allow from all
    </Directory>
    NameVirtualHost 192.168.1.114:80
    NameVirtualHost 192.168.1.114:443
    <VirtualHost www.mydomain.com:80>
    SSLDisable
    Servername www.mydomain.com
    ServerAdmin [email protected]
    DocumentRoot /home/httpd/html/www.mydomain.com
    DirectoryIndex index.html index.htm index.cgi
    ErrorLog logs/www.mydomain.com_error.log
    CustomLog logs/www.mydomain.com_access.log combined
    </Virtualhost>
    # redirect 80 to 443
    <VirtualHost mail.mydomain.com:80>
    SSLDisable
    Servername mail.mydomain.com
    Redirect / https://mail.mydomain.com
    </Virtualhost>
    <VirtualHost mail.mydomain.com:443>
    SSLEnable
    SSLCertificateFile /home/httpd/conf/mail.mydomain.com.pem
    ServerName mail.mydomain.com
    ServerAdmin [email protected]
    DocumentRoot /home/httpd/html/mail.mydomain.com
    ErrorLog logs/mail.mydomain.com_error.log
    CustomLog logs/mail.mydomain.com_access.log combined
    </Virtualhost>
    hth,
    farphel

Maybe you are looking for

  • How do I install Win 8 on Satellite C850 following HDD failure?

    I have a PC repair business, and a customer has brought me a Satellite C850-1KN laptop which has had a catastrophic hard drive failure (just clicking sound coming from the drive.) I replaced the hard drive and tried booting from a Windows 8 DVD, by c

  • Iphone 5 to tv usb

    I have just purchased my new I phone 5S and want to buy the right cable or adapter to connect it to my TV. My television has both USB and HDMi ports but looking online if I buy the apple lightning adapter (£40) and a HDMi cable it works out quite exp

  • Material documents can not be printed

    hi!! I see that material documents can not be printed material in a storage, we need to print at least the original and copies I mean to be printed two copies when you post the transaction MIGO_TR. When performing the movement I leave the check box a

  • How to update Material group code in contracts ?

    Hi, We implemented SAP in my company a year ago. AS you can imagine we need to do some cleaning now we know how it works... We have change the Material Group code for over 1100 items. Thing is, the material group code in the contracts do not update a

  • SMTP for GMAIL

    We recently switched from our old mail server to GMAIL, and all of my scheduled Crystal Reports died.  Can anyone, PLEASE, tell me what I need to put in the Email (SMTP) Destination fields to make it work again?  I have been getting an SMTP_E_TCPSOCK