1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Formmail help

Discussion in 'HTML, Graphics & Programming' started by Morlan, 3 Aug 2006.

  1. Morlan

    Mobster

    Joined: 18 Oct 2002

    Posts: 3,245

    Location: melbourne

    My CGI-BIN folder is located above the root of the public_html folder. How do I point the feedback form to it?

    eg

    /home/server199/public_html/contact.html
    /home/server199/cgi-bin/formmail.cgi

    I've tried:

    Code:
    <form name="formmail" action="/home/server199/cgi-bin/formmail.cgi" method="post">  
    
    ..but that doesn't work. Any ideas?

    Thanks.
     
    Last edited: 3 Aug 2006
  2. Augmented

    Soldato

    Joined: 18 Oct 2002

    Posts: 5,464

    Location: London Town

    You need to use the ScriptAlias directive in either your apache config (httpd.conf) or virtualhost container for the site.

    Code:
    ScriptAlias /cgi-bin/ /home/server199/cgi-bin/
    Code:
    <form name="formmail" action="/cgi-bin/formmail.cgi" method="post">
     
  3. Morlan

    Mobster

    Joined: 18 Oct 2002

    Posts: 3,245

    Location: melbourne

    Many thanks