Wildcards in URLs?

Can you use wildcards in URLs in PHP?  For instance:
<?php $MyUrl= 'http://mysite.com/'; ?>
Are there wildcards or something I can throw at the end of that so all subdirectories and files are included in that?
Thanks!

I created a mobile portion of the site and I can redirect it easily enough using this:
<script type="text/javascript">
if (screen.width <= 699) {
document.location = "http://mysite.com/mobile/";
</script>
That works fine.  But then I thought - Hey!  What if they want to see the normal site (from their mobile device or iPad)?  So then I put a link on the mobile site going to the normal site and ran into a paradox of sorts.  It kept sending them to the mobile site because of the screen check.
So then I tried to come up with code to by pass this.  So this is what I came up with:
<?php
    $myUrl = 'http://mysite.com/';
    $mobileUrl= 'http://mysite.com/mobile/';
    $checkLength = strlen($mobileUrl);
    $referringQuacks = substr($_SERVER['HTTP_REFERER'], 0 , $checkLength);
    if ($referringQuacks== $mobileUrl)
        $chicken;
    elseif ($referringQuacks == $myUrl)
                    $chicken;
          else
          echo '<script type="text/javascript">
          if (screen.width <= 699) {
          document.location = "http://mysite.com/mobile/";
</script>'; 
?>
So basically - it is saying if the referrer is the mobile site then don't do anything.  I have $chicken cause I don't know how to say "Do nothing". 
If it is the main url:  mysite.com/   Then do nothing.
If it is any other instance - then run the javascript to check screensize and redirect to mysite.com/mobile/ if it is smaller than 699.
But then I thought - I don't need to check the mobile directory.  I could just do away with that and use the mysite.com/ url.  In other words - since the mobile directory is on the URL - then why not just have one URL that includes all subdirectories?
If only I had a wildcard to say not just that url - but any subdirectories on it as well.
Sorry for the confusion on subdomains and subdirectories.  Anyways - does that make sense?  I just confused myself.  : (
Message was edited by: Drymetal

Similar Messages

  • Using wildcards in URL variables (very simple question, i know)

    Hi all!
    Pulling my hair out over this... How do I use wildcards in URL variables? I have this code in compositionReady (which is working):
    var myurl = "http://www.mydomain.com/sub1/sub2/pagename";
    var currenturl = window.location
    if(myurl == currenturl) {
        sym.getSymbol("symbolname").play();
    It simply makes the symbol "symbolname" play when the current URL matches the variable 'myurl'. However, I want the symbol to play on ALL subpages to http://www.mydomain.com/sub1/sub2/ and therefore it seems logical to put in a wildcard like:
    http://www.mydomain.com/sub1/sub2/* or something similar, but I just can't seem to make it work??
    Any help will be greatly appreciated!
    Best,
    Thomas

    What about this ?
    var mysubdomain = "http://www.mydomain.com/sub1/sub2/";
    var currenturl = window.location.toString();
    if(currenturl.indexOf(mysubdomain) === 0) {
        sym.getSymbol("symbolname").play();
    -Dharmendra

  • Wildcards in url-pattern ?

    Hi,
    Is it possible to map servlets with wildcard url-patterns such as
    <url-pattern>/stuff/*</url-pattern>
    in the OC4J used in 10gR2?
    /stuff/123123?id=foo gives a hit on Tomcat but 404 on OC4J (and the admin console shows the mapping as /stuff).

    Hello,
    It is working for me without any issue.
    Could you please copy the web.xml content that defines the servlet and its mapping?
    Also what is the topology of your OracleAS 10gR2,, are you using OHS? or it is OC4J stand alone?
    Regards
    Tugdual Grall

  • Cannot close or open tabs successively by one middle click

    Hello,
    I cannot close, or open tabs by just one middle click on every tab. It is like if there is a timeout before it opens or close a new tab again, or I have to double click with middle button.
    I have taken a look in about:config but found nothing that indicates such a feature.
    Thank you

    thomas_r. wrote:
    You should absolutely never get a pop-up for The Safe Mac or the AdwareMedic websites.s.
    Tom,
    After reading through what I presume is your website, which is highly informative and very well written by the way, I come away with the impression that you really have a firm understanding of the dirty things that can go on inside your machine and how they manage to exploit certain vulnerabilities.
    With respect to pop-up ads and Safari, I have a question that you may able to answer. Three parts:
    (1)  How are they managing to get around all reasonable methods to block pop-up ad scripts? One would think that your browser ought not perform automatic script functions (like opening a new page ... or several) without your doing anything.
    By example, I'm on several forums and if I am sent a PM a notification pop-up will appear. Since I have Adblock software enabled, clicking OK will not send me directly to my inbox or open a new page as it would normally. In other words the software is actively blocking the re-direct script. Perfect. But if I go to some random website, especially ones that stream out of market Sports telecasts,  it turns into a pop-up festival.
    (2) Not even blacklisting certain URLs in AdBlock or trying to wildcard a URL in the blacklist stops them. Is there another method or  tool you recommend?
    (3) What is MacKeeper and why does 2 out of every 5 pop-up ads ask me to try MacKeeper. I swear, I'm surprised someone hasn't tired DDoS attack their website out of frustration from the way they invade your web experience.
    Sidenote: Thank you creating AdWareMedic. I installed it this morning and ran a scan. Fortunately the report was clean, but I'll be adding this to my monthly system health check and clean-up.

  • URL problems with SQL Server Reporting Services 2012 with wildcard SSL certificate

    Hi,
    I have single server, domain member, with SQL Server 2012 SP1 Reporting Services.
    I am trying to get work with url: https://reports.mydomain.com
    I have valid wildcard certificate (*.mydomain.com) implemented and configured URLs in Configuration Manager.
    https://reports.mydomain.com/ReportServer - works fine
    https://reports.3pro.hr/Reports/ - I got error:
    The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
    In rsreportserver.config I have:
    <Add Key="SecureConnectionLevel" Value="2"/>
    When looking my ReportServerService_date.log file I have something like:
    configmanager!DefaultDomain!3f4c!03/10/2013-20:24:34:: i INFO: Using report server internal url https://localhost:443/ReportServer.
    configmanager!DefaultDomain!3f4c!03/10/2013-20:24:34:: i INFO: Using report server external url https://serverhostname:443/ReportServer.
    configmanager!DefaultDomain!3f4c!03/10/2013-20:24:34:: i INFO: Using url root https://reports.mydomain.com/ReportServer.
    configmanager!DefaultDomain!3f4c!03/10/2013-20:24:34:: i INFO: Using report server internal url https://localhost:443/ReportServer.
    configmanager!DefaultDomain!3f4c!03/10/2013-20:24:34:: i INFO: Using report server external url https://serverhostname:443/ReportServer.
    configmanager!DefaultDomain!3f4c!03/10/2013-20:24:34:: i INFO: Using url root https://reports.mydomain.com/ReportServer.
    Also, error shown in log file:
    appdomainmanager!ReportManager_0-2!4c50!03/10/2013-20:24:53:: e ERROR: Remote certificate error RemoteCertificateNameMismatch encountered for url https://localhost/ReportServer/ReportService2010.asmx.
    ui!ReportManager_0-2!4c50!03/10/2013-20:24:54:: e ERROR: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException:
    The remote certificate is invalid according to the validation procedure.
    Btw, is there a way to delete/disable access using https://localhost and/or servername (not FQDN) since SSL will not work in this way for me, and I want access only by full url - https://reports.mydomain.com , not localhost ..
    -- Hrvoje Kusulja

    I spent one of my 4 free support incidents with Microsoft (part of MSDN subscription) this year to get this investigated.  The tech support person helped me through several issues but had to leave to attend some training, and I got past the last hurdle
    before she called me back.  Here are the steps that resolved this issue for me.  I know for sure that step 5 was necessary.  Step 1 may not apply to you, and steps 2-4 may or may not have been necessary (they didn't immediately fix the issue,
    but I didn't roll them back either so they may have been necessary.)
    Step 1:
    Ensure you are editing the correct rsreportserver.config file.  I had been making changes to a file that was installed in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\WebServices\Reporting, but that was a rsreportserver.config
    file for some sharepoint integration that I'm not using.  The correct path on my system was E:\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\rsreportserver.config, but yours may vary. If you can't figure it out, look in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft
    SQL Server\MSRS11.MSSQLSERVER\Setup in the key named SQLPath, and then go to the ReportServer subdirectory of that path.
    Step 2: 
    In rsreportserver.config, ensure that SecureConnectionLevel is set to the value 3.  Was set to 0 in my configuration.  Corrected line in your rsreportserver.confiog file should look like:
    <Add Key="SecureConnectionLevel" Value="3"/>
    Step 3:
    In rsreportserver.config, add the correct value to the <URLRoot> element (which already exists in the file.)  In my configuration, this value was blank.  The value should be the fully qualified path to your report server, with a hostname that
    is valid for your certificate.  For example, if my cert matches *.mydomain.local:
    <UrlRoot>
    https://myserver.mydomain.local/ReportServer
    </UrlRoot>
    Step 4:
    Ensure that your certificate exists in Trusted Root Certification Authorities in certmgr for the local machine.  I had the certificate installed as a Personal certificate for the local machine, which I still think was correct (the certificate wasn't actually
    the problem and worked correctly for Report Server, and the failure was caused by SSRS incorrectly making a https request to a localhost URL), but she had me remove the certificate from Personal and add it to Trusted Root Certificate Authorities.  That
    broke things and the cert was no longer listed as a cert I could bind to, so we then copied it so it existed in both Personal and Trusted Root Certificate Authorities.  This is how I left it, not sure if that was necessary.
    Step 5:
    This was the fix that finally got things to work. In rsreportserver.config, add the same value to the <ReportServerUrl> element (which also already exists in the file) that you added in step 3.  In my configuration, this value was also blank.
    The corrected value should be the same as in step 3, for example:
    <ReportServerUrl>
    https://myserver.mydomain.local/ReportServer
    </ReportServerUrl>
    Then restart your report server (stop & then start in Report Server Configuration Manager), and the problem should go away.  At least it did for me.
    Good luck!

  • Yet another url mapping problem - wildcards

    Hello
    I have one servlet which I want to handle a range of urls. If I configure the web.xml with
    <url-pattern>/servlet</url-pattern>
    then /prjServ/servlet works in a browser but of course any other urls (eg /prjServ/servlet/fred) do not.
    If I change the web.xml to be
    <url-pattern>/servlet/*</url-pattern>
    and try going to /prjServ/servlet, prjServ/servlet/ or prjServ/servlet/fred they all fail with requested resource is not available.
    Any ideas what I am doing wrong? The servlet class is in a subdirectory of WEB-INF/classes and works fine for the url-pattern which does not use a wildcard.

    Does /servlet/* already have a global mapping perhaps? In Tomcat you can turn this off in the global web.xml (look for the "invoker" servlet), other servlet containers may have a similar option, or you could simply choose a different name for your mapping.

  • Wildcards in gateway URL prefixes?

    Hello, We are using a proxying utility called EzProxy from Useful Utilities for controlling student access to online databases and catalogs, which use client-IP as it's security mechanism (basically if the requests come from our network it lets the client in). I would like to host it through the Plumtree portal as a remote portlet, so that the portal can assume responsibility for access control. Here's why it isn't a slam dunk to set it up as a fully gatewayed remote portlet: to proxy remote hosts, it uses 'proxy by hostname'. A request for www.abc.com/whateverpassed through ezproxy.royalroads.ca ends up being returned to the client (in this case our portal for inclusiion as a portlet) as www.abc.com.ezproxy.royalroads.ca/whatever. As you can see, it dynamically adds to it's hostname list anything it's proxying. There's a better explanation of how it works at http://www.ezproxy.com/support/rewrite.html near the bottom of the page under 'new strategy'. My question to you is 'Can I set up in the Gateway URL Prefix list something like: http://*.ezproxy.royalroads.ca/. and expect it to properly gateway through the portal?' There's no way for us to know what will appear in place of the * beforehand, so we would like some way to wildcard the 'start' of the urls. Please let me know if this is simple to accomplish and/or feasible... if it is not we may have some other options to pursue before spending a ton of time trying to get gatewaying working. Thanks! -Dev.

    The transformer will only transform URLs in Javascript if they fall in obvious places (e.g. setting a document.location or a window.open URL). Since you're passing an URL to the application.boot method, the transformer has no idea that it's dealing with an URL.
    To make this work, follow these two steps:
    1) Make sure the URL matches at least one of the patterns listed under Gateway URL Prefixes in the Web Service editor for your portlet.
    2) Wrap the URL in a pt:url tag to give the transformer a hint that you want it to transform the URL, e.g. application.boot("<pt:url pt:href='http://localhost:7021/application/script/classes' xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'/>").
    That should do the trick.
    HTH,
    Chris Bucchere | bdg | [email protected] | www.bdg-online.com

  • Exchange 2010 - Virtual Directory Internal & External URL's with Wildcard Cert

    Hi Guys
    I am trying to determine if my Exchange 2010 server Virtual Directory URL's are setup according to best practice. I'm sure anyone with good Exchange experience will instantly be able to tell me if my Virtual Directory DNS is correct or could cause issues.
    Scenario:
    Hosted Exchange 2010 SP1. Multiple client mail domains hosted
    2x CA, 2x HT, 2x MB, 2x DC
    Wildcard *.example.co.za certificate being used on CA servers
    AD domain is he.example.za.net
    CA Server naming example: ca1.he.example.za.net, ca2.he.example.za.net
    he.example.net DNS is done by DC servers
    External name used by clients: outlook.example.co.za (For Outlook setup and OWA access)
    outlook.example.co.za has two A records pointing to the CA IP's
    PROBLEM/CONCERN:
    We have a random OWA log out issue that we believe might be due to ambiguous DNS names being used.
    If I change the Virtual Directories External URL to be the FQDN of the server, we get a Certificate Error in clients (due to the .co.za Wildcard). The external URL clients use
    must be on .co.za.
    So are the Virtual Directory URL's causing the CA servers to loose track of who is authenticated in where (leading to OWA disconnection)? Is it fine to load balance the CA servers with the DNS the way we are doing currently? Any other issues you see?
    Current Virtual Directory settings:
    Note that they are identical on CA1 and CA2
    [PS] C:>Get-OabVirtualDirectory -server ca2 |fl *url
    InternalUrl : https://outlook.example.co.za/OAB
    ExternalUrl : https://outlook.example.co.za/OAB
    [PS] C:>Get-WebServicesVirtualDirectory -Server ca2 |fl *url
    InternalNLBBypassUrl : https://ca2.he.example.za.net/ews/exchange.asmx
    InternalUrl          : https://outlook.example.co.za/ews/Exchange.asmx
    ExternalUrl          : https://outlook.example.co.za/ews/Exchange.asmx
    [PS] C:>Get-ActiveSyncVirtualDirectory -Server ca2 |fl  *url
    MobileClientCertificateAuthorityURL :
    InternalUrl                         : https://outlook.example.co.za/Microsoft-Server-ActiveSync
    ExternalUrl                         : https://outlook.example.co.za/Microsoft-Server-ActiveSync
    [PS] C:>Get-EcpVirtualDirectory -Server ca2 |fl  *url
    InternalUrl : https://ca2.he.example.za.net/ecp
    ExternalUrl : https://outlook.example.co.za/ecp
    [PS] C:>Get-OwaVirtualDirectory -Server ca2 |fl  *url
    Url             : {}
    Exchange2003Url :
    FailbackUrl     :
    InternalUrl     : https://ca2.he.example.za.net/owa
    ExternalUrl     : https://outlook.example.co.za/owa
    [PS] C:>Get-AutodiscoverVirtualDirectory |fl *url, server
    InternalUrl :
    ExternalUrl :
    Server      : CA1
    InternalUrl : https://outlook.example.co.za/
    ExternalUrl : https://outlook.example.co.za/
    Server      : CA2
    REALLY APPRECIATE SOME EXPERT ADVISE. Thanks.

    Hi Kane,
    Why did not you use cas array to load balance client connectivity?
    If you create a CAS array, you can assign an virtual IP (VIP) for the CAS array FQDN (e.g CASarray.example.za.net), and then point all the Virtual Directories internal URL to CAS array fqdn;
    For external, you can point outlook.example.co.za to VIP which had been assigned to CAS array.
    I recommend you refer to the following article to understand CAS array:
    http://technet.microsoft.com/en-us/library/ee332317(v=exchg.141).aspx#CASarray
    http://blogs.technet.com/b/ucedsg/archive/2009/12/06/how-to-setup-an-exchange-2010-cas-array-to-load-balance-mapi.aspx
    http://blogs.technet.com/b/exchange/archive/2012/03/23/demystifying-the-cas-array-object-part-1.aspx
    Best regards,
    Niko Cheng
    TechNet Community Support

  • Can you use wildcards to do Url forwarding in Iplanet 4.1

    For example, redirect http://myservername/cgi-bin/* to another Url. Where '*' equals any other text....thanks

    Hi,
    As my understand you are trying set the server to act as below.
    You are enabled Url forwarding for
    http://servername/cgi-bin/* "to" http://www.iplanet.com
    In client browser if client hit
    http://servernamet/cgi-bin/te it will through only
    page not found message.
    Because * wildcards is not equal to any other character.
    What excatly you are trying to do, it will not work for any text(character).
    So I would suggest, Instead of using URL forwarding.
    Try it out setting with "Custom Error Responses"
    it will help to through particular html page <OR> and particular content.
    How to setup "Custom Error Responses" follow the below link.
    http://docs.iplanet.com/docs/manuals/enterprise/41/ag/esapuir3.htm#1004819
    I hope this may help.
    Thanks,
    Dakshin.
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support.

  • Wildcard host SSL URL rewrite

    I'm working on setting up a URL rewrite that will work for all hosts of a specific domain.  I could just do a ".*" in the action-list, but the business unit has requested that I restrict the rewrites to just URLs served up containing a particular domain and all of its various hosts.  Would the action-list below work for *.blah.com?  Like www.blah.com, apps.blah.com, etc?  Thanks.
    action-list type modify http blah-urlrewrite
      ssl url rewrite location ".*\.blah\.com"

    Hi,
    That rewrite should do the trick
    Cesar R
    ANS Team

  • Wildcard for Download URLs

    I am trying to download a year's worth of air quality datafrom the EPAs web site for a project that I am working on. The data is readily available, but it will involve downloading a text file for each day (365 URLs).
    Based on their naming convention,
    http://www.epa.gov/airnow/2009/20090101/pm25/pmfine010109Peak.obs
    would be the data for January 1, 2009.
    So what I'd like to do is set up an automator action to download all files that look like:
    http://www.epa.gov/airnow/2009/2009xxxx/pm25/pmfinexxxx09Peak.obs
    But I am not sure how to do this. I would really like to avoid having to type in 365 different URLs.
    Does anyone have any suggestions? I've been using Macs/Apples for about 30 years, but I am new to using Automator.

    Since a script would probably need to be used to build the URL anyway, I just did the whole thing in an AppleScript. The following script will start at January 1 of the specified year, and download an entire year of data to the specified folder (I just used the ISO date for the output file name). It should also handle any regional date format settings:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set theYear to "2009" -- this is the year to get data for
    set outputFolder to POSIX path of (choose folder) -- the folder to save the output files to
    tell (current date) -- use the current date object as a template for the beginning date
    set {it's year, it's month, it's day} to {theYear, 1, 1}
    set {it's hours, it's minutes, it's seconds} to {0, 0, 0}
    set myDate to it -- this is now the beginning date
    end tell
    repeat until (year of myDate) as text is not theYear -- don't forget those pesky leap years
    tell (myDate as «class isot» as string) -- use ISO date for the URL formatting
    set shortDate to text 6 thru 7 & text 9 thru 10 -- day & month with leading zeros
    set fileName to text 1 thru 10 -- the name of the saved file (yyyy-mm-dd)
    end tell
    set myDate to myDate + days -- bump to the next day
    set theURL to "http://www.epa.gov/airnow/" & theYear & "/" & theYear & shortDate & "/pm25/pmfine_" & shortDate & (text -2 thru -1 of theYear) & "_Peak.obs" -- build URL
    try -- skip errors
    -- log "/usr/bin/curl " & theURL & " -o " & quoted form of (outputFolder & fileName & ".txt")
    do shell script "/usr/bin/curl " & theURL & " -o " & quoted form of (outputFolder & fileName & ".txt") -- get the file
    on error errmess number errnum
    if (errnum is -128) or (errnum is -1711) then error errmess number errnum -- pass it on (cancel)
    log errmess
    end try
    end repeat
    </pre>

  • [HELP] URL Wildcard Path Linking

    So basically, I have one file in a folder.
    I want to acess that file but all I know is the extension.
    How would I link that file?
    At the moment, I have:
    new URLRequest("music/*.mp3")
    I have also tried various others such as:
    new URLRequest("music/'*'.mp3")
    new URLRequest("music/*.*")
    When I put the actual link in such as:
    new URLRequest("music/song.mp3")
    It works perfectly fine, though.

    The solution is to use PHP.
    If anyone reads this and needs help with the coding, just message me.

  • Redirecting all pages from old URL to index page of new URL

    Hello everybody..
    I have an Apache configuration question, can't work out the procedure in Server Admin.
    Basically I have a website at "oldurl.com". In Server Admin, I have the site set to serve a PHP file which runs a 301 redirect to "newurl.com". Works nicely.
    Trouble is, if somebody requests "oldurl.com/somepage", the 301 redirect does not function.
    I need all pages on "oldurl.com" to forward to the homepage of "newurl.com".
    I suspect I need to type something into the "URL Aliases and Redirects" pane in Server admin, and some sort of wildcard, but I'm stumped. I have read about fiddling with the .htaccess file, but surely this is not necessary?
    Hope you can help. Thank you!

    To give a more detailed (and just possibly relevant) example of what koncept's talking about, suppose you wanted to redirect browsers from any page on the old domain to a corresponding page on the new domain (e.g. http://oldurl.com/this/that/theother.html would redirect to http://newurl.com/this/that/theother.html, rather than just http://newurl.com/). You'd make a rule in the oldurl.com site like this:
    Type: RedirectMatch
    Pattern: (.*)$
    Path: http://newurl.com$1
    The .* matches zero or more anythings, the $ matches the end of the url (to make sure we get the whole thing, not just part of it), and the parentheses capture the match so we can use it in the redirect path as $1. Note that the pattern is matched against the path part of the original url (i.e. "/this/that/theother.html" in the example I gave earlier), so we can just tack it onto the new domain name and we're set.

  • CSS11500 SSL handling question for multiple url/FQDNs with the same ip address

    I know that it's possible on the CSS to handle multiple incoming HTTP requests that terminate on the same IP address and port and balance them to various servers based on the url.   For instance, I can set up www.cats.com and www.dogs.com at the same 192.168.35.12 address in DNS, and set up two different content rules:
    content cats
    vip address 192.168.35.12
    port 80
    url "//www.cats.com/*"
    add server cats1
    add server cats2
    active
    content dogs
    vip 192.168.35.12
    port 80
    url "//www.dogs.com/*"
    add server dogs1
    add server dogs2
    active.
    Easy and straightforward.
    But what if I want to add SSL handling for https://www.cats.com and https://www.dogs.com?
    I'm not sure how to create the ssl-proxy-list where one content rule (ip address/port) combination needs to pass through the ssl module and get matched with the proper ssl certificate.
    Can this be done?  Can one associate multiple certs and keys with a single ssl-server entry and a single ssl accelerator service?  Or do I have to create multiple ssl-proxy-lists for cats and dogs and build multiple ssl services each referring to a unique ssl-proxy-list, and then use the url parameter in the https content rule to determine which ssl service (and therefore which key/cert pair) gets the traffic?
    Thanks in advance for any insights.

    Hi Tim,
    Unfortunately this is not possible; you can't associate multiple certificates to a single proxy list due to the fact that SSL handshake is done first with no visibility of the URL being requested, so the CSS won't know which public server to use in order to perform the traffic decryption.
    But there are a couple of options that you may want to look at (depending on the URL string)
    If your URLs are subdomains and you hold a wildcard SSL certficate to match multiple requests, i.e your domain being "pets.com" you can have a certficate that will match request for dogs.pets.com or cats.pets.com because the cert will be in the form *.pets.com
    The second option is SAN (Subject alternative names) certificates; which give you the option to include up to 4 flavors of the domain within the same file, such as pets.com, pets.net, www.1pets.com.
    I hope this helps.
    Pablo

  • Using wildcards in RDBMSRealm

    Hello.
    I'm using WLS 5.1 with SP6 running on JDK1.2.2, platform is Windows NT
    Server 4.0 SP6.
    I want to know if there is a way to use wildcards to create entries for
    RDBMSRealm.
    The reason I want to use wildcards is that if I create an entry in the
    ACLENTRIES table like this...:
    A_NAME : weblogic.url
    A_PRINCIPAL : testuser
    A_PERMISSION : /index.html
    I can restrict access for the URL http://localhost:7001/index.html to
    "testuser."
    However, when I create this entry, weblogic prompts for a username even if I
    access a URL other than http://localhost:7001/index.html, for example,
    http://localhost:7001/test.html.
    When this happens, I cannot access "test.html" by using any of the usernames
    that I have listed in my RDBMSRealm USERS table.
    I was thinking that this works like the "weblogicURL.policy" file.
    If you create one entry in the "weblogicURL.policy" file, all other URL
    defaults to "everyone deny access".
    I remembered that you can use wildcards in the "weblogicURL.policy" file, so
    I tried changing the A_PERMISSION column to the following six patterns...:
    A_PERMISSION : *
    A_PERMISSION : -
    A_PERMISSION : *.html
    A_PERMISSION : /*
    A_PERMISSION : /-
    A_PERMISSION : /*.html
    Using the six patterns, I tried to access http://localhost:7001/test.html
    each time.
    However, none of the four patterns above seemed to work, since I was
    prompted and couldn't access even if I tried every username that I have in
    my RDBMSRealm, in all of the six cases.
    If I cannot use wildcards, this means that I would have to create entries
    for every single HTML pages. (probably JSP pages, too)
    Is there a way to use wildcards in the RDBMSRealm so that I can simplify
    this?
    Thanks ahead of time.
    RYotaro.

    Thanks, Terry and Kishore!
    I guess it's not a very smart idea to restrict access on URLs using the
    RDBMSRealm...
    What I was thinking was that if it was possible to put entries for Servlets,
    URLs, etc... into one place, it would be easier for managers to manage
    access control.
    # For instance, it could cause some people confusion if access control for
    URLs are listed in weblogicURL.policy and servlets are listed in RDBMSRealm.
    It would be better if all of the entries are written in one place.
    As a matter of fact, I have tried web-applications some time ago, and am
    thinking of going back to it.
    # As I recall, web-applications cannot be "hot-deployed." But there's
    probably a way to get around it.
    Thanks again!
    Ryotaro.
    "Kishore Talari" <[email protected]> wrote in message
    news:[email protected]...
    >
    Try using a web application! Servlet spec 2.2+, WLS 510, SP6.
    You can do a world of URL patterns!
    The only change you will have to make is package the jsp/html,etc pagesinto a .war archive and write a web.xml file.
    >
    "Terry" <[email protected]> wrote:
    I'm not sure that this is the way you want to go about it.
    AFAICR there is no need to add aclentries in the RDBMSRealm database when
    using the weblogicURL.policy file - simply add an entry to the policy
    file
    allowing access to all urls for all users, then add more specific entries
    for those urls you wish to restrict access to. Adding stuff to the
    ACLENTRIES table will not have any effect (I know because that is what I
    tried first).
    The documentation on wublogicURL.properties should tell you all that you
    need to know
    terry
    Ryotaro Toda <[email protected]> wrote in message
    news:[email protected]...
    Hello.
    I'm using WLS 5.1 with SP6 running on JDK1.2.2, platform is Windows NT
    Server 4.0 SP6.
    I want to know if there is a way to use wildcards to create entries for
    RDBMSRealm.
    The reason I want to use wildcards is that if I create an entry in the
    ACLENTRIES table like this...:
    A_NAME : weblogic.url
    A_PRINCIPAL : testuser
    A_PERMISSION : /index.html
    I can restrict access for the URL http://localhost:7001/index.html to
    "testuser."
    However, when I create this entry, weblogic prompts for a username even
    if
    I
    access a URL other than http://localhost:7001/index.html, for example,
    http://localhost:7001/test.html.
    When this happens, I cannot access "test.html" by using any of theusernames
    that I have listed in my RDBMSRealm USERS table.
    I was thinking that this works like the "weblogicURL.policy" file.
    If you create one entry in the "weblogicURL.policy" file, all other URL
    defaults to "everyone deny access".
    I remembered that you can use wildcards in the "weblogicURL.policy"
    file,
    so
    I tried changing the A_PERMISSION column to the following six
    patterns...:
    >>>
    A_PERMISSION : *
    A_PERMISSION : -
    A_PERMISSION : *.html
    A_PERMISSION : /*
    A_PERMISSION : /-
    A_PERMISSION : /*.html
    Using the six patterns, I tried to accesshttp://localhost:7001/test.html
    each time.
    However, none of the four patterns above seemed to work, since I was
    prompted and couldn't access even if I tried every username that I havein
    my RDBMSRealm, in all of the six cases.
    If I cannot use wildcards, this means that I would have to createentries
    for every single HTML pages. (probably JSP pages, too)
    Is there a way to use wildcards in the RDBMSRealm so that I cansimplify
    this?
    Thanks ahead of time.
    RYotaro.

Maybe you are looking for