Virtual Host Setting

Hi, im having APEX application running on 8080 port. I have set the virtual host redirection to the application.
My virtual host setting is:
<VirtualHost *:8080>
ServerName hostname.com
ServerAlias hostname.com
Port 80
RewriteEngine On
RewriteRule ^/$ /pls/apex/f?p=118:1 [R=301]
SimulateHttps on
</VirtualHost>
But im not able to access to access the apllication without giving the port name.
http://hostname.com is not working but http://hostname.com:8080 is working ..
Any input is appreciated.

Got it working. It seems Port 80 is replaced by Listen 80 in Apache 2.0
But SimulateHttps on is not working.
The error is:
Syntax error on line 1074 of E:/product/httpserver_home/ohs/conf/httpd.conf:
Invalid command 'SimulateHttps', perhaps mis-spelled or defined by a module not included in the server configuration

Similar Messages

  • Virtual hosts problem

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

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

  • Virtual Hosts - I'm lost!

    I've been pulling my hair out trying to figure out how to get MySQL, phpMyAdmin and virtual hosts set up on my MacBook Pro. I finally paid a computer science student $100 to do it for me, and he botched it, so I'm now going back to square one.
    My websites are located in /Users/username/sites/. I've modified the httpd.conf, hosts and NetInfo files, and I can now preview the home page of ONE of my virtual host sites. The problem is that I see the page whether I type http://localhost/, http://Geobop/, http://GW/ or http://GS/ into my browser. It should preview only at http://Geobop/.
    I rediscovered the article Enabling Virtual Hosts on MacOS X at http://www.evolt.org/article/EnablingVirtual_Hosts_on_MacOSX/18/13138/
    and added a script to my httpd.conf file, as follows:
    # Leave this one alone - it makes sure that localhost works.
    <VirtualHost 127.0.0.1>
    DocumentRoot /Library/WebServer/Documents
    ServerName localhost
    </VirtualHost>
    #<VirtualHost 127.0.0.1:80>
    # ServerName geobop
    # ServerAdmin [email protected]
    # DocumentRoot /Users/MYNAME/Sites/Geobop
    #</VirtualHost>
    If I understand correctly, this is supposed to make http://localhost/ display something unique, rather than a local website. However, all the URL's I cited above still display the same thing...but this time around they display blank pages with columns of numerals along the left margin.
    In an earlier experiment, I deleted all my virtual hosts from httpd.conf. Then all these URL's displayed the following:
    Index of /
    Name Last modified Size Description
    [DIR] Parent Directory 13-Mar-2007 15:49 -
    [ ] index.php 06-Oct-2006 15:36 1k
    [ ] php5.fcgi 06-Oct-2006 18:18 1k
    [ ] phpMyAdmin-2.9.0.2.tar 06-Oct-2006 17:44 11.4M
    [ ] phpinfo.php 06-Oct-2006 15:20 1k
    [ ] phpinfo.php5 06-Oct-2006 18:20 1k
    Apache/1.3.33 Server at localhost Port 80
    Can someone tell me what's going on and how to fix it? If I can get Apache and my virtual hosts squared away, then I'm going to try to get MySQL and phpMyAdmin back up and running.
    Thanks.

    I don't know much about it, but I do have two comments since it does not sound like a virtual hosts problem.
    1) Netinfo Machines will not work by default. You will need to configure lookupd to give Netinfo priority over DNS:
    lookupd -configuration
    The default configuration will be:
    LookupOrder: Cache FF DNS NI DS
    configname: Host Configuration
    What you need to do is configure lookupd to give NI priority over DNS. Here is how it should look:
    LookupOrder: Cache NI FF DNS DS
    To do this, use commands like this, you will need to have root access enabled:
    su
    lookupd -configuration
    cd /etc
    sudo mkdir lookupd
    cd lookupd
    echo LookupOrder Cache NI FF DNS DS > hosts
    reboot
    lookupd -configuration
    After rebooting, your lookupd order should put NI in front of DNS. Now you can make entries in the "machines" column to your local domains.
    2) MySQL is not installed, however a socket is configured so yeah it's a little confusing. You have to go to the website http://dev.mysql.com/downloads/mysql/5.0.html and scroll down to OSX. Just ignore the pesky questionnaire screen before the download page.

  • Configure Virtual Host to Listen on Two Ports

    Oracle App Server 9.0.4
    I need my mid-tier HTTP server to listen for SSL traffic on 2 ports: 443 and 4443. I also need it to listen for non-SSL traffic on port 80 (this traffic should only come from localhost).
    We have an SSL certificate for our web address already and unfortunately it will take quite a while to get another certificate, so I'd prefer not to have to setup a different url for the second SSL port if I can help it.
    Currently there is one virtual host set as type default.
    The Virtual Hosts properties page provides the following 3 options for Listening Ports (host is set for https protocol):
    (1) Listen on all main ports
    (2) Listen on specific port (443 by default)
    (3) Listen only on the main server default port
    If I set it to option (1) then the server will not respond on port 80 for non-SSL traffic.
    If I set it to option (2) then it will not respond to ssl traffic on port 4443.
    If I set it to option (3) then it is listening on port 80 only (the default port for the HTTP server)
    Is there a way to have this default virtual host listen to both 443 and 4443 for SSL traffic and non-SSL traffic on 80?
    Appreciate your time.
    Message was edited by:
    dredstar

    Thanks for the reply Kjell, I ended up doing the same thing. I left my default host servicing all ports with https, so it would respond to incoming requests on ports 443 and 4443. Then I created a new http protocol virtual host listening only on 127.0.0.1 port 80 and that allowed non-SSL traffic to be serviced coming from the machine itself.

  • Setting up Virtual Hosts on a Snow Leopard Development Server

    Hi Everybody,
    I'm losing hair over this - I thought it would be simple!
    I have set up a Mac Mini Server running SLS and would like to host multiple websites for development on the internal network. I require the websites to be stored anywhere on the server, not just in Library/WebServer/Documents/. Ideally, I would like to access them by example.com/mynewsite so I don't have to mess around with DNS.
    Currently I'm setting up websites in the Server Admin Web panel but it just doesn't work. I've noticed the error log keeps looking for files located in the Library/WebServer/Documents/ folder even though I have specified a different folder.
    What Am I missing? Does anybody know of a tutorial / guide to point out potential issues when setting up virtual hosts? I have checked Apple's guide but it doesn't really help me. Any pointers would be much appreciated!
    Cheers

    Sites is likely failing here because Sites is based on the DNS and on the HEAD command within the http stream; if the DNS does not match, you won't get to the host, and if the HEAD command doesn't match the entry in the site, then you'll either get the * wildcard or (if no *) you won't be transferred to the target Site.
    Check the web server logs, as a start.
    If you want to see how this stuff works at the protocol level, you could telnet to port 80 and toss a http 1.1 GET / command and see what you get back for a page.
    Per [rfc2616|http://tools.ietf.org/html/rfc2616], this sequence looks like this:
    +telnet www.example.com 80+
    then:
    +GET / HTTP/1.1+
    +host: www.example.com+
    followed by two presses of the return key, and where www.example.com is your target Site (virtual host) name.
    Alternatives to using DNS and virtual hosts are port-based hosting (which is easy), and you can also use IP addresses to establish virtual hosts. The former is set up via the Sites stuff, with various other ports being used for the web servers. Ugly, but easy. The IP-based approach can get ugly fast, too.
    If you get DNS going and aliases added, and all this goes away in a puff of greasy orange smoke.

  • Setting Up Virtual Hosts

    Presently I've got Mountain Lion and Mountain Lion Server.app running and successfully hosting a live website.  I've got mail running fine and profile manager, but I've not yet been able to figure out how to host a secondary site on a subdomain of my primary domain (though I suppose www is technically a subdomain).
    I'm guessing the main thing I don't understand is if I need a secondary Primary Zone and other DNS settings requirements.  Also, anything else I need to do inside Server.app and possibly any items that need to be taken care of in Terminal.  I sure wish someone was doing tutorials that went beyond the inital domain out there, but I'm not seeing them.
    I just need the steps to walk through, or a link to a tutorial, that I could use.
    Thanks in advance!!!

    Yes, www.example.com needs a translation that leads to an IP address, as does xyz.www.example.com.
    Here's a writeup on DNS on OS X Server and here's one on Apache virtual hosting on OS X Server.
    There are a number of ways to set up internal DNS — I'm here assuming you're using NAT — and external DNS. 
    In general, I'd recommend using one registered domain inside and another registered domain outside, and a firewall that can "reflect" references to your external IP address back into your internal network.  This means you can maintain your internal (private) DNS completely separately from external (public) DNS. 
    But read the articles above and see if you understand a bit better — or if you should have questions on either, ask away.

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

  • [svn] 2611: Bugs: BLZ-200: Setting virtual-host in proxy-config causes ConfigurationException

    Revision: 2611<br />Author:   [email protected]<br />Date:     2008-07-24 11:36:03 -0700 (Thu, 24 Jul 2008)<br /><br />Log Message:<br />-----------<br />Bugs: BLZ-200: Setting virtual-host in proxy-config causes ConfigurationException<br />      BLZ-201: Configure host/port for proxy setting causes ConfigurationException in BlazeDS<br />QA: need a unit test reading the example proxy-config.xml and verifying that all values are read in HTTPProxyAdapter.java<br />Doc: no<br /><br />Came across and fixed another bug: when <max-connections> is not set inside a <max-per-host>, we assumed the default value of 2 instead of the <default-max-connections-per-host> value (if set).<br />Also, some whitespace reformatting in HTTPProxyAdapter.java.<br /><br />Ticket Links:<br />------------<br />    http://bugs.adobe.com/jira/browse/BLZ-200<br />    http://bugs.adobe.com/jira/browse/BLZ-201<br /><br />Modified Paths:<br />--------------<br />    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/HTTPProxyAdapt er.java<br />    blazeds/branches/3.0.x/resources/config/proxy-config.xml

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Set up Named Based Virtual Hosting on 10.4 Server

    First, sorry for the stupid question. I've read through Apple's WebTechnologies_Adminv10.4/10.5 manuals and still don't feel like I have a clear answer to this question.
    I am trying to set up named based Virtual Hosting on an Xserve running 10.4. I have read a lot of instructions on the web on setting up named based virtual hosting on Mac 10.4/5 Client computers by manually adjusting the host and httpd.conf files and I'm confused as to whether I need to do this in 10.4 Server as well. I have successfully set up virtual hosting on a client computer and it works but I can't get it to work on 10.4 server. I have set up two sites in Server Admin with two site folders in /library/webserver/documents but no luck. Do I need to do what I did in the files above on the server to get it to work or should it work by just creating seperate sites in Server Admin? What am I missing? Thanks in advance for any guidance.

    You can do this entirely in Server Admin - no need to edit the config files directly.
    You just need to create each site in Server Admin -> (server) -> Web -> Sites
    For each set you need to specify the hostname for the site in each site's Domain Name field.
    As long as each site has a unique name (and that name maps to your server's IP address) that's all there is to it.

  • Setting virtual host

    Im trying to set virtual host to my APEX application running on DB 11g. I come to know that chages had to made to the mod_reqrite module to set the virtual host.., to redirect to the particular page in the application hitting the server url. But the mod_rewrite module which is under ohs\modules is uneditable format/encrypted.
    Any help how to setup the virtual host is appreciated.

    Arun,
    >> But the mod_rewrite module which is under ohs\modules is uneditable format/encrypted
    That is expected. All Apache modules are compiled binary shared objects. You are not to edit the binaries themselves. You are expected to control mod_rewrite through directives in your Oracle HTTP Server configuration.
    http://httpd.apache.org/docs/2.0/vhosts/
    I hope this helps.
    Joel

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

  • Setting up multiple web sites (virtual hosting).

    Dear members:
    I am considering OS X Server for a personal project and would like some advice to help me decided what route to take.
    My computer will soon be turned into a server hosting my web sites and some other services at my home office. I am thinking about OS X Server as I have done some research and found OS X to require quite a bit of work so that it can do virtual hosting.
    How simple is it to configure virtual hosting in OS X Server ? I am considering the latest Leopard version in case it matters. I am not experienced and wish to employ an application that will simplify this process.
    Any help will be very appreciated.
    Thank you,
    Joseph Chamberlain

    You could create local PAC file <http://findproxyforurl.com/pac_file_examples.html> where you can return multiple PROXY servers.  You would create text file with your PAC script in it.  Then specify System Preferences -> Network -> Advanced -> Proxy -> Automatic Proxy Configuration, and click "Choose File".
    If you choose to take BDAqua's advice and create multiple Network Locations, you can then use either
    /usr/sbin/networksetup -switchtolocation "MyCompanysProxy1"
    /usr/sbin/networksetup -switchtolocation "MyCompanysProxy2"
    /usr/sbin/networksetup -switchtolocation "MyCompanysProxy3"
    or
    /usr/sbin/scselect "MyCompanysProxy1"
    /usr/sbin/scselect "MyCompanysProxy2"
    /usr/sbin/scselect "MyCompanysProxy3"
    you can put them into a script of your choosing.  Shell script, or Automator Run Shell Scirpt, or Applescirpt do shell script (or Perl, Python, Ruby, etc...)

  • Setting Up a Virtual Host

    I need define a virtual host dynamically in my application.
    How can i do that in WebLogic Server (Web Server)? Have i command line to do this?
    Thank´s

    In 6.x, you can use the JMX API to configure a virtual host dynamically.
    Check out the docs at http://e-docs.bea.com/wls/docs61/jmx for reference
    material.
    -- Ian
    "jacques" <[email protected]> wrote in message
    news:3b6075d8$[email protected]..
    >
    I need define a virtual host dynamically in my application.
    How can i do that in WebLogic Server (Web Server)? Have i command line todo this?
    >
    Thank´s

  • How do I set up a virtual host in my BC Site?

    Hi,
    I have my domain on one Server and want to link it with my Site in BC using a virtual host/domain. Is that possible in BC?
    Thanks for your support!
    JD

    Lemonte,
    You need to add it to an orion-web.xml file. This is Orion/OC4J's web app deployment descriptor.
    If you want to setup virtual directories for the default web app, you'd use /application-deployments/default/defaultWebApp/orion-web.xml. Otherwise use the orion-web.xml for your deployed web app.
    Cheers,
    Mike
    Atlassian - Supporting YOUR 'Orion/OC4J' World
    http://www.atlassian.com - [EMAIL][email protected][EMAIL]
    null

  • Apache virtual host with OSX Server?

    I have been running OSX Server for a while now, and just recently I decided to get McMyAdmin for my Minecraft server. The web client for McMyAdmin runs on port 8080, but I wanted it on port 80. I wanted to use it with my domain, so I just created a sub domain and pointed it to my server. The problem is that OSX Server apparently doesn't let me use port 80, even when websites are turned off. I decided to delete Server and just use plain apache. This worked until I realized that my website was only accessible locally. I have all the correct ports forwarded, etc. But I get the error:
    Response Error.
    Technical description:
    502 Bad Gateway - Response Error, a bad response was received from another proxy server or the destination origin server.
    when I try to connect from outside my network. This is probably just some simple thing I missed but it would be nice if someone could just point out what I did wrong here. Back to the point, I want to know how to run the proxy to my web client on port 8080 AND ALSO run OSX Server with or without apache virtualhost.
    Thanks in advance,
    Eamon

    Web is stupidly easy - Apache has extensive support for multiple virtual hosts in a single server and will happily support as many domains/hostnames as you can throw at it.
    Mail is a little trickier since it needs to hook into some kind of directory server to validate user addresses.
    Mac OS X's Open Directory does support this, but it's a little cumbersome (basically every user has to exist in the main Open Directory domain as well as having a secondary email address(es) in the other domain(s).
    This can get especially tricky when you have users with the same shortname in different domains - for example if you give [email protected] a secondary email address of [email protected] and you then get a new user [email protected], you can't give the third 'joe' the address 'joe' in Open Directory since that's already taken. This means he'll have to login using different credentials from his email address. Confused yet? You bet.
    If you're prepared to eschew Open Directory you can just use Postfix's built-in support for virtual hosting, but it's a little more complex to setup and support and is entirely command-line based (i.e. there's no GUI for setting it up or supporting it).
    So, for that reason you might be prepared to setup multiple virtual machines for each domain. It really depends on how much the domains are related (if at all).

Maybe you are looking for