Linking Sub Domains to Applications

Hello
I am running APEX 3.1. in Oracle 11.x.x.x.x on a Windows server and using HTTP gateway 10.x.x.x. (not the enbedded gateway)
My requirement is for sub domains to be routed to different applications
e.g.
www.mydomian.com goes to www.mydomain.com/apex/f?p=100:100
uk.mydomain.com goes to uk.mydomain.com/apex/?p=200:100
and so on
I currently (and it works) do a redirect on the server.
... The message comes in for www.domain.com. This is routed to a HTML file with redirect to www.mydomain.com/apex/f?p=100:100. In enter goes out and back into the server and is routed correctly to the application
I can continue to process using this method but I does not look elegent
Is there a better way of doing this?
All ideas welcome
Regards
Pete

Hello
That will do the job ... thanks
A follow up question
I route based on IP address for some of my services
e.g. If the IP address is in China route to the Chinese server by changing the URL to CN.MYDOMAIN.COM else route to ROW.MYDOMAIN.COM
I achieve this I look up the IP addrss in a large table using a SQL procedure
This is again not elegant ... can the IP look up be achieved in Apache?
Thanks
Pete

Similar Messages

  • Redirecting an Affiliate Link to a Sub-Domain?

    I have been trying to find a way to redirect the long and revealing affiliate link to a shorter and masked sub-domain. Example: http://www.domainname.com/AP.aspx?ID=4534&EID=87004562 to affiliate.domainname.com.
    I have tried creating A and CNAME records and produces error messages stating "Record Data is Invalid". The URL Redirect options are also limited in functionality.
    Has anyone found any workarounds or tricks they would be willing to share?

    Just create a virtural directory mapping in the web server configuration that points to the CFIDE folder on your system.

  • Convert database IP link with the sub-domain name

    Can someone help me to covert the database ip with the SUB-domain name ?
    Kind regards,
    Shar Kurtishi
    Freelance Consultant
    10000 Prishtina, KOSOVO
    +377.44.210.456

    Hi Shar,
    You can use unix "nslookup" to get the domain from up or viceversa.
    The aim to get the info frm the dns server.
    Regards,
    Chandan

  • Multiple Domain pointing to sub-domains on my local machine.

    Here what I am hoping to do:
    I have multiple sub-domains (only some listed below) setup on my local computer that I use to access local testing folders. I would like to also be able to access these domains from outside my network. Also I have an airport extreme which is forwarding http traffic to my Mac. (That works, I have tested it.) So far I have been able to get basic forwarding to my root sites folder to work, but not the sub-domains.
    How can I setup my system so that people can use different no-ip.com urls to get to different sub-domains or folders on my Mac?
    Below is my virtual hosts in apache, my /etc/host file and a my no-ip.com domain is: ***.serve**.com
    Thank you so much for all your help.
    -Alex
    [email protected]
    /etc/host:
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting. Do not change this entry.
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost
    127.0.0.1 gweather.akutech.local
    apache vhosts:
    ### Section 3: Virtual Hosts
    # VirtualHost: 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.0/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.
    #edit /etc/hosts add new servers sudo pico /etc/hosts
    # Use name-based virtual hosting.
    # NameVirtualHost *
    ### WebDAV Server
    Alias /dav/ "/Users/alexku/Sites/ TESTING/dav/"
    DAVLockDB davlocks/DAVLockDB
    <Directory "/Users/alexku/Sites/ TESTING/dav/">
    DAV On
    AuthName 'WebDAV'
    AuthType Basic
    AuthUserFile /Applications/MAMP/conf/apache/.htpasswd
    require valid-user
    Options -Indexes
    </Directory>
    ##AKUTECH HOSTS LOCAL
    NameVirtualHost *
    #MAIN
    <VirtualHost *>
    DocumentRoot "/Users/alexku/Sites/"
    ServerName localhost
    <Directory "/Users/alexku/Sites/">
    Order allow,deny
    Allow from all
    AllowOverride All
    Options All
    </Directory>
    </VirtualHost>
    #GORDON SCHOOL WEATHER
    <VirtualHost *>
    DocumentRoot "/Users/alexku/Sites/weather.gordonschool.org/"
    ServerName gweather.akutech.local
    <Directory "/Users/alexku/Sites/weather.gordonschool.org/">
    Order allow,deny
    Allow from all
    AllowOverride All
    Options All
    </Directory>
    </VirtualHost>
    p.s Sorry for the odd formating of the files.

    You cannot have multiple "<VirtualHost *>" directives. This indicates to apache that the following configuration is the default, and you can't have multiple defaults.
    The solution is to change this line to indicate which site you're configuring.
    For example:
    <VirtualHost some.site.com:80>
     # configuration for some.site.com here
    </VirtualHost>
    <VirtualHost other.site.com:80>
     # configuration for other.site.com here
    </VirtualHost>
    <VirtualHost *>
     # catch-all defaults for unknown sites
    </VirtualHost>

  • Active Directory : Replication Issue - "Disconnected" sub-domain from the Forest

    Hello everyone,
    I'm managing a multi-domain forest (with 7 sub-domain).  All are working fine except for one.  Throught repadmin (Repadmin /replsum /bysrc /bydest /sort:delta), I noticed I got both domain controllers of a subdomain (there are only 2 DCs in that
    subdomain), who hadn't replicated with the rest of the forest for more than 60 days.
    According to my research, it's usually recommended to Depromote and repromote the problematic DC to avoid the issue of lingering objects.  In this case, it's both DC of a sub-domain.  Of course, on the others DCs in the forest, I got the event
    ID 2012 "it has been too long since this machine last replicated with the named source machine....". 
     HKLM\System\CurrentControlSet\Services\NTDS\Parameters\Allow Replication With Divergent and Corrupt Partner
    to a value of 1. 
    As I understand it, this may cause lingering objects to appear (they can be removed with repadmin /removelingeringobjects command with the DSA GUID, naming context, etc..).  So far, I haven't used that registry key yet because of the associated risks.
    I didn't noticed any other issue so far.  Users in the problematic sub-domain are fine, and the problematic sub-domain seems to be able to pull replication data from the others DCs in the forests. (at least, I'm not getting any error in the A.D. Sites
    and Services)
    I added two new DCs for the affected sub-domains, so the number of DCs for that domain went from 2 to 4 DCs.  The two old DCs that hadn't replicated for 60 days are windows Server 2003 and the two new DCs are Server 2008 R2. 
    Unfortunately (and I was half expecting this, but did it anyway since I must eventually replace the old DCs), that didn't solve my issue, since the rest of the forest "doesn't see" the two new DCs of the sub-domain.  By that, I mean that I
    cannot add an Active Directory Domain Services Connection in Sites & Services console (from a DC in another domain of the forest or even the root domain).  I see all the DCs, including the two old DCs that are server 2003, but not the new ones. 
    I believe it's because the others DCs doesn't pull/replicate the information from the old DCs anymore, so they aren't "aware" of the two new DCs for that problematic sub-domain.
    I was wondering what is the best course of action. Is it worthwhilte to use the registry key force replication with the old DCs ?  (and hopefully, the new DCs will get their AD Services connection/replication vector created, so I can depromote
    the old DCs.
    Since the Old DCs from the problematic sub-domain seems to be able to pull the replication from the rest of the forest, does the risk of Lingering object isn't that great ?
    Or is it too risky and I must create a new sub-domain and migrate one way or another the users ? (which would be time-consuming)
    Thanks in advance,
    Adam

    Thanks for the reply.  One of the link had another link to a good article about the use of repadmin :
    So, I ran the command "repadmin /removinglingerobjects " on one of the problematic DCs ().
    For clarity purpose, let's say I used the domain :
    domain = main domain
    subdomain = the domain whose DC are problematic (all of them).
    AnotherSubDomain = Just another subdomain I used as a "reference" DC to cleanup the appropriate partition.
    Command (the DSA guid is from a DC "clean" in another domain)
    repadmin /removelingeringobjects adrec01.mysubdomain.domain.ca C4081E00-921A-480D-9FDE-C4C34F96E7AC dc=ANOTHERsubdomain,dc=domain,dc=ca /advisory_mode
    I got the following message in the event viewer :
    Active Directory Domain Services has completed the verification of lingering objects on the local domain controller in advisory mode. All objects on this domain controller have had their existence verified on the following source domain controller.
    Source domain controller:
    c4081e00-921a-480d-9fde-c4c34f96e7ac._msdcs.mydomain.ca
    Number of objects examined and verified:
    0
    Objects that have been deleted and garbage collected on the source domain controller yet still exist on this domain controller have been listed in past event log entries. To permanently delete the lingering objects, restart this procedure without using the
    advisory mode option.
    How should I interpret the message "number of objects examined and verified 0".  Does it mean it just didn't find any object to compare ? (which would be odd IMHO)  Or there is another problem ?
    Thanks in advance,
    Adam

  • What is the best practice way of stopping a sub-domain from being indexed?

    Hi there
    I notice that a client site is being indexed as both xxx.com.au [their primary domain] as well as xxx.PARTNERDOMAIN.com.au.
    I have Googled quite a bit on the subject and have browsed the forums, but can't seem to find any specific best practice approach to only having the primary domain indexed.
    One method that seems to be the most recommended is having a second robots.txt site for the sub-domain xxx.PARTNERDOMAIN.com.au with Disallow: /
    Does anyone have a definitive recommendation?
    Many thanks
    Gavin

    Sorry I assumed they were two different sites, they are the same "content" just two different URLs?
    Canonical links will help but it wont stop or remove you being indexed it only adds higher index weight to the Canonical linked URL. Plus only search engines that support that meta tag will work.
    You essentially need two robots.txt to do this effectively or add the META TAG if you can split the sites somehow.
    There is a more complex way, you could host the second domain somewhere else, use htaccess or similar to do a reverse proxy to the main site to pull the contents in realtime, all except the robots.txt file. This way you could have two sites with only 1 to update but still have two robots.txt's
    http://en.wikipedia.org/wiki/Reverse_proxy
    I've done this for a few sites, you are essentially adding a middle man, it will be a tad slower depending on how far the two servers are apart, but it is like having a cname domain but with total control.

  • Can Business Catalyst host a sub-domain?

    Can BC host a sub-domain? If so then we can make arrangements to update our domain DNS and point to that address.
    Please advise whether BC can host sub-domains? We have a parent domain that we currently use for our marketing website although require a domain DNS to point to BC to make it live. Would a sub-domain be sufficient?

    Thx for your quick reply ! It helps a lot !
    Phil Martin
    Le 12 juin 2014 à 12:03, Dave Black <[email protected]> a écrit :
    Can Business Catalyst host a html css website done without Dreamweaver ?
    created by Dave Black in Business Catalyst FAQ - View the full discussion
    It sure can. Just upload your files with these instructions: Business Catalyst Help | Connect to your site using SFTP
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6452531#6452531
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Business Catalyst FAQ by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Slightly OT: Best way to implement sub domain

    So my company created a second division. We want to add it to our website as a sub domain.  We have an inventory section on our site that we want to be accessible from the subdomain.  The trick is we don't want them to leave the subdomain, yet at the same time, I don't want to duplicate the data, (or the code) as google frowns upon such a thing.
    Is it possible to accomplish this?

    This is usually pretty easy.  Place all the files/pages you wish to appear as the sub domain in a folder on your site, then have your host create a "A" record for the subdomain you wish to create - so it will look like this  http://YourSubDomain.YourDomain.com - then route this "A" record to the folder. Be sure the home page in this folder is a default page, such as index.htm or default.htm, or whatever your server uses for the default home page file name.
    Hope this helps.
    Lawrence Carmer - *Adobe Community Professional*
    http://www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and ColdFusion
    Stay updated - http://blog.cartweaver.com

  • Iweb and sub-domains - is this an example?

    I am trying to build 1 web site that will have 4 subsections. For example, I will have a family site example - www.jones.com.
    Then each person will have their own sub page - www.jones.com/bob, www.jones.com/mary, etc.
    With in sub site, there will be pages called photos, movies, blog, etc. - but the same for all
    How can I do this in iWeb? I have all the child sites built but want to upload it to a hosting company (godaddy but use .mac) Is this an example of a sub-domain? What is the best way to lay this out and is iweb capable of doing this?
    Thanks in advance
    jf

    so if my URL is this: www.jones.com, I want to have a site:
    www.jones.com/randompictures
    There are two ways to accomplish what you are asking...one involves subdomains, one does not.
    Putting the issue of subdomains aside for the moment, let me illustrate what you are doing currently...
    You have a domain name: http://www.jones.com
    And you have set it to forward to: http://web.mac.com/username/iWeb/ (this is what you will need to do to get this method to work right)
    So everyone who types http://www.jones.com will get forwarded to http://web.mac.com/username/iWeb/publicsitename/pagename.html (this is your default publicly available site)
    If you want a site that only certain people can get to if they know the specific address, like http://www.jones.com/randompictures , then all you have to do is to create a separate (new) site in iWeb called "randompictures" and upload that along with your public site.
    The real web address for this site will be:
    http://web.mac.com/username/iWeb/randompictures/pagename.html
    But since your domain name is mapped (forwarded) to the underlined portion, the visitors to this site would only have to type:
    http://www.jones.com/randompictures
    Does this make sense? This is probably the easiest way to do what you are wanting to do. It involves making the second private site in addition to your regular site that everyone can get to by typing http://www.jones.com . It does not involve using subdomains.
    Subdomains can be used to provide the same kind of functionality, though. To explain, let me first dissect out a URL and tell you exactly what a subdomain is...
    http://www.jones.com/randompictures/index.html
    Looking at this URL, here are the parts...
    http://- this tells the browser to look for and HTML file
    www- this is the name of the subdomain
    jones- this is the name of the domain (domain name)
    com- this is the top level domain (TLD)
    randompictures- this is a subdirectory (think: folder)
    index.html- this is the name of the HTML file that is displayed
    So you see, the subdomain is like a subsection of the main domain name... and oftentimes it is assumed to be "www" and typing in http://jones.com usually will resolve the "www" subdomain automatically.
    A subdomain, like your domain name, can be forwarded to any other URL, just as you have forwarded your domain name to your iWeb URL. Therefore, an alternate solution to your wishes can go like this...
    You have two separate sites made and uploaded with iWeb: publicsite (default) and randompictures
    Your domain name is forwarded to your short iWeb URL http://web.mac.com/username , which automatically resolves to your default "publicsite" homepage.
    Now you setup a subdomain at GoDaddy called "randompictures". You can then setup this subdomain to forward to http://web.mac.com/username/iWeb/randompictures/ which will lead to your private iWeb site. People "in the know" would access this private site by typing:
    http://randompictures.jones.com
    That's your subdomain at work! This method is slightly less easy than the first, but works just as well.
    Here's what I do to get to the subdomain configuration page:
    1. Go to http://www.godaddy.com
    2. Login under "My Account" on the right side of the page
    3. Select "My Domain Names" under the green "Domains" dropdown menu on the left side of the page.
    4. Click directly on your domain name from the list provided
    5. Under the Account information section, you will see a box titled "Total DNS Control" and inside the box you will see a link called "Manage Subdomains".
    Let me know if you have any questions about any of this...

  • What is a sub-domain site?

    I tried to create a reciprical link with Arts5.com and got this message.
    Just to let you know the link partner program of Arts5.com don't provide for
    any sub-domain site. Please send us another domain to exchange if you may
    have. Then, we'll consider it again.
    my site is: http://web.mac.com/phelpssculpture/iWeb/
    I put the link to their site on my links page. Thanks, David
    ibook & imac   Mac OS X (10.4.8)  

    i don't actually know what a sub-domain is, so i looked it up in a dictionary.
    it stated that it is a under ordered part of the domain, so:
    mail.google.com is a subdomain of google.com
    that means that sometimes domain forwarding could not accept that, which means as kabing suggested that:
    web.mac.com/username is a subdomain of web.mac.com which is a subdomain of mac.com
    so it could be that arts5 does not accept any subdomains!
    i don't know why!
    here is some more on sub-domains:
    http://en.wikipedia.org/wiki/Subdomains
    also try checking here if nothing works:
    http://www.arts5.com/contactus.htm
    max

  • Using URL maps to search for a particular sub-domain in a URL

    Hi Guys,
    Seem to be having some trouble with URL maps, and trying to search for a particular sub-domain in a URL.  Let me explain:
    We will have a number of applications frontended by our CSM VIP such as:
    sftp.poc.monash.edu.au
    callista.poc.monash.edu.au
    I'm trying to get the CSM via policies and URL maps, to search for say "callista" and direct this traffic to a particular farm as below...however when i use the match statement the connections are dropped.
    map CALLISTA url
      match protocol http url *callista*
    map CALLISTA-SFTP url
      match protocol http url *sftp*
    policy CALLISTA
      url-map CALLISTA
      sticky-group 197
      serverfarm CALLISTA
    policy CALLISTA-SFTP
      url-map CALLISTA-SFTP
      sticky-group 198
      serverfarm CALLISTA-SFTP
    vserver CAL-POC-DECVIP
      description decrypt VIP for SERVERFARM CAL-POC
      virtual 172.16.11.116 tcp www
      persistent rebalance
      parse-length 4000
      slb-policy CALLISTA
      slb-policy CALLISTA-SFTP
      inservice
    So i'm wondering if there is a better regular expression statement i can use to ensure that all the traffic that has "callista" in the URL is directed to a particular farm?
    thanks
    Sheldon

    Having a read through the CSM config guide I think i may have found the answer.  I noticed that the URL maps only work on searching a "path' after the domain e.g. the presence of either "index" or "cep":
    callista.poc.monash.edu.au/index.html
    or
    callista.poc.monash.edu.au/cep/
    I've tested the above logic and this holds true....therefore there doesn't seem to be a way of searching for a "subdomain" in the URL as opposed to various bits of a "path".  That is i'd like to search for "callista" or "admissions" instead of the path
    callista.poc.monash.edu.au
    or
    admission.poc.monash.edu.au
    Can someone confirm this one way or another?  And if the sub-domain search is not possible, are there alternatives to getting it to work?!
    thanks
    Sheldon

  • Can a sub domain be created in order to have a wordpress site?

    I am developing a wordpress based site that involves jquery masonry. However, I want to keep the ecommerce of my BC site in tact.  I understand that business catalyst does not support php. My developer said that the best thing to do is to get a sub domain and host it from a different provider. Is this correct?

    Hi,
    You could create a subdomain like blog.mydomain.com and setup your DNS to point to another provider's web server that is running PHP (like GoDaddy) so you can run a WordPress blog theme that incorporates jQuery Masonry. So your developer is correct.
    The only downside is Google will treat the subdomain like it is a 2nd website, not part of the main domain, so if you are writing a blog to build up your ranking for the main BC site where your e-commerce products are this won't accomplish that as well.
    As you know, Google doesn't like indexing product-only e-commerce websites very well, so I usually recommend to my clients that they also provide lots of written articles on their e-commerce domain, which Google will index and rank high and those articles bring visitors into the site. It is naturally best for those articles to be on the same domain as the online shop, so the main domain gets credit for those articles. If you put them on a subdomain, it gets the credit, not the main site. You would of course have links from the subdomain site pointing to the main domain shop, and as you know, inbound links to your domain from another help raise your Google rank, but Google will only give you partial credit because it will notice that the subdomain site is linking so many times onlyto the same ecommerce site. In other words it will know you are using one site just to promote another and those links aren't coming from many sources.
    Another approach is to accomplish your Masonry blog on BC. You can run jQuery Masonry or jQuery Isotope plug-in (both were written by http://metafizzy.co/ ) with a BC blog if you want to, so it can look just like the WordPress site you were thinking about. I've already used jQuery Isotope with the BC blog module, but on a site where each Blog Post is a photo rather than a written article. You can see it in action in the Gallery sections at http://www.BigDayWeddings.net where each photo you see is actually a blog post.  You could peek at my code there in the source code to see how that's working.  If you don't want to code it all from scratch like I did, you can on ThemeForest.net find an HTML template that does masonry or Isotope blogs (often the same templates sold there for WordPress for $35 also have an HTML version as well sold for only $15) but you'd still have to integrate that HTML template into the BC infrastructure for the blog.

  • Search segregation - do I have to go to a sub-domain and separate paid IP?

    I've got a site that must keep the same domain but has two separate types of visitors (think customers and vendors) is creating a sub-domain and paying for a separate IP address the only way to completely segregate the search results (without going to private login features)?

    Save As was removed in Lion, but it has returned in Mountain Lion. I don't understand why you should need to access the help menu even once let alone each time. Hold down the Option/alt key while clicking on the File menu & you will see Save As along with its keyboard shortcut. If, like me, you don't want to have to do a four-finger keyboard shortcut, you can change it in System Preferences > Keyboard > Keyboard Shortcuts > Application Shortcuts.

  • How to create sub domain using java ?

    how to create sub domain using java ?
    for example:
    name1.domainname.com
    name2.domainname.com
    is it possibe ?

    You don't do that using Java.
    Consult the documentation of the application server in question how to configure it. If you're using for example Tomcat 6.0, then you should be consulting this document: [http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html].

  • Affiliate sites - sub domains

    Situation:
    We have a number of self employed agents who promote our
    properties while we provide the support/properties/etc.. We provide
    a web site for them to use that can display their details or our as
    required. The settings are determined by a simple URL variable in
    the link to the site:
    e.g.
    http://www.globalpropertylink.com/?intId=151
    This is not ideal and I would like to use dynamic sub domains
    for the sites:
    e.g.
    http://AGENT_COMPANY_NAME.globalpropertylink.com
    I simply do not know how this is done? Does this involve URL
    rewriting software or is there some way to do it in CF?
    Please can someone give me some pointers and topics to
    research.
    I have looked at :
    http://mkruger.cfwebtools.com/index.cfm?mode=entry&entry=8F4658E4-0763-5FB7-67D23B839AB740 05
    but I need the sub domain part to be kept in the URL so I
    don't think it will work.
    Thanks.

    The problem with using a subdomain for yoru charitable sites is that their url would all look like this:
    charity1.maindomain.org
    charity2.maindomain.org
    charity3.maindomain.org
    Instead you can look into hosts that allow "add-on" domains.
    These allow urls  what you would no doubt perfer:
    charity1.org
    charity2.org
    charity3.org
    even though they all run on the same maindomain.org hosting account!  I know www.ANhosting.com offers "add-on" domains, but lots of other hosts do as well.
    Hope that helps.
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

Maybe you are looking for