Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, I apologize for this extremely newbie question. I searched around but couldn't find an answer, perhaps I'm not searching for the correct terms. I installed a web application, which ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    2

    apache redirecting default home page


    Hello,

    I apologize for this extremely newbie question. I searched around but couldn't find an answer, perhaps I'm not searching for the correct terms.

    I installed a web application, which required an install of apache, and resides in cgi-bin. It works, but I need to go to http://xxx.yyy.zzz/cgi-bin/some_app.cgi to utilize. How can I tweak apache so that I merely have to go to http://xxx.yyy.zzz to get to that one specific cgi file. There are several other .cgi files in the cgi-bin directory.

    Thanks for any help!

  2. #2
    Just Joined!
    Join Date
    Nov 2007
    Posts
    8
    Use a virtual Host in your apache config. Pretty easy and I'm sure you can find something about this in google

    Aaron

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    2
    Wouldn't I have to set up a second IP address to do that?

  4. #4
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    using name based virtual hosts (google it) you can have multiple names all on the same apache install and using the same ip. to redirect like you are talking you can probably use a redirectmatch command in a virtual host
    apache redirectmatch - Google Search

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •