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

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/

  • 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

  • Apache Bridge and Virtual Hosts?

    Hi,
              I'm running Apache 3.1.19 with the bridge to two clustered 'Weblogic
              5.1sp8's - Apache is configured for several virtual hosts.
              Is it better to run several instances of Apache each with its' own bridge -
              not entirely sure how the bridge is written/operating so the concern is
              that if the bridge blocks for one virtual host, it does so for all?
              How can I find out more about the bridge and how it's written? I've also
              heard mention of being able to configure the bridge to do weighted
              load-balancing rather than simple round-robin - can't find this in the
              bridge documentation though - can anyone help?
              Thanks!
              yrs James
              

              James,
              As my understanding of Apache plugin modules, it only supports
              round-robin load balancing at this time.
              Brian
              "pipex news" <[email protected]> wrote:
              >Hi,
              >
              >I'm running Apache 3.1.19 with the bridge to two clustered
              >'Weblogic
              >5.1sp8's - Apache is configured for several virtual hosts.
              >
              >Is it better to run several instances of Apache each with
              >its' own bridge -
              >not entirely sure how the bridge is written/operating
              > so the concern is
              >that if the bridge blocks for one virtual host, it does
              >so for all?
              >
              >How can I find out more about the bridge and how it's
              >written? I've also
              >heard mention of being able to configure the bridge to
              >do weighted
              >load-balancing rather than simple round-robin - can't
              >find this in the
              >bridge documentation though - can anyone help?
              >
              >Thanks!
              >
              >yrs James
              >
              >
              >
              >
              

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

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

    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 Mangano

  • Apache mod_rewrite, htaccess and virtual host

    Does not appear that the htaccess file is doing anything at all; I tested with a 301 redirect and even put some random nonsense in it in hopes to provoke a server error and nothing.
    httpd.conf : http://pastebin.com/36qFCg5q
    httpd-vhosts.conf
    <VirtualHost *:80>
        DocumentRoot "/Users/jwindhall/Railo/tomcat/webapps/ROOT/dentist_app"
        ServerName xxx.com
        ServerAlias www.xxx.com
    <Directory "/Users/jwindhall/Railo/tomcat/webapps/ROOT/dentist_app">
        Options All Includes Indexes
        Order allow,deny
        Allow from all
        AllowOverride All
    </Directory>
    ProxyRequests Off
    <Proxy *>
    Options All Includes Indexes
    Order allow,deny
    Allow from all
    AllowOverride All
    </Proxy>
    ProxyPass / http://www.xxx.com:8080/
    ProxyPassReverse / http://www.xxx.com:8080/
    </VirtualHost>
    jwindhall.conf:
    <Directory "/Users/jwindhall/Railo/tomcat/webapps/ROOT/dentist_app">
    Options Indexes MultiViews FollowSymlinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>

    The question etresoft was asking was around what goal or end or configuration you were trying to achieve here, and not who you might be.  With some background on the problem and on the particular goal, we might be able to provide you with a more direct solution, or debug the error. 
    It looks like you're trying to run some Tomcat stuff.  Something like this?
    Though that articile doesn't indicate it, the provided set-up there looks to be specific to OS X client.  Are you running OS X Server, or OS X client.  And in either case, which version?   (The management user interfaces do vary here, both by client and server, and by version.)
    The article also looks to be for 10.6 or earlier, or it presumes that you have Java installed.  That's not the default, so that's something you'll need to establish.
    Apache redirects do work on OS X and OS X Server.  If you're just testing that, get rid of Java and Tomcat and the rest (from your configuration test) and test just the URL redirects.
    Apache is also sensitive to file protections and ownerships, as it strives to avoid allowing an attacker at your whole system (by default), though those protections can be overridden.
    As a first step toward troubleshooting your current configuration, invoke the Apache configuration test on your system and see if it tosses any errors, and also check the Apache server logs for relevant errors.  The logs are usually in the /var/log/apache2 directory, though that can be changed.  This'll make sure the core giblets are working.  The next steps would usually then involve checking the protections on the web directories, and then testing Java and Tomcat individually.
    OS X Server is a little more simple to set up and (mostly) avoids needing to access the configuration files, and the directories and related are IMO a little easier to deal with; you're using Server Admin.app or Server.app (depending on the OS X Server version) to manage all that, and not a text editor.
    And you may already be aware of this; do not try to use a GUI editor to edit the configuration files.  TextWrangler will work here, but most other GUI editors won't.  Using a command-line editor is more common; nano or vim or emacs or such.  FWIW.

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

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

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

  • 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

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

Maybe you are looking for

  • Help needed in data type casting

    I have a java program which will receive data and its type in the String format. During program execution, the data in the String data has to be converted into the respective data type and assigned to a variable of that data type so that it could be

  • Files in Illustrator CS4

    I'm working on a project and went to open a couple files, but an box pops up that says AN UNKNOWN ERROR HAS OCCURRED. I went to other files and they all say the same thing. What's happening with my Illustrator CS4 files?

  • Maximum Approvers for PR release WF

    Hi All, For the PR Release procedure, the std workflow is customized and there is no Org structure for agent determination  the user who is creating the PR has to manually key in 4 approvers on the PR screen and the remaining 4 are determined using t

  • Suddenly group won't send

    For the past 2 years, I have been sending a daily post to a group I have created. Over this time, I simply type in the name of the group and it goes out en masse. I created second group over the weekend and now when I type in the name of the first gr

  • My itunes starts displaying weird fonts for song titles and app names. Help?

    Need help to change them back to normal, I realize if I double click songs and movies, the titles goes back to normal english text. However, I can't "RUN" an itune App to change the text back. And I do have more songs that are all messed up text. Any