1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Guide me: about cgiproxy cgi-bin/nph-proxy.cgi

Discussion in 'Content Management' started by venusus, Jan 19, 2007.

  1. #1
    Hello
    i install cgiproxy but i don't like run cgiproxy as this address: www.mysite.com/cgi-bin/nph-proxy.cgi
    i want show cgiproxy as this: www.mysite.com & i dont like visitor go to cgi-bin/nph-proxy.cgi
    How can i do it
    Thank you
    venusus, Jan 19, 2007 IP
  2. Pat Gael

    Pat Gael Banned

    Messages:
    1,332
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You would need to be hosted on a server which allows you to run cgi scripts from any directory and rename the file as index.cgi, tweaking also the .htaccess file to make it recognize this as index page.
    Pat Gael, Feb 12, 2007 IP
  3. TomN

    TomN Peon

    Messages:
    494
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In your httpd.conf file:

    Code (Text):
    1.  
    2. <Directory /home/*/public_html>
    3. Options +ExecCGI
    4. </Directory>
    5.  
    TomN, Feb 15, 2007 IP
  4. omidse

    omidse Peon

    Messages:
    741
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #4
    omidse, Feb 15, 2007 IP
  5. ThreeGuineaWatch

    ThreeGuineaWatch Active Member

    Messages:
    1,471
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    88
    #5
    You'd need to allow execution of cgi scripts for the directory where the script resides. Something like:

    Code (Text):
    1.         <Directory /your/home/directory/www/cgi-bin>
    2.         Options +ExecCGI
    3.         AddHandler cgi-script .cgi
    4.         </Directory>
    in your vhosts section of your httpd.conf

    (I assume you are running a dedicated box?)

    Then, write a basic form and use something like this for the form definition,

    Code (Text):
    1. <form name="proxyForm" action="http://www.mysite.com/nph-proxy.cgi/010110A/x-proxy/start" method="post">
    Cheers,
    ThreeGuineaWatch, Feb 16, 2007 IP
  6. Josh-H

    Josh-H Active Member

    Messages:
    406
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #6
    Well what I have done on www.invisibler.com

    Is I have just put a htaccess redirect from index.php to cgiproxy/nph-proxy.pl
    Josh-H, Feb 16, 2007 IP