Virtual Hosts, lookupd and loopback address

For days I've been trying to install and configure MySQL, phpMyAdmin and virtual hosts, but I just seem to be digging myself a deeper hole. I decided to focus on virtual hosts first and learned how to modify my httpd.conf, hosts and NetInfo files, only to discover that I also have to modify something called lookupd, which I can't even find.
I posted a rather detail query at http://discussions.apple.com/thread.jspa?messageID=4232285#4232285
and received this reply:
[QUOTE]I'm not real sure it applies to virtual domains, but if you want your local machine to redirect URLs to a local domain you need to set up lookupd. . . . As it is, your browser is not even finding Apache because you have no DNS server. As an expedient alternative most people use the loopback address with a custom port number, but you are more demanding than that.[/QUOTE]
Maybe you should repost in the UNIX section and use a better subject line. This is pretty geeky stuff.[/QUOTE]
So is it true that I've been beating my brains out when there's a simpler method involving a loopback address with a custom port number? If so, can someone tell me how to do it or direct me to a tutorial? If, instead, I have to modify this lookupd file, how do I find it? I can't find it with Spotlight, and I haven't been able to locate it with TextWrangler yet.
Thanks!

You should ask this question at http://discussions.apple.com/forum.jspa?forumID=735&start=0

Similar Messages

  • Change Host Name and IP Address on machine running WLS 9.2

    Hello,
    I am new to this community, so please forgive any unintended missteps.
    I have an installation of BEA WebLogic Server 9.2 running on Windows 2003 Server SP2. This installation is running on a virtual server, which was created using some VMware product that copies or clones production environments. The purpose of this new, cloned environment is to act as a development environment. This new DEV server has a different host name and IP address from the source PROD server.
    WLS is not starting up properly. It complains about the license.bea file not being valid. To try to fix that, I manually changed the IP address listed within that file, from that of the original system to that of the current system, but that did not change the error message I get during startup.
    I imagine that this instance of WLS needs to be re-licensed to account for the change in IP address. Besides that, are there any other configuration parameters in text files, registry settings, etc., that need to be modified in order to allow the new instance of WLS to work the same as the old instance?
    Please note that we want both DEV and PROD to run simultaneously, so we need to take steps to ensure they (and the applications running on WLS) don't talk to each other.
    I tried to search the BEA sites and found a few resources, but related to some other products (ALES?), not WLS.
    Thoughts, suggestions, feedback, or pointers to documentation would be greatly appreciated.
    Thanks,
    JPG.

    Hi JPG,
    The BEA license files are tied to IP address. Editing the license.bea to change the IP address file will not work.
    Any reason why you cannot use a 5 user dev license for your environment?
    If you break the 5 user limit then use IIS or Apache to front-end the the WLS instance.
    Cheers
    Mike

  • Solution Manager 7 EHP1 - Chage Host name and IP Address

    Dear All,
    I have installed Solution Manager 7 EHP1 (ABAP+JAVA Stack) on Windows 2003 64bit and working fine.
    I need to change HOST name and IP Address of the machine.
    In SAP where I need to change or reconfig ?
    Thanks in advance,
    Nirav

    Hello Nirav,
    first of all: welcome to a big adventure!
    There are some configurations you should face and prepare yourself before you change the hostname, or IP-Adress.
    1. Be aware of the SMD-Agents. You should activate the Maintenace Mode in Diagnostics just before changing the hostname.
    2. Do the changes in ABAP (profile parameters, transport configurations, RFC-connection settings, reorganization of table entries). The systemcopy guide is a good place for informations. Don't forget to recreate the trusted connections to and from the connected  managed systems.
    3. Do the changes in Java (use system copy guide for informations).
    4. Every SMD-Agent in your system landscape must be reconfigured after you change the hostname and did the adjustments in ABAP and Java. Have look into the Diagnostics setup Guide for a detailed information about changing the conection parameters
    5. If you are using a central DBACOCKPIT management in SolMan and Oracle, the TNSNAMES entry should be changed.
    6. SAP likes to connect to SolMan, so the SAPROUTER entries schould be changed also.
    7. Perhaps you are monitoring your system landscape with SAPCCMS Agents, then all agents in your landscape have to be changed in their configurations.
    8. I have BI installed within SolMan and got an error page after changeing the hostname. Try this URL to make some corrections:
    http://<hostname>:<Port>/webdynpro/dispatcher/sap.com/tcsmde2ewa/E2ewaConfig
    Changing the hostname of SolMan isn't a small job and done in 60s. I suggest a detailed planning and to make a roadmap of all doings.
    Have a lot of fun!
    Sascha

  • Getting host name and IP address

    I have develop different types of forms which resides on server and clients are acessing it.Now from my end i want to track that which user is accessing my forms on the server i.e i want to know the client IP address and host name.When the user execute some query on the database then i will get it easily using sys_context function but if it perform some functions within the form and i catch the host name then it returns the server host name where the actual forms resides not the client host name and i want to know the client host name and IP address who is running the forms.Plz let me know the way so i can do that easily .
    thanks

    Hi Grant,
    I want to get ip/address host name of reports server, sitting on forms server.
    can you tell me how to do this.
    in a web base environment.
    i have several report server instances running on different machines.
    when i run a report using RUN_REPORT_OBJECT using report_server=mac_rep1
    i want to know mac_rep1 resides on which host/ip machine.
    regds

  • Host name and ip address

    Hi, i create a audit table , which save every action of the user on the client machines.,,,
    i run this command on the SQLPLUSW Prompt, and it works well and return host name and ip adress ,,
    select SYS_CONTEXT('USERENV','HOST') host,
    SYS_CONTEXT('USERENV','IP_ADDRESS') ip_address from dual;
    but when i write this command in the insert query it give me error that
    bad behind variable SYS_CONTEXT
    so tell me how i save the information through forms..
    thanks for helping me

    INSERT INTO AUDIT_DETAIL
    ENTRY_NO ,
    USER_NAME ,
    ACTION ,
    VOUCHER_NO ,
    DATE ,
    TIME ,
    REMARKS,
    DEPT ,
    SCREEN ,
    HOST ,
    IP_ADDRESS
    VALUES
    ENTRY_NO,
    USER_NAME ,
    ACTION ,
    VOUCHER_NO ,
    DATE ,
    TIME ,
    REMARKS,
    DEPT ,
    SCREEN ,
    SYS_CONTEXT('USERENV','HOST') , -- Here I want to save host name
    SYS_CONTEXT('USERENV',IP_ADDRESS’) Here I want to save host name
    )

  • How to create and access a Virtual Host on the J2EE WAS?

    Hello, I have searched through the Forums and help.sap.com and found a lot of information on how to set up a Virtual Host on the J2EE server but am having issues with it working.
    The goal is to provide a simple virtual host on the J2EE Portal server to host some static image and HTML files. Previously I had stored these files in the standard publicly accessible SAP J2EE folder location /usr/sap/<SID>/JCxx/j2ee/cluster/serverx/apps/sap.com/com.sap.engine.docs.examples/servlet_jsp/_default/root/. This location is resolved to when using the URL <host>:50000 for example.
    The main issue here is that during Portal support pack applications this folder gets wiped out and we have to remember to save off any custom files and folders in this location and replace them.
    I would like to create a virtual host to store these static files (i.e., branding-image.jpg, etc...).
    I have run through the process of creating the virtual host both using Visual Administrator and <host>:50000/nwa but am not able to get the virtual host name to resolve properly.
    The following are the steps that I have taken. Let's assume the standard SAP portal (i.e., xSS, etc...) is running properly on <host>:50000.
    1. create virtual host via Visual Administrator/NWA called 'sapwebserver1' by using the Create Host option (takes on the attributes of the 'default' standard virtual host)
    2. change the root directory for this virtual server to a custom folder at E:/tmp/mimes (where E:/usr is where the J2EE files are all installed), no start files were set up and nothing else was changed in the new virtual host record, no permissions were changed on the /tmp/mimes folder from whatever the default Windows user permissions are normally set, I am using a local Windows  administrator account but I have not seen any reference in the help files or the examples that indicate that any specific permissions updates need to be made on the virtual host root folder
    3. restarted the J2EE server as well as the HTTP Provider service
    4. before updating the company DNS, I wanted to test this locally on the server and so have updated the server's local HOSTS file with a <host IP address>   sapwebserver1 entry
    5. from that server I can ping the sapwebserver1 virtual host name and it resolves properly to the machine's physical IP address
    According to all of the documentation and examples I have seen I should now be able to (from that server) launch a browser and access the static files in the virtual host by referring to http://sapwebserver1:50000/branding-image.jpg for example. This is not working and the browser just brings up a Cannot display the web page error in IE. By referring to the virtual host name sapwebserver1:50000 it's supposed to hit the J2EE server and based on the host name sapwebserver1 realize that it should resolve to the root directory E:/tmp/mimes. This is not happening. Just as a test I have created a copy of the 'default' virtual host and called it sapwebserver2, updated the local HOSTS file for this entry, and tried to see if that would work like the 'default' host. My expectation was that http://sapwebserver2:50000 would behave the same was as http://<host>:50000 but it too fails to resolve just like the sapwebserver1 virtual host refernce.
    Would anyone happen to have any pointers on what to do next? I just want a simple virtual host to be able to serve up some static images and files.
    Thanks for any insight or assistance you might be able to provide here.
    Graham

    This defeats the purpose of trying to centralize SAP-related web resources on the SAP server. Typically IIS/Apache or other non-SAP servers are under the control of IT and not the SAP BASIS group.
    We simply would like to have a centralized location to store static web files so that they are not overwritten during Portal support pack applications.

  • 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 - What am I doing wrong?

    Hi,
    I have been running virtual hosts on Tiger Server for over two years with no problems. Now I have installed a new server running Leopard Server and am trying to move the sites from Tiger to Leopard (on different machines)
    No matter what I do on the Leopard server I can not get the virtual hosts to work. As far as I can see I have configured them the same way that they were on Tiger, but when you go to the domain for the virtual host you are taken to the default server.
    If you disable the default server you get to the correct page, but that's probably because the virtual host is now acting as the default server.
    I have * as the address. If I change that so that the default server is * and the virtual host is the IP address of the server then it works, until I try to add another virtual host and the same thing starts all over again.
    Any ideas what I might be doing wrong?
    Regards
    Craig

    Ok that's weird. (or is it?)
    If I change the order of the sites in Server Admin so that the default server is now the last entry, the vhosts suddenly work. This wasn't necessary in Tiger.
    So if I have a list of sites like this:
    Enabled - <no domain> - Address: * - Port: 80
    Enabled - vhost1.com - Address: * - Port: 80
    Enabled - vhost2.com - Address: * - Port: 80
    Then either of vhost1.com and vhost2.com are redirected to the site hosted under the default domain.
    If I make the list like this:
    Enabled - vhost1.com - Address: * - Port: 80
    Enabled - vhost2.com - Address: * - Port: 80
    Enabled - <no domain> - Address: * - Port: 80
    Then the server works as it should.
    It's almost like the last entry is a catch all. Which would make sense since that is effectively what I use it for anyway. But I never had to do this in Tiger server, and technically what should it matter?
    Or is this indicative of some other config error on my installation?
    Cheers
    Craig
    Message was edited by: Craig Hind

  • One Server, Two Virtual Hosts, Two Applications, Two Mix,...

    In the same server I have two virtual hosts (site1.com, site2.com). For each virtual host I have a PUBLIC page (40, 50).
    The following accesses work perfectly:
    (1) http://www.site1.com/portal/page?_pageid=40,1&_dad=portal&_schema=PORTAL
    (2) http://www.site2.com/portal/page?_pageid=50,1&_dad=portal&_schema=PORTAL
    ... But the following ones also
    (1) http://www.site1.com/portal/page?_pageid=50,1&_dad=portal&_schema=PORTAL
    (2) http://www.site2.com/portal/page?_pageid=40,1&_dad=portal&_schema=PORTAL
    Imagine that site1 is 'Coca Cola' and site2 'Pepsi' (page 40 is 'Coca Cola' and 50 'Pepsi'!)
    How to avoid it?
    I think about two ways of solving it:
    1. To hide the url and to avoid the manipulation of the number of page. (Died the dog ended the anger)
    2. To do that the page 40 works only with the virtual host site1 and the page 50 with the virtual host site2.
    The question is:
    How to do someone of these options?
    Thanks for the help

    Hi Sachin,
    you're right with two different VM you can manage that, but this is similar to have two different server.  My goal is to use only a server (phisical or virtual)...  I think  with 8.8 version we can do it, but I glad if someone has some experience of this scenario..
    Regards,
    Giovanni

  • Need Help with Virtual Host

    a quick Explaination of what I'm trying to do.
    We have a DNS name, "our_intranet.com". This DNS points to a load balancer which routes the call to "our_weblogic_server:7015". When a request with this DNS comes in, we really want to go to our_weblogic_server:7015/portal/site/our_intranet. Can this be acheived using a Virtual Host? And if so, could give an example of creating a virtual host?
    Thanks,
    Tom.

    Thank you James for your reply,
    I do appreciate you taking a moment to respond and include some suggestions. At this point I feel 90% certain that the answer lies within WebLogic configuration somewhere.
    Discoverer is a J2EE application as I understand it and based on that belief it is probably using the standard J2EE servlet API calls such as ServletRequest. getScheme() (the protocol portion of the URL such as http, https, ftp), ServletRequest.getHostname(), and ServletRequest.getPort(). Those API calls return values derived by the server either from the connection itself or from server configuration.
    The URL's being returned by the web application are not static either. Although the protocol and the port never change (always http://...:80/) the server hostname does. If I add an entry to my host file for fred.somewhere.com and then hit the server using that server name then the URL's returned by the web application are http://fred.somewhere.com:80/, and if I use barney.somewhere.com I get a similar result. Now, the web application could be reading the "Host" HTTP header out of the request itself to derive that information but why go through all that trouble when the Servlet API gives you a standard way to do it.
    For this reason I believe Discoverer (the web app causing our grief) is getting this information from WebLogic even though I cannot verify that with absolute certainty. I wish someone from the Disco area could verify that. I have had a support request open with Oracle for over a week but so far they haven't been able to tell me where they get that information from (which I'm sure is just because I'm not speaking with a developer). I may actually in fact pass on this question to the Discoverer forums you suggested. If someone can at least tell me if Discoverer is getting this information from the application server then I can at least pass that along as confirmation to WebLogic folks.
    I have set up an Apache web server as a reverse proxy server for http and https in front of this particular server as an experiment and get similar results with the server name. Whether I hit Apache via http or https I always get back http://servername:80/ from the back-end WLS. The fact is WebLogic isn't even running on port 80 which makes it even more interesting why the URL's we get back should point at 80 instead of the port WLS is listenning on. Since there is no port or protocol information contained within the HTTP request sent by client browsers (only the Host header which just has the hostname) that may have something to do with why the server doesn't know how to provide correct values, but that doesn't explain why it would choose to tell the web application port 80 instead of the port it is actually listening on.
    As far as tracking down how to configure this beast it might be complicated by the fact that I don't think this is just WebLogic Server. This is Fusion Middleware. I didn't think that included Apache HTTP Server, but actually I can see there is a directory for Apache on the server identified as ohs (stands for Oracle HTTP Server). Some of the help in Enterprise Manager (or maybe it was in the WebLogic administration web console) actually talks about Oracle HTTP Server which they say is based on Apache HTTP Server and in fact the configuration files are consistent with Apache. That doesn't mean I don't believe WebLogic folks like yourself that say Apache is not a part of WebLogic server (which seems like a pure Java application) but maybe it is a part of Oracle Fusion Middleware. They might just have it there for other stuff working together with WLS (such as Oracle Web Cache) or for load balancing as you mentioned. If it is there then it might either complicate things, or might provide a possible solution. If it really is running there in front of WLS and we can use some Apache configuration values to override URL information that the server passes on to the web applications maybe it could help. I did see some processes running on the same server with a name something like HTTPD.worker. My Apps DBA's (who are also learning as they go with WLS) said they did zero Apache configuration as part of the install however and I know zero about how (or if) Apache is working together with WLS.
    I tried going down the path of setting up a custom Network Channel and Virtual Host because a) it seemed like a logical place to look and b) I had seen some references to them on the web but as I tried to step through the configuration I admit I never saw any settings that related to protocol overrides. I have seen host and port overrides somewhere along the way but never a protocol override.
    I'm confused that this seems so complicated. I mean, aren't there a lot of people out there running their servers behind a hardware load balancer with SSL termination at the load balancer (it handles the https decryption and then forwards the requests unencrypted to the back-end servers)?
    Your link to the "Corecoreserverserverprotocolshttptitle.html" looks like just the right place (almost). If it only had Frontend Port and Frontend Protocol as well as Frontend Host (and instead of Frontend HTTP Port and Frontend HTTPS Port). So frustrating to be so close but miss. I do appreciate the pointer though.
    Funny that you should bring up the post on WebLogic Wonders because that is actually the example I tried to follow when I attempted to set up a network channel and virtual host. I aborted before the deploy because the deploy wasn't working quite how I expected and I had little confidence it was going to help me at that point (because I hadn't been presented with any setting that allowed me to override the protocol (http/https) value for a front-end system. I'm still not quite sure how the Network Channel works together with the server/domain/virtual host so perhaps I need to do a little more reading.
    If anyone understands exactly what I am trying to achieve though and can give me some direction it would be much appreciated. It seems straight forward to me:
    We have an F5 hardware load-balancer that runs here:
    https://external-servername:443/....
    It uses hardware SSL accelleration to decrypt the incoming request and if it sees /discoverer/ in the URL it then forwards the request unencrypted to a back-end WLS here:
    http://internal-servername:8888/...
    We would be happy if any connection that server recieved it always overrides the scheme (https instead of http), server (external instead of internal...it actually does this properly already), and port (443 instead of 80). In a perfect world it might behave differently if we connect internally directly to the server (in other words if we don't access it through the load balancer then it provides URL information to continue accessing it directly) but that is just icing on the cake which probably would require virtual host configuration to differentiate the two. We'd be ecstatic if we could simply override those values all the time for the entire server to some constant values that we set.
    Thanks,
    Eric R.

  • Problem with DNS and/or Virtual Host (works from inside, not from outside)

    I am running several web sites (as virtual hosts) successfully on one Xserve (192.168.200), which are accessible internally and from the Internet (via forwarding port 80 on our firewall).
    Now I am trying to add another web site (newmini.domain.com), which however is running on a Mac mini (also on the same subnet as the Xserve) at 192.168.100. What I did is make an additional entry under the Xserve's DNS for the domain (domain.com) (+ Machine..., pointing to 192.168.0.100). (I also made the necessary changes to the Mac mini's httpd and hosts configuration--no problem there).
    Now, here's the strange thing: All computers on the subnet, whose DNS points to the Xserve, can see and browse newmini.domain.com fine. No problem. The computers ask the Xserve for the IP of the host in question, the Xserve says, "192.168.100", the request goes to the Mac mini, and it serves the web site as expected.
    But this doesn't happen if the request comes from the Internet. Instead of seeing the Mac mini, the client sees the default web site of the Xserve... So it appears that somewhere, the virtual host part of the HTTP request is lost between our firewall and the Xserve.
    Any ideas? Thanks.

    It's not going to.
    You say you've setup port forwarding on the firewall. Port forwarding only cares about the port number (80). It knows nothing about the nature of the request (e.g. the hostname that the web request is for). Therefore all extenal connections on port 80 get sent to the XServe. The newmini doesn't see the traffic at all.
    If you only have a single public IP address you can only forward port 80 traffic to a single machine. Your options are to either use a different port number, or configure the XServe to proxy the connection to the mini (so now the traffic goes router -> XServe -> Mini -> XServe -> router), although that might not do what you want since it still places load and dependencies on the XServe.

  • Oracle9iAS R2 - Virtual Hosts with Portal and SSO with OIDDAS application

    Hi!
    I have installed a the machine with name minsk.discover.local. The machine have installed Infrastructure and Portal. The instalation is sucessfull and i work fine. But i have publish Portal to WEB with name intranet.discover.com.br. The Oracle describe:
    1 - Create the virtual hosts in SSO and PORTAL - OK
    2 - run ptlasst to create SSO Partners Applications - OK
    After this steps iwork fine with Portal and SSO, but when i click in portlet to create user to access the application OIDDAS, the Portal redirect to login page of SSO in address mct.com.br, the internal name, when then name not responde in the internet.
    I need a help!!!!
    Marcio Mesti

    I just spoke to the Oracle App server admins, the two servers in question are clustered.
    So my question changes slightly to:
    What is the best way to install and configure a webgate for clustered Oracle App servers with mulitple virtual hosts, that are residing behind a load balancer (Traffic Manager)?
    Thanks,
    Andy

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

  • Web sharing - virtual hosts and CGI

    This topic might be a bit advanced for this forum, I'm not sure. But here goes.
    I'm trying to set up my laptop to act like a web server so that I can do test development on it. I have two web sites, and have successfully created virtual hosts for each of them.
    The part that I'm struggling with now is enabling CGIs, as I want to learn to write CGIs in Perl. I can't seem to find any site that discusses how this is done in Leopard. One said something like "just put the CGIs into /Library/WebServer/CGI-Executables and it'll work", but of course, since I've got virtual hosts defined, it seems that anything addressed to "localhost" defaults to the first virtual host and thus there is no way to refer to a CGI placed in that location. Besides which, I'd like to know how to enable CGIs placed in a folder on each of my virtual sites, so that I could test them in place.
    Any ideas?

    One said something like "just put the CGIs into /Library/WebServer/CGI-Executables and it'll work", but of course, since I've got virtual hosts defined, it seems that anything addressed to "localhost" defaults to the first virtual host and thus there is no way to refer to a CGI placed in that location.
    That is an incorrect assumption.
    By default, Apache is configured to recognize any URI that begins with /cgi-bin and serve that request via a CGI script in /Library/WebServer/CGI-Executables
    This is true even though each site's DocumentRoot is set somewhere else on the file system (that's by design since it makes it harder for a remote attacker to affect your CGIs)
    Since it does not matter which site the request was on, any /cgi-bin request would be served from there, so:
    http://www.domain1.com/cgi-bin/some.cgi
    http://www.domains2.net/cgi-bin/other.cgi
    would both be served from /Library/WebServer/CGI-Executables even though they are for two different virtual hosts.
    Now, of course, if you want each site to be separate and have its own set of CGIs (maybe some.cgi for domain1 does something different from some.cgi on domain2) then this approach causes problems. For this you will need to edit each site to have its own cgi-bin directory.
    Unfortunately (although I haven't tested it) I think Matt's solution won't work because Apache is going to catch all /cgi-bin/ requests and serve them from /Library/WebServer/CGI-Executables, never getting to the cgi-bin directory within each site's documentroot.
    To set site-specific CGI directories you need to add a ScriptAlias command to each site's .conf, such as:
    ScriptAlias /cgi-bin/ /path/to/site/cgi-bin/
    This tells apache that any request for /cgi-bin/* should be served from /path/to/site/cgi-bin
    Ideally the path should be outside of the site's normal document root, but it can be inside if you really want.

  • Virtual Host Addressing in Oracle9iAS

    Hi,
    We have Oracle9iAS 9.0.2.3 installed on Windows-2000 (SP-4) OS. Both the Instances of Oracle9iAS i.e INFRA & Mid-Tier is installed on the same machine. Our applications developed in Forms/Reports9i is deployed successfully on Mid-Tier and working OK over web with URL:: http://<Host IP>:7779/<app_name>/myprog.html
    [HTTP server running on Port 7779, <app_name> is application delployed in our OC4J Instance & myprog.html is first page which opens by above URL is kept in its relevant directory of deployed application]
    Now, i want to create a Virtual Host Address for my application that is running by HTTP Server in Mid-Tier Instance so that above URL could be avoided and intutive name can be given for the URL. I do not wish to give IP, Port etc. in URL for opening my applicaiton deployed on Mid-Tier. I wish to open like IGFL.XEXP.COM (The relevant DNS entry is already placed in Main Domain Controller machine, which will redirect to this HOST).
    I checked the documents on Metalink and followed the DocID: Note: 231351.1. I followed the steps of configuraiton without webcache setup, but this is not working properly and i am unable to trace it...Why so.?? Here, i am specifying my customized document root directory instead of AS default directory.
    Can anyone give me steps how to do it or help me identifying what i am missing. People claim that it works, but i do not hv any idea and doing it for the first time. You help is needed....Expecting your response.
    Regards,
    Kamesh Rastogi
    Indo Gulf - Jagdishpur

    Sounds like you just want the URL to not have the port listed? If so, just change the listen port in the httpd.conf file or change it in Web Cache (if you are using Web Cache).
    Plus, you need to register a DNS entry in your DNS server to map the IP address to a name. You don't need to do anything in 9iAS for this part.

Maybe you are looking for

  • Need help with hyperlinks in InDesign CS3 to PDF

    I've done everything I can see in the forums, in the InDesign help and in InDesign for Dummies... but other than spelling out the entire URL in the text (IE where you can see it in the document) I cannot get a URL hyperlink to work after exporting it

  • Two View Objects & One Entity Object

    Has anyone ever had it where they create a row from a view object, set some attributes, insert it into that view object, and it shows up in another view object (as well as the one the row was actually inserted on)? Both of these view objects are usin

  • CC installation problems on Macbook

    Goning on a trip so I needed to setup my air for use with CC today - but  now I am not even sure I will be able to work on this trip because of Adobe (leave for airport in one hour). Fist problem – installed CC and Dreamweaver CC and when I opened it

  • Mpeg2 encodes have black at the bottom

    Any Idea what could be causing this: Only happens with mpeg2. Only happens with Adobe Media Encoder 2014, CC is fine. Mercury Playback Engine Setting makes no difference. Size of black changes with frame size. Have tried a re-install Any ideas on how

  • Report for finding G/L account per purchasing document / reservation

    Is there a report to get a list of G/L account for Purchasing documents / Reservations? If not, can a new scope of list for any standard report such as ME2N / ME2B be created to include the G/L account list?