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,331
    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:
    493
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In your httpd.conf file:

    
    <Directory /home/*/public_html>
    Options +ExecCGI
    </Directory>
    
    Code (markup):
     
    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 Well-Known Member

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

            <Directory /your/home/directory/www/cgi-bin>
            Options +ExecCGI
            AddHandler cgi-script .cgi
            </Directory>
    Code (markup):
    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,

    <form name="proxyForm" action="http://www.mysite.com/nph-proxy.cgi/010110A/x-proxy/start" method="post">
    Code (markup):
    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