Urgent - Apache modRewrite question

We want to access two applications from a single Apache Server.
The target URLs are:
https://www.smartwebmove.navsup.navy.mil/swm/
https://www.smartwebmove.navsup.navy.mil/hhgcnlr/
The user can key-in any one of the following host/protocols:
www.smartwebmove.navsup.navy.mil
www.smartwebmove.sd.fisc.navy.mil
smartwebmove.navsup.navy.mil
smartwebmove.sd.fisc.navy.mil
https://www.smartwebmove.navsup.navy.mil
https://www.smartwebmove.sd.fisc.navy.mil
https://smartwebmove.navsup.navy.mil
https://smartwebmove.sd.fisc.navy.mil
If the user wants the first application, swm, then they only need to use the URL. If they want to use the second, they are required to append /hhgcnlr
We need help writing the Apache parameters that will accept any of the 8 URLs, translate them to the target and append the appropriate application name.
Thanx a lot

Edit your httpd.conf file and change the DocumentRoot parameter to be the directory for /swm/.
Then put either the hhgcnlr app in the swm directory or create an alias for it. (scriptalias if the app is a cgi)
You don't really need to mess with mod rewrite based on your requirements.

Similar Messages

  • Urgent help - interview question

    Guru,
    Please help with the above interview question .Help me an answer to the question below
    Have you dealt with scenarios that include multiple suppliers for the same item with minority compliance requirements?
    What SD experience and skills do you possess with respect to the following;
    What industry?
    What business model
    What portions were placed in scope?
    How was freight configured with respect to billing?
    X Retail as a cutomer  Repack sales to X Retail, What are our options to setup freight charges?
    Thanks in advance
    Regards,
    Andy

    Andy, read the rules of engagement. Do not Use "Urgent" in your subject line.
    In regards to your interview questions:
    Have you dealt with scenarios that include multiple suppliers for the same item with minority compliance requirements? Sounds like you should answer this "NO"
    What SD experience and skills do you possess with respect to the following;
    What industry? If you have any industry experience, answer as such, if not, be honest and say None
    What business model: Ditto
    What portions were placed in scope? If you know, say so, if not, just say NO
    How was freight configured with respect to billing? do you know ? then say so.
    X Retail as a cutomer Repack sales to X Retail, What are our options to setup freight charges? I'd answer that " I don't understand the question
    Good Luck !

  • Apache Configuration Question

    Simple question:
    I'm doing a one-off PHP/MySQL application where everything runs locally. Firewall activated, so I'm not too worried about security. :-/ Apache is configured as included with Tiger. Using Marc Lianage's PHP binary. MySQL is 5.0.
    Here the rub: I have a bunch of images in /Users/MyDir/Images that I want to access from HTML pages being served from /Library/WebServer/Documents/Dir/Path/prog.php.
    This is what I added right under the <Directory /> block (under, not in) in httpd.conf:
    <pre>
    <Directory /Users/MyUser/Images>
    Order allow,deny
    Allow from all
    </Directory>
    </pre>
    Horribly insecure. I know. The problem is that these files aren't being served. The HTML is fine, but nothing is rendered. Is my directive correct? Is there something else I'm missing?
    Thanks,
    Mark
    P.S. I couldn't find a high-traffic Usenet group for this question--any suggestions?
    Message was edited by: chollapete for formatting.

    Gnarlodious for the win!
    I'll just recap the fix for anyone who searches after me:
    The way I read the apache.org documentation, being able to access directories and files not under the Apache Documents root seems to require both the Alias directive and the Directory directive in the httpd.conf configuration file.
    It also requires that the entire filepath be have *nix file permissions set so the Apache user has permission to access the entire actual pathname. Experimentation showed that all directories in the pathname have to have both read and execute permissions set. Since Apache as configured by Apple runs as a different user and group than you, all directories in the pathname must be world-readable and world-executable.
    However, when I commented out the <Directory> block shown below, it still worked the way I wanted. So, maybe you just need the Alias directive.
    I'm certainly no Unix guru and everything I'm doing runs locally behind a firewall, so know what you're doing if you use this information. :-/
    Here's the recap of what I added to httpd.conf:
    <pre>
    Alias /image_dir /Users/MyDir/SubDir
    #<Directory /Users/MyDir/SubDir>
    #Options Indexes FollowSymLinks MultiViews
    #AllowOverride None
    #Order allow,deny
    #Allow from all
    #</Diretory>
    </pre>
    This was placed immediately after the <Directory "/Library/WebServer/Documents"> block that is part of the as-shipped configuration file. This, and the aforementioned changes to make the actual filepath accessible to the apache process.
    HTH. Use at your own risk!
    Peace out.

  • Urgent: Solaris newbie question: group permissions etc

    Hi
    I have a question on what is the best practice of working with solaris users and permissions. I'm using Solaris 10 and have created several users each with their home directory in /export/home. Then i have installed the sun webserver under /export/home/sun/webserver and i want all users to be able to use this, execute or copy over to the webserver.. would this be a valid solution or good practice solution tht i crete a group give it the permissions to read/write/execute and all the users i want to give this privilege to will be under this group. but then whats the use of having root like how would root user be different from the rest now...
    thanks...

    If you just want them to be able to publish to the web, apache has a little built in script in the httpd.conf that will hook in a user directory. Read the /etc/apache/httpd.conf file for more info.
    Whether this is best practice I am not sure. What you suggest will work but I would avoid it.

  • Apache suexec question

    Hi all !
    I am ready to switch to Arch Linux now ( hopefully competent enough :-) Pretty impressed with the Wiki!
    But I still have one question :-)
    I would like to install Apache and suexec. This basically means I want/need an httpd version compiled "--with-suexec-docroot=/home" (/var/www is the default). But I don't want to recompile myself.
    On Ubuntu there is a package for this: apache2-suexec-custom
    But I couldn't find anything like this for Arch Linux. May I didn't look at the right place? Any ideas?
    thanks a lot in advance! dave
    Last edited by archosfan (2012-03-18 01:06:59)

    Read the PKGBUILD:
    ../configure --enable-layout=Arch \
    --enable-modules=all \
    --enable-mods-shared=all \
    --enable-so \
    --enable-suexec \
    --with-suexec-caller=http \
    --with-suexec-docroot=/srv/http \
    --with-suexec-logfile=/var/log/httpd/suexec.log \
    --with-suexec-bin=/usr/sbin/suexec \
    --with-suexec-uidmin=99 --with-suexec-gidmin=99 \
    --enable-ldap --enable-authnz-ldap \
    --enable-cache --enable-disk-cache --enable-mem-cache --enable-file-cache \
    --enable-ssl --with-ssl \
    --enable-deflate --enable-cgid \
    --enable-proxy --enable-proxy-connect \
    --enable-proxy-http --enable-proxy-ftp \
    --enable-dbd \
    --with-apr=/usr/bin/apr-1-config \
    --with-apr-util=/usr/bin/apu-1-config \
    --with-pcre=/usr \
    --with-mpm=${mpm}
    So presumably not unless there's something in AUR.

  • Desperately in need of help!! apache webserver question!

    Guys,
    I need ur help!! I am on the verge of breakdown!! what the funny part is i have done the tough part fairly easily but the easy part is annoying me. here is my problem:
    I have setup virtualhosts defnition for my webserver. post configuration i have now Apache 2.0 + tomcat 5.5 and mod_jk running successfully on my machine.
    The files that i have modified are
    httpd.conf
    workers.properties and
    server.xml
    what i want is:
    when i give url: as http://www.mydomain.com
    this has to bring up the tomcat web application which can otherwise be invoked by url: http://www.mydomain.com:8080/myapplication
    what i am able to achieve is i can load the application via apache withou having to specify the port number like this:
    http://www.mydomain.com/myapplication
    but i want 'myapplication' to be automatically loaded when given just the servername itself!!
    please this must be a simple thing..help me!
    i have modified jkMount /myapplication/*.jsp
    I have to get this working by today evening i am sick and tired of this...
    -Sri

    httpd.conf
    <VirtualHost xxx.xx.xx.xx:8080>
    ServerName xyz.domain.edu
    ServerAlias xyz.domain.edu* www.domain.org domain.org
    DocumentRoot /usr/tomcat/apache-tomcat-5.5.15/webapps
    ServerPath /neuroMor
    ErrorLog logs/xyz.domain.edu-error_log
    CustomLog logs/xyz.domain.edu-access_log common
    </VirtualHost>
    <VirtualHost xxx.xx.xx.xx:8080>
    ServerName www.domain.org
    ServerPath /neuroMor
    DocumentRoot /usr/tomcat/apache-tomcat-5.5.15/webapps
    ErrorLog logs/www.domain.org-error_log
    CustomLog logs/www.domain.org-access_log common
    </VirtualHost>
    #To be added at the end of your httpd.conf tomcat auto-configure
    Include /usr/tomcat/apache-tomcat-5.5.15/conf/auto/mod_jk.conf
    # Load mod_jk module
    LoadModule jk_module libexec/mod_jk.so
    # Where to find workers.properties
    JkWorkersFile /usr/local/apache/workers.properties
    # Where to put jk logs
    JkLogFile /var/log/httpd/mod_jk.log
    # Set the jk log level [debug/error/info]
    JkLogLevel info
    # Select the log format
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # JkOptions indicate to send SSL KEY SIZE,
    JkOptions ForwardKeySize ForwardURICompat ForwardDirectories
    # JkRequestLogFormat set the request format
    JkRequestLogFormat "%w %V %T"
    # Static files in the neuroMor webapp are served by apache
    Alias /neuroMor /usr/tomcat/apache-tomcat-5.5.15/webapps/neuroMor
    # The following line prohibits users from directly access WEB-INF
    <Location "/neuroMor/WEB-INF/">
    AllowOverride None
    deny from all
    </Location>
    #JkAutoAlias /usr/tomcat/apache-tomcat-5.5.15/webapps
    # Send servlet for context /examples to worker named worker1
    JkMount /index.jsp ajp13
    # Send JSPs for conext /examples to worker named worker1
    JkMount /* ajp13
    I want to show neuroMor/index.jsp page when i give the url for
    http://xyz.domain.edu without specifying any relative path name.
    workers.properties
    workers.tomcat_home=$CATALINA_HOME
    workers.java_home=$JAVA_HOME
    ps=/
    worker.list=ajp13
    worker.ajp13.port=8009
    worker.ajp13.host=localhost
    worker.ajp13.type=ajp13
    worker.ajp13.lbfactor=1
    worker.loadbalancer.type=lb
    worker.loadbalancer.balanced_workers=ajp13
    worker.inprocess.type=jni
    worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server$(ps)lib
    worker.inprocess.cmd_line=start
    worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)
    i386$(ps)server$(ps)libjvm.so
    worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
    worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr
    Everything is working just fine..all i want is to show my default page as my application index.jsp page.
    -Many thanks for any kind of help
    Sri

  • Urgent status management question

    Hi,
    I've a problem with my status profile.I assigned a status profile to my quotations that's working fine but now I need a special requirement.
    The user wants to set a new status step identically to another with a different label of course (including the system status behaviour in order to have the same behaviour) in order to distinguish between quotations.
    It would be:
      Status 1: "Approved"
      System Status:
    <b>1 Business Transaction   </b>
            Accept CRM Quotation
       <b>Influence</b>       
            Allowed
       <b>Next Action</b>
            No action
    <b>2 Business Transaction</b>
             Release
      <b>Influence</b>
             Not influence
      <b>Next Action</b>
             Set         
    Stauts 2: "Withouth Approval Process"
        System Status: The same as above
    Is it possible to make this customizing in order to distinguish between two quotations with different label but identically behaviour in system bahaviour terms? I need some help on this way plese.
    Regards

    Hi Javier,
    I didn't quite understand your question.
    Here's what I got. Please help me understand and I may be able to help you.
    You are trying to add two new user status 'Approved' and 'Without approval process'. You want this assigned to a different type of quotation than your existing ones.
    If so, then you need to create a seperate status profile with the above status and a Z transaction type similar to the existing one and assign the new status profile to the transaction type.
    Regards,
    Chandrika

  • Urgent , Two Query questions ...

    Hello everybody ,
          i have created a query in our production system . but i found some people can change my query setting (ex : my local fileds & selection fields ) , has any one can tell me how can i disable the 'Change' function in 'SQ01' ? many thanks !
    (i also use 'su24' to check the authorzation object in 'SQ01' , but i don't know which one can help me to solved this case)
          another question that is when i execute the query i found one of the field's sequence was wrong . but this query is used everyday & nobody has changed it . but when i use  sort this function to make it & it seems ok . therefore i think the problem is in the table index , right ? Has anyone can tell me how to check it ?
    Best Regards,
    Carlos

    hi Ramki
         the query is made by ourselves . the data is only fetched from the billing table (vbrk & vbak) . but today i found some filed's sequence was wrong & i don't know what cause this .
    another problem is that could you tell me how to disable 'Change' function in 'SQ01' ?
    many thanks ~
    Best Regards,
    Carlos

  • Urgent - CUCM Encryption questions

    I have gone through the CUCM Security guide and a few more docs. I have not been able to find the answers to all the questions anywhere. I need you help find answers to the questions colored green.
    Scenario - At this moment VoIP is not encrypted. (CUCM 6.1 with around 1000 devices). The customer is going to setup a Windows-PKI and they want already to know what specifications Cisco is demanding from such a PKI (so that they later easily can integrate their Cisco VoIP solution in their 'new' network) What encryption length are supported (2048 or 4096 bit ?)
    - Based on CUCM security docs it appears to be 512, 1024 or 2048
    [My Answer] This answer is correct. Here’s the information from the CUCM 7.x Security Guide:
    (Page 84) Key Size - For this setting that is used for CAPF, choose the key size for the certificate from the drop-down list box. The default setting equals 1024. Other options include 512 and 2048.
    What Hash-algorithms are supported (SHA-1, SHA-256, SHA-512, ...) ? -
    - Based on the CUCM Admin guide I was only able to find SHA-1 and MD-5
    [My Answer] This is also true. MD5 is used as a Hash function which is used with encryption. SHA-1 hashed password and PIN in credential table for end users. 1024-bit RSA Public Keys, digital signatures use SHA-1 with RSA.
    Need answer to these 4 questions:
    How long can the certificate chain be (how many different levels are supported) ?
    How can you get certificates on end devices which aren't part of an Active Directory ?
    How to you 'connect' a Cisco Telephony system to a Windows-PKI ?
    Is there a checklist in which the points which should be considered are specified?
    Please share your opinions. Any help would be appreciated.
    Thanks & Regards,
    PJ
    Technology Solutions Network

    Take a look here and see how many of your questions are answered:
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/security/7_0_1/secugd/secuview.html
    Hailey
    Please rate helpful posts!

  • Urgent help! question about list.toStirng()?

    currently, i am working on a word counter programe, i stored each word and it's corresponding occurrence in a linkedlist. now i need to sort the list in the decreasing order of occurrence.
    and the output would look like this:
    not 2
    a 2
    i 1
    am 1
    girl 1
    yet 1
    woman 1
    but the output so far i got looks like the following:
    [not   2, a   2, i   1, am   1, girl   1, yet   1, woman   1]
    and i know it becasue i uesed the "list.toString()"method. the question is how can i convert this format to the previous one or i could reach it in someway else?would anyone give me some tips?
    the following code is i used for sorting:
    public String results() //Compare the occurrences of  every two words in the list and reorder each node of
      {                       //the list in decreasing order of it's corresponding occurrence
           String str = "";
           ListIterator iter = list.listIterator();
           int length = list.size();
           int i,j;
           int count1, count2;
           WordNode temp1, temp2;
          for(i = 0; i < length-1; i++)
                for(j = i + 1; j<length; j++)
                   temp1 = (WordNode)list.get(i);
                   temp2 = (WordNode)list.get(j);
                   count1 = temp1.getCount();
                   count2 = temp2.getCount();
                   if(count1 < count2)
                        list.remove(i);
                        list.add(i,temp2);
                        list.remove(j);
                        list.add(j,temp1);
          str = list.toString(); //Call the toSting() method in WordNode class to get each word and it's occurrence
          return str;
      }much appreciated.

    Hi there,
    The problem you have here is that you are not separating the distinct phases of your program. These are:
    - build the sorted list
    - print report
    Thus, if I had to write the code below, I would change your results by two methods:
    List sortedResult = sortWords();
    printReport(sortedResult);
    My sortWords() would be your results(), except that I would return list at the end, not list.toString().
    Then, I would have all the flexibility in the world inside my printReport( List ) method. As a start, it would probably look like this:
    public void printReport(List aList) {
      Iterator iter = list.iterator();
      while(iter.hasNext()) {
        System.out.println(iter.next());
    }Regards,
    Manuel Amago.

  • Not urgent, just simple question.

    Okay, just a curiosity, why will not the Goto login(); and similar sections of the code not work? Am I using a non-existant command? VB6 has ruined me..
    import cs1.Keyboard;
    import java.io.*;
    public class Game
         public static void main (String[] args) throws IOException
              System.out.println("*************************************************");
              System.out.println("********************Day's End********************");
              System.out.println("*************************************************");
              System.out.println();
              System.out.println("(L)og in");
              System.out.println("(C)reate character");
              String goForIt = Keyboard.readString();
              if (goForIt.equalsIgnoreCase("c")==true)
              CharCreate.newCharMaker();
              else
              Goto login();
         public void login();
              System.out.println();
              System.out.print("Character's name: ");
              String lName = Keyboard.readString();
              System.out.print("Account password: ");
              String lPassword = Keyboard.readString();
              Goto openChar(lName,lPassword);
         public void openChar(String name, String password);
         //     BufferedReader fileIn = new BufferedReader(FileReader(name+".txt"));
    }

    New questions... My problem is that now, it appears that it never accepts a password from the txt file, or if it does, it doesn't recognize the password I type in as matching. Any ideas why? It's a simple txt file, no encryption... heh, not even an attempted encryption.
    I am getting no code errors, just that it doesn't work the way it should.
    import java.io.*;
    import cs1.Keyboard;
    public class Menu
         public Menu() throws IOException
                                               //Menu
              System.out.println("*************************************************");
              System.out.println("********************Day's End********************");
              System.out.println("*************************************************");
              System.out.println();
              System.out.println("(L)og in");
              System.out.println("(C)reate character");
              String goForIt = Keyboard.readString();
                                               //Insures legal response
              while (goForIt.equalsIgnoreCase("c")!=true &&
                      goForIt.equalsIgnoreCase("l")!=true)
                   System.out.println("Invalid choice");
                   System.out.println();
                   System.out.println("*************************************************");
                   System.out.println("********************Day's End********************");
                   System.out.println("*************************************************");
                   System.out.println();
                   System.out.println("(L)og in");
                   System.out.println("(C)reate character");
                   goForIt = Keyboard.readString();
              if (goForIt.equalsIgnoreCase("c")==true)
              CharCreate.newCharMaker();
              else if (goForIt.equalsIgnoreCase("l")==true)
              login();
                                               //Gets login info
         public static void login() throws IOException
              System.out.println();
              System.out.print("Character's name: ");
              String lName = Keyboard.readString();
              System.out.print("Account password: ");
              String lPassword = Keyboard.readString();
              openChar(lName,lPassword);
                                               //Opens the character file and tests password.  If the file does not exist, it sends the user back to the main menu.
         public static void openChar(String name, String password) throws IOException
              String str;
              try
                   BufferedReader fileIn = new BufferedReader(new FileReader(name+".txt"));
              while ((str=fileIn.readLine()) != null)
                   str=fileIn.readLine();
                   str=fileIn.readLine();
              if (str.equals(password)!=true)
                   System.out.println("Incorrect password for the declared account");
                   fileIn.close();
                   Menu asdfjkl = new Menu();
              else
              System.out.println("Congratulations, you have logged in with the character " + name);
              fileIn.close();
              catch (Exception e)
                   System.out.println("Invalid character, returning to Main Menu.");
                   Menu asdfjkl = new Menu();
    }

  • Urgent Daisy Chaining Question please :-)

    Er... I have a recording session tomorrow out of the studio and I've only just got round to checking the gear. I have a slight variation this time in that I have a new Lacie Rugged FW Hard Drive for my audio (instead of my studio backup drive... not wise!).
    Anyway, usually I run my Fireface 800 off the Macbook's FW400 port, then put the Hard Drive after that from the FF800's FW800 port (that does make sense). No problemo.
    BUT... with this new Lacie, the drive won't show up after the interface. But if I put it first in the chain and the FF800 after it then it seems to be fine and i can record.
    My question is... is this ok to do it that way round? I thought you chained drives after interfaces or does it not matter? I've tested it and it seems ok, but i don't want it bumming out on me halfway through a session.
    Prompt thoughts greatly appreciated
    Cheers

    Thanks for your reply immo... I'm still a little unclear though as your post is a bit confusing.
    The interface is powered from the mains so that doesn't matter. And I'm only attaching 1 hard drive.
    To clarify, I have:
    a Macbook (with 1 FW port and 2 USB)
    a Fireface 800 (with 1 FW400 and 2 FW800)
    a Lacie Rugged (with 1 FW400, 1 FW800 and 1 USB) - the USB needs to power the device and I don't have immediate access to a power supply for it.
    Why should I not power the HD from USB as it's on a separate bus to the FW. And what about the order of HD and interface - does it matter? I don't have many options...
    I'm confused! I thought I had this sussed... I can use something else for tomorrow if I have to, but I need to get this sorted because thats why I bought the drive.
    Any other thoughts? Thanks
    Message was edited by: siderealxxx
    Message was edited by: siderealxxx

  • MSI GE70 2PC-087XTR Apache driver question

    I just bought a MSI GE70 2PC-087XTR Apache (Core i5-4200H 8GB 1TB GTX850M 2GB 17.3" Full HD ). But it came with freedos.I want to ınstall wın 7 or wın8 to this computer. But i am able to find only GE70 2PL APACHE drivers from MSI Web Site. Here is the link http://www.msi.com/product/nb/GE70-2PL-Apache.html#hero-overview
    Are theese drivers compitable for my pc also?Or I'll be very glad if someone help to find the right drivers for the pc.
    My laptop Specs.:
    GE70 2PC-087XTR Apache
    FreeDos
    Ekran : 17.3" Full HD (1920x1080) Anti-glare
    Intel® 4.Gen.Core™ i5-4200H 2.8GHz
    Intel HM86
    8GB DDR3L 1600MHz
    nVidia GeForce GTX850M 2GB GDDR5
    1TB HDD 7200Rpm

    Here it is:
    http://www.msi.com/support/nb/GE70-2PC-Apache.html#down-bios
    Just simply type the GE70 2PC in the search column at the top right corner of the global website, then you'll find the product page of the model.
    Good luck.

  • [urgent] some  newbie questions about Sun application server

    thank you for reading my post
    1-what is equivalant folder in suna pplication server which act like Tomcat_home\webapps
    its name -i think- is autodeploy folder
    2-how i can mark a context as a "cross Context" cross context are acceable from outside web application context.

    Your first question:
    drop your file under s1as_home/domains/domain1/autodeploy.
    For cross-context, see you need to add the property in WEB-INF/sun-web.xml:
    http://docs.sun.com/source/819-0217/dgdesc.html#wp135273
    table Table A-120 sun-web-app Properties
    Hope that help.
    -- Jeanfrancois

  • MSI GE60 2PE Apache Pro question

    I want to confirm something
    i just bought Msi ge60 a month ago
    the temperature in balanced mode for Gpu is around 49C which is ok for me....
    however the temperature for CPU reach 70C ...... is it normal ? or there is something wrong with the laptop after all...
    (just saying the room is soo cold that i'm shivering right now)

    i don't play anything .... i just let it run while watching some video..
    The weird part when i set to high performance ..... temperature dropped to 60 - 69....very weird..

Maybe you are looking for