ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to configure apache to use folder and cgi library

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to configure apache to use folder and cgi library

    Hello,

    Im trying to use sencha extjs which I have to store the html in ifs folders. Im using RPGLE ajax programs in a i5 library.

    How do I configure apache to look both in a folder for the html and in the i5 library for the ajax program

    Im currently using:

    Alias /ipal/ /www/apache02/iPal/ ---for html

    ScriptAlias /ipal/ /qsys.lib/ipal.lib/ --- for ajax rpgle cgi programs

    But, it's not finding my i5 cgi programs

  • #2
    Re: How to configure apache to use folder and cgi library

    Try making it.

    ScriptAlias /ipal/ /QSYS.LIB/IPAL.LIB/$1.PGM

    Comment


    • #3
      Re: How to configure apache to use folder and cgi library

      Thanx,

      I'll give it to my admin folks and let you know how it turn out.

      I sincerely appreciate your response

      Comment


      • #4
        Re: How to configure apache to use folder and cgi library

        You need to give it something different to look for. You can't alias /ipal/ to both the /www/apache02/iPal/ directory and the /qsys.lib/ipal.lib directory. That doesn't make much sense.

        If you're looking for URLs that end in .PGM to be aliased to the library, and URLs that do not end in .PGM to go to the IFS directory, then you need to tell it to look for the .PGM

        Code:
        ScriptAliasMatch /ipal/(.*).pgm /qsys.lib/ipal.lib/$1.PGM
        Alias /ipal/ /www/apache02/iPal/
        This way, it does the ScriptAlias only when Matching a URL that ends in .PGM.

        Comment


        • #5
          Re: How to configure apache to use folder and cgi library

          Thanx Scott,

          I dont configure apache servers. I just use them. But trying to tell an admin person what he did was not working is not going to be a good day. So Im looking for suggestions.

          Comment

          Working...
          X