Apache, name based virtual hosts and multiple servers.

Hi,
Ive been playing with Apache and name-based virtual hosts for a while now, but, ive been doing it with one single server... now i have the need to forward a name-based request to another server inside the intranet (wich doesnt have a public IP, but a private)...
Something like this:
internet -----> Webserver (name based vhosts) ----> intranet-webserver
Where "webserver" has several domains resolved via name based virtual hosting, and one of those needs to be redirected (or forwarded) to another server on the LAN.
Any ideas on how to do this? i tryed searching the web, but i dont know under which keywords, so i always end on single server virtual hosting help sites.
thanks in advance!

you need to define a virtual server for it..but inside that definition.. define a proxy.
Then the middle webserver, will actually handle the request to the intranet server, on behalf of the internet client..and then pass the traffic to the internet client.
this looks like a reasonable example..
http://www.linuxfocus.org/English/March … le147.html
namely, the section "Mapping Virtual Servers"

Similar Messages

  • 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

  • Apache Virtual Hosts and Weblogic 5.1SP6

    Running:
    WebLogic Server 5.1.0 w/ Service Pack 6
    Solaris 7
    Hello, I've been reading through the newsgroups and saw alot of information on
    setting up apache and weblogic to handle virtual hosts, but am still having problems
    getting it to work.
    I have 2 domains that will be served up by one instance of Apache using NameBased
    virtual hosts and I would like to have our one instance of WebLogic 5.1SP6 handle
    them as well.
    Excerpt from my httpd.conf file:
    NameVirtualHost 216.xx.x.xx:80
    <VirtualHost vcstgws011:80>
    ServerName vcstgws011.domain1.com
    Port 80
    DocumentRoot /opt/vci-10.8/webapps/www
    DirectoryIndex index.jsp
    <Directory "/opt/vci-10.8/webapps/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    <VirtualHost vcstgws011:80>
    ServerName www.domain2.com
    Port 80
    DocumentRoot /opt/vci-10.8/webapps/www/dsl
    DirectoryIndex index.jsp
    <Directory "/opt/vci-10.8/webapps/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    Under my default server configuration I have the WebLogic stuff:
    <IfDefine WL>
    WebLogicCluster vcstgas011.domain1.com:7001
    Debug on
    DebugConfigInfo on
    ConnectTimeoutSecs 60
    HungServerRecoverSecs 300
    Debug on
    DebugConfigInfo on
    <Files *.jsp>
    SetHandler weblogic-handler
    </Files>
    <Location /weblogic>
    SetHandler weblogic-handler
    PathTrim /weblogic
    </Location>
    <Location /servlet>
    SetHandler weblogic-handler
    </Location>
    <Location /Admin*>
    SetHandler weblogic-handler
    </Location>
    <Location /j_security_check>
    SetHandler weblogic-handler
    </Location>
    </IfDefine>
    And here's an excerpt from my weblogic.properties file:
    # HTTPD
    weblogic.httpd.enable=true
    # DocumentRoot configuration
    weblogic.httpd.defaultWebApp=/opt/vci-10.8/webapps/www
    weblogic.httpd.indexDirectories=true
    Any help would be appreciated.
    Thanks,
    Mark

    Anyone have success with Name-Based virtual hosts using same instance of WebLogic?
    "Mark Mangano" <[email protected]> wrote:
    >
    Running:
    WebLogic Server 5.1.0 w/ Service Pack 6
    Solaris 7
    Hello, I've been reading through the newsgroups and saw alot of information
    on
    setting up apache and weblogic to handle virtual hosts, but am still
    having problems
    getting it to work.
    I have 2 domains that will be served up by one instance of Apache using
    NameBased
    virtual hosts and I would like to have our one instance of WebLogic 5.1SP6
    handle
    them as well.
    Excerpt from my httpd.conf file:
    NameVirtualHost 216.xx.x.xx:80
    <VirtualHost vcstgws011:80>
    ServerName vcstgws011.domain1.com
    Port 80
    DocumentRoot /opt/vci-10.8/webapps/www
    DirectoryIndex index.jsp
    <Directory "/opt/vci-10.8/webapps/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    <VirtualHost vcstgws011:80>
    ServerName www.domain2.com
    Port 80
    DocumentRoot /opt/vci-10.8/webapps/www/dsl
    DirectoryIndex index.jsp
    <Directory "/opt/vci-10.8/webapps/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    Under my default server configuration I have the WebLogic stuff:
    <IfDefine WL>
    WebLogicCluster vcstgas011.domain1.com:7001
    Debug on
    DebugConfigInfo on
    ConnectTimeoutSecs 60
    HungServerRecoverSecs 300
    Debug on
    DebugConfigInfo on
    <Files *.jsp>
    SetHandler weblogic-handler
    </Files>
    <Location /weblogic>
    SetHandler weblogic-handler
    PathTrim /weblogic
    </Location>
    <Location /servlet>
    SetHandler weblogic-handler
    </Location>
    <Location /Admin*>
    SetHandler weblogic-handler
    </Location>
    <Location /j_security_check>
    SetHandler weblogic-handler
    </Location>
    </IfDefine>
    And here's an excerpt from my weblogic.properties file:
    # HTTPD
    weblogic.httpd.enable=true
    # DocumentRoot configuration
    weblogic.httpd.defaultWebApp=/opt/vci-10.8/webapps/www
    weblogic.httpd.indexDirectories=true
    Any help would be appreciated.
    Thanks,
    Mark

  • The essential guide to DW cs4... by D. Powers: when from wamp to xampp+virtual host and having problems :(

    Following the book in chapter 2 I think Ivé followed everything correctly, but have encluded all the things I've edited below.
    I was using wamp with no problems but after trying to set up a virtual host and now using xampp im abit lost its probabsomething stupid but I can find the prob.
    (This post is abit long and dragged out so I used some colour to try ease the reading..)
    When I try to view a dynamic page in live view or in firefox I get the following error:
    **when using:
    <VirtualHost *:80>
    DocumentRoot c:/xampp/htdocs
    ServerName localhost
    </VirtualHost>
    result:
    Access forbidden!
    You don't have permission to access the requested object.     It is either read-protected or not readable by the server.
    If you think this is a server error, please contact the webmaster.
    Error 403
    thegoodlife
    2009/10/13 12:47:48 PM
    Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
    *when using:
    <VirtualHost *:80>
    DocumentRoot c:/htdocs
    ServerName localhost
    </VirtualHost>
    result:
    Object not found!
    The requested URL was not found on this server.          If you entered the URL manually please check your     spelling and try again.
    If you think this is a server error, please contact the webmaster.
    Error 404
    thegoodlife
    2009/10/13 12:32:58 PM
    Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
    This is what I've done, blue indicating where I have or was meant to edit, red being the relivant context. (hope it helps )
    1. Created a new folder called htdocs (C:\htdocs)
    2. Changed the pathname to:
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot "C:/htdocs"
    and
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "C:/htdocs">
    3. Created vhosts folder; with a sub-folder called thegoodlife (C:\vhosts)
    4. entered new vhost:
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    # For example:
    #      102.54.94.97     rhino.acme.com          # source server
    #       38.25.63.10     x.acme.com              # x client host
    127.0.0.1 localhost
    127.0.0.1 dwcs4
    127.0.0.1 thegoodlife
    127.0.0.1 bin.errorprotector.com ## added by CiD
    5.It says uncomment the command by removing the #, (Supplemental configuation.), but this is the origional file; already uncommented?
    # Real-time info on requests and configuration
    Include "conf/extra/httpd-info.conf"
    # Virtual hosts
    Include "conf/extra/httpd-vhosts.conf"
    # Distributed authoring and versioning (WebDAV)
    Include "conf/extra/httpd-dav.conf"
    6.Set the permissions and changed the code as instructed, unsing (c:/xampp/htdocs) as advised.
    # You may use the command line option '-S' to verify your virtual host
    # configuration.
    <Directory C:/vhosts>
      Order Deny,Allow
      Allow from all
    </Directory>
    # 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>
    DocumentRoot c:/xampp/htdocs
    ServerName localhost
    </VirtualHost>
    <VirtualHost *:80>
    DocumentRoot c:/vhosts/dwcs4
    ServerName dwcs4
    </VirtualHost>
    <VirtualHost *:80>
    DocumentRoot c:/vhosts/thegoodlife
    ServerName thegoodlife
    </VirtualHost>
    Then creating the site definition:
    local root forlder: C:\htdocs\thegoodlife\
    testing server folder: C:\vhosts\thegoodlife\
    URL prefix: http://thegoodlife/
    hope i've covered all area's where I could have gone wrong

    Just one more thing - the description of what i did while first Kernel appeared:
    Happened 2 days ago. Wasn't turning it off for like a day, only sleep mode by closing it. Worked fine all day, wasn't doing anything, except for checking mail 2-3 times and having windows 7 virtual machine opened but doing nothing, everything was going fine. Then closed it without turning off.
    Opened 3-4 hours later, everything was working fine for 30 minutes of checking mail, then Kernel appeared. After that pretty much everything i did is described in part 1-5.
    Note: all the time MBP was connected to internet via wifi, so updates to both MBP and virtual machine of all programs were possible.
    I only shared downloads and desktop folders, so windows couldn't have access to system folder of Mac Os.
    Hope this might help...Thanks again.

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

  • Recommended configuration for load balanced Portal with load balancer, multiple gateways and multiple servers.

    Does anyone have a recommended network, hardware and software configuration guide for a Portal installation running with multiple gateways load balanced (ie one URL) that talk to multiple servers?

    David,
    We've used Resonate (software) to load balance the gateways. It allows
    you to group all the gateways under 1 virtual URL and load balance the
    incoming connections over each gateway depending on the rules that you
    define in Resonate. Look in the SUN portal whitepapers there is one that
    talks about it specifically.
    As far as load balancing the calls to the portals, the gateways will
    automatically load balance across all the portals that they know about
    using a simple round-robin rotation. You may be able to use Resonate in
    front of the portals but you may need to activate persistance within
    Resonate to ensure that the user always ends up on the portal that he
    established his initial connection on (if you want that), check with Sun
    on this one.
    David Broeren wrote:
    Recommended configuration for load balanced Portal with load balancer,
    multiple gateways and multiple servers.
    Does anyone have a recommended network, hardware and software
    configuration guide for a Portal installation running with multiple
    gateways load balanced (ie one URL) that talk to multiple servers?
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • VIrtual host and reverse proxy  FOR EBIZ R12.0.6

    we have 4 dev EBIZ instances on a single hp_ux itanium server on which I have to setup one instance for virtual hosting and to work behind a reverse proxy .
    any particular documents or steps for this.
    Thanks
    mn

    we have 4 dev EBIZ instances on a single hp_ux itanium server on which I have to setup one instance for virtual hosting and to work behind a reverse proxy .
    any particular documents or steps for this.Implementing Virtual Host, Concurrent Managers and EM DBconsole on Oracle Applications R12 [ID 603883.1]
    Conc-System Node Name Not Registered After Fresh Install Using Virtual Name [ID 948644.1]
    Is Auto Failover With Virtual Hostnames For Concurrent Processing Servers Supported In 11i Or R12? [ID 456540.1]
    Case History: Implementing a Reverse Proxy Alone in a DMZ Configuration - R12 [ID 726953.1]
    Oracle E-Business Suite R12 Configuration in a DMZ [ID 380490.1]
    Thanks,
    Hussein

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

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

  • What does virtual host and port mean in a system in ESB console

    Hi !
    When you click on a system in ESB console you can see and change 'cluster name' , 'Virtual host' and 'Port' .
    What does this mean ?
    As default the port is 8888 even though the installation uses port 80.
    If I change the port, I see no difference.
    Could someone please explain ?

    It is used to generate the endpoint urls in the wsdl's for the services you have deployed. It needs to be set to the esb server and port number where the services are installed. So if your esb installation uses port 80 you need to change 8888 to 80. Try the wsdl and look at the url of the endpoint.
    Kind Regards,
    Andre

  • HT2500 I have an email account (with Verizon) but neeed to change the names of the incoming and outgoing servers.  How do I do this?

    I have an email account (with Verizon) but neeed to change the names of the incoming and outgoing servers.  How do I do this?

    Welcome to the Apple Community.
    If you still know the ID and password, you can change your email address.
    Start here, change your country if necessary and go to manage your account.

  • How to confiture virtual hosts with multiple domain names

    hello,
    I've read through some of the postings here on virtual hosts, but I thought I'd better solicit advice before I actually try some of the things I've read about.
    In a nutshell, I've purchased multiple domain names that I'd like to alias to a new site (currently it is just a subfolder in the main site directory) on my OS 10.3.x server. There is only the one main site configured right now on the box, so I know I need to set up a second "virtual site" pointing to the files in this subfolder to make it function as its own site.
    I've dabbled around with the sites settings in the GUI, but I'd probably be most comfortable setting all this up in the httpd.conf by hand if I could. But I'm weary of this because I know it might be better to use the GUI because of OS X Server's flavor of WebObjects and Apache (sigh).
    So, I have two main questions:
    1) How would I set up this second site using the GUI in server settings? Do I need to first move the subfolder out of the main folder before it can be designated its own site? Or can I just point to it in the GUI? Can I use one of my purchased domain names in the domain field?
    2) Currently, I have URL Forwarding set with my multiple domain names, but I'm thinking there might be a better way to do this? For SEO I'd rather use some type of redirect rather than being penalized by search engines for having what looks to be multiple domains pointing to the same site.I'm thinking I should create virtual sites for each domain name I've purchased with a hard redirect back to the main site?
    Any suggestions would be appreciated.
    Thanks
    G4 Mac OS X (10.3.9) 10.3.9 Server
    G4 Mac OS X (10.3.9) 10.3.9 Server

    thank you for your reply.
    > You can create each site as a new Site in Server
    Admin. When you do this you can choose any
    directory on disk as the document root for each
    site.This means you can move the sites' folders out of
    /Library/WebServer/Documents if you like - you could
    create /Library/WebServer/site1,
    /Library/WebServer/site2, etc. (or even be outside of
    /Library/WebServer if you want).
    so, are you are saying that I could designate one site to be
    /Library/WebServer/Documents/site1
    and another to be
    /Library/WebServer/Documents/site1/directory1
    even though directory1 is contained within site1's structure? I'm not advancing this as a good idea, necessarily. I'm just wondering if Apache would complain.
    > Each site should have the domain name set as per your
    registered domains. Apache will need this to
    determine the correct site to serve for each
    request.
    Well, after some additional research I'm thinking I'm missing a critical piece of the puzzle. That being access to the DNS host server that manages the context of my server. I have purchased domain names through an outside registrar that point to my site and I can create virtual hosts on my server, but I don't have the ability to add the new virtual host names into the DNS server that manages my box. If that makes sense. Or maybe I'm missing something?
    >
    I'm not sure why you're using URL forwarding at all.
    Without that piece of information it's impossible to
    tell you whether you should continue using them or
    not - in general there's no need to use URL
    forwarding if you have multiple Virtual Hosts setup,
    but it sounds like you have multiple hostnames
    pointing to the same content, so your needs may be
    different.
    I'm using forwarding for the reason I list above. I didn't purchase hosting with the registrar where I purchased my domain names, so they are parked on the registrar's name server with URL forwarding to my server. The DNS server that manages my box resides in a different location and I don't have the ability to add DNS entries pointing to virtual hosts that I want to set up. Am I stuck?
    G4 Mac OS X (10.3.9) 10.3.9 Server

  • Apache Virtual Hosting and WLS 6.0 Apache plug-in

    We have a client that uses Apache and virtual hosting. We also have a
    single webapp that serves these virtual hosts/domains.
    Therefore, all of the served virtual hosts/domain has the same webapp
    directory structure ( e.g.: index.jsp, advert.jsp, css/ )
    For the above to work, we are thinking of getting the requested virtual
    hostname ( supposedly part of the HTTP header sent by the browser as the
    "Host:" parameter ) to figure out how the page will be displayed ... Does
    the Apache plug-in send this information to WLS?

    Apache plugin will forward the "Host" header to wls.
    BTW, HTTP1.0 client will not send the HOST header if I recalled properly since
    HOST header is not part of HTTP1.0 spec.
    Jesus M. Salvo Jr. <[email protected]> wrote:
    >
    We have a client that uses Apache and virtual hosting. We also have a
    single webapp that serves these virtual hosts/domains.
    Therefore, all of the served virtual hosts/domain has the same webapp
    directory structure ( e.g.: index.jsp, advert.jsp, css/ )
    For the above to work, we are thinking of getting the requested virtual
    hostname ( supposedly part of the HTTP header sent by the browser as
    the
    "Host:" parameter ) to figure out how the page will be displayed ...
    Does
    the Apache plug-in send this information to WLS?

  • Apache virtual hosting and URL prefixes

    I am having a bit of trouble with processing PHP after
    setting up a virtual server on apache.
    This is the setup:
    Apache is installed and the document root is "C:\Program
    Files\Apache Group\Apache2\htdocs" which was originally set as
    localhost as well
    Virtual hosting is to be set up for "C:\WEBSITES\mysite" This
    directory, you will note,is outside the htdocs directory.
    I edited the httpd.conf file as follows to set up a virtual
    server.
    <VirtualHost 127.0.0.1:80>
    DocumentRoot "C:\WEBSITES\mysite"
    ServerName mysite.local
    </VirtualHost>
    I didnt forget to remap localhost either ..........
    <VirtualHost 127.0.0.1:80>
    DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs"
    ServerName localhost
    </VirtualHost>
    the hosts file got tweaked too to include this:
    127.0.0.1 localhost
    127.0.0.1 mysite.local
    Everything was restarted and hey presto localhost still
    processes PHP properly but mysite doesnt.
    I am pretty sure i've set the url prefix wrong. The DWeaver
    help files refer to an IIS setup. Could anybody fill me in on what
    to put in this line and why. Any other pitfalls in setting this up
    would also be kindly received
    PS - port 80 is the listening port if it helps.

    All I did when I set up Apache was to set the document root
    to what I
    wanted:
    DocumentRoot "C:\webserver"
    and I put my documents in the "webserver" directory. I did
    this cause the
    htdocs directory path is way long .. it works fine.
    Mine is localhost:8080 cause I have IIS on 80 but I don't see
    where it
    should matter.
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "mark81" <[email protected]> wrote in
    message
    news:[email protected]...
    >I am having a bit of trouble with processing PHP after
    setting up a virtual
    > server on apache.
    >
    >
    > This is the setup:
    >
    > Apache is installed and the document root is "C:\Program
    Files\Apache
    > Group\Apache2\htdocs" which was originally set as
    localhost as well
    >
    > Virtual hosting is to be set up for "C:\WEBSITES\mysite"
    This directory,
    > you
    > will note,is outside the htdocs directory.
    >
    >
    >
    > I edited the httpd.conf file as follows to set up a
    virtual server.
    >
    > <VirtualHost 127.0.0.1:80>
    > DocumentRoot "C:\WEBSITES\mysite"
    > ServerName mysite.local
    > </VirtualHost>
    >
    > I didnt forget to remap localhost either ..........
    > <VirtualHost 127.0.0.1:80>
    > DocumentRoot "C:\Program Files\Apache
    Group\Apache2\htdocs"
    > ServerName localhost
    > </VirtualHost>
    >
    >
    > the hosts file got tweaked too to include this:
    > 127.0.0.1 localhost
    > 127.0.0.1 mysite.local
    >
    >
    > Everything was restarted and hey presto localhost still
    processes PHP
    > properly
    > but mysite doesnt.
    >
    >
    > I am pretty sure i've set the url prefix wrong. The
    DWeaver help files
    > refer
    > to an IIS setup. Could anybody fill me in on what to put
    in this line and
    > why.
    > Any other pitfalls in setting this up would also be
    kindly received
    >
    >
    > PS - port 80 is the listening port if it helps.
    >
    >

  • Virtual hosts and rewrite rule

    I've got Oracle portal with several virtual hosts setup.
    <VirtualHost *:7778>
    ServerName hosta
    Port 80
    ServerAdmin [email protected]
    RewriteEngine On
    RewriteOptions inherit
    OssoIpCheck off
    ErrorLog "|d:\oracle\mid10g\Apache\Apache\bin\rotatelogs logs/hosta_error_log 43200"
    CustomLog "|d:\oracle\mid10g\Apache\Apache\bin\rotatelogs logs/hosta_access_log 43200" common
    RewriteRule ^/$ /portal/page/portal/bmi/hosta/$1 [PT,L]
    </VirtualHost>
    <VirtualHost *:7778>
    ServerName hostb
    Port 80
    ServerAdmin [email protected]
    RewriteEngine On
    RewriteOptions inherit
    OssoIpCheck off
    ErrorLog "|d:\oracle\mid10g\Apache\Apache\bin\rotatelogs logs/www.jafabu.co.uk_error_log 43200"
    CustomLog "|d:\oracle\mid10g\Apache\Apache\bin\rotatelogs logs/www.jafabu.co.uk_access_log 43200" common
    RewriteRule ^/?$ /portal/page/portal/pdg/hostb/$1 [PT,L]
    </VirtualHost>
    This doesn't match any of the pages I have in the two pagegrooups - "HostA" and "HostB".
    If I try RewriteRule ^/(..*)$ /portal/page/portal/pdg/hostb/$1 [PT,L], then Portal reports back about there being a problem and promptly dies.
    How do I allow http://hosta/ being a different hpome page to http://hostb/ and allow any pages to be referenced without Portal crashing ??? I dont want to add a new rewrite page for avery page my developers add in....
    Thanks
    Kev

    You cannot use your virtual hostnames as a page or procedure name. Instead, please try this:
    <VirtualHost *:8001>
    ServerName hosta.yourdomain.com
    # Redirect if on desired VirtualHost:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^hosta\.yourdomain\.com \[NC,OR\]
    RewriteCond %{HTTP_HOST} ^yourdomain\.com \[NC\]
    RewriteRule ^/(.*) http://hosta.yourdomain.com/portal/page/portal/ \[R\]
    </VirtualHost>
    <VirtualHost *:8001>
    ServerName hostb.yourdomain.com
    # Redirect if on desired VirtualHost:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^hosta\.yourdomain\.com \[NC,OR\]
    RewriteCond %{HTTP_HOST} ^yourdomain\.com \[NC\]
    RewriteRule ^/(.*) http://hostb.yourdomain.com/portal/page/portal/ \[R\]
    </VirtualHost>
    hope that helps!
    AMN

Maybe you are looking for

  • Developing Crystal Report from SAP BEx query

    Hi, I am trying to create an crystal report from SAP BEx query( using MDX driver). I can able to connected to BEx query and got key figures and characterstics, but not able to get calculated key figures into crystal reports. Would likes to know how t

  • I reset my iphone, after backing it up, ALL my photo's are now blurry!

    Having had problems with my iphone not blanking the screen when in calls. Which only began yesterday! I was searching online for an answer! Having found a solution of trying resetting the iphone, i did this. Having backed up my iphone the previous ni

  • Calculate standalone time of a swing application.

    I have developed a swing application and i want to know, how can i calculate for how long the application was ideol and user just switched the application on and after that walk away and application is running onthe system and remain ideol. Now, afte

  • Mid2010 imac running Mavericks, reoccuring kernal panic

    Can someone help me look into the problem? It's been troubling me for a while. Thanks a lot! The kernal panic issue had been with my imac since before I updated to Mavericks. Things I tried: 1. Safe mode. Seems okay. Didn't manage to replicate kernal

  • What ies ENQUEUE and DEQUEUE in BAPI??

    Enqueue and dequeue when using BAPI function modules...APart from that with data dictionary its locking and unlocking tables.How does it work in BAPI??? regards , LAvanya