TurnKey Linux Virtual Appliance Library

config apache for cgi

Alexis's picture

 

hello how i config apache2 when a type www.test.com this call my cgi-bin application

to run my cgi application and no a web page

Jeremy's picture

I don't know anything about CGI scripts

Can't say I know that much about Apache either, but I guess (if I understand you correctly) that you want to have your index page (eg index.html/index.php/etc) launching your CGI scripts (that by default are found in cgi-scripts/ IIRC - check the default site configuration to be sure: /etc/apache2/sites-available/default).

Alexis's picture

Yes that it

Yes that it


Alexis's picture

SO HOW I DO THAT thanks

SO HOW I DO THAT

thanks


Jeremy's picture

Check /etc/apache2/sites-available/default

But IIRC then there is an alias set for the cgi scripts folder as web-root/cgi or similar (ie some.domain.com/cgi). So in your html, you would just put the path to your scripts as /cgi (or whatever it is).

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)