Questions tagged [cgi]

Cgi is the common gateway interface, used for interactive webpages.

279 questions
4
votes
2 answers

What is the difference between a proxy server and a gateway server?

From Proxy server on Wikipedia: A proxy server may reside on the user's local computer, or at any point between the user's computer and destination servers on the Internet. A proxy server that passes unmodified requests and responses is usually…
Tim
  • 1,487
  • 6
  • 28
  • 43
4
votes
3 answers

Can I detect when a client has disconnected from a CGI?

I have a rather resource intensive CGI that takes quite a long time to start sending data. We've seen quite a few cases where impatient people reload a couple of times, which then triggers additional runs of the CGI to be loaded, or cases where the…
Joe H.
  • 1,917
  • 12
  • 13
4
votes
0 answers

Git Pull on CGI and Command Line have different results

I have an "after push" webhook on GitHub that calls a CGI script to update a Jekyll website. The script: user@server [~/_repo]# cat cgi-bin/githook.cgi #!/bin/bash echo Content-type: text/plain echo if [ -z "$HOME" ] ;…
yakatz
  • 1,213
  • 4
  • 12
  • 35
4
votes
1 answer

Apache not calling the Smart HTTP CGI

I'm setting up a git server with git-http-backend and Smart HTTP but Apache doesn't seem to be calling the Smart HTTP CGI: $ curl http://localhost/repo/myproject.git/info/refs?service=git-receive-pack 2ddf56592a0f55456b8c42dc9f2cb9289f083f53 …
Bo A
  • 153
  • 1
  • 6
4
votes
2 answers

How do I properly disable cgi scripts e.g. guestbook.cgi on WHM

After a PCI scan identified guestbook.cgi as a risk, I want to disable the cgi-scripts installed by WHM (v11, running on CentOS5). I would like to do this "properly" using the WHM Web interface if possible (so this configuration survives an update…
agtb
  • 226
  • 2
  • 8
4
votes
3 answers

Windows Apache 2.2 painfully slow executing CGI

I've recently set up Apache 2.2 and git on one of our Windows XP PCs for gitweb access using the setup at https://git.wiki.kernel.org/index.php/MSysGit:GitWeb As noted on the wiki, the only version of Perl that seems to work with gitweb the way it…
JJS
  • 39
  • 4
4
votes
3 answers

Generate TFTP Content on the fly?

I know this isn't the purpose of TFTP, but I'm working in an environment where a lot of different types of devices pull provisioning info from a TFTP server. What I'm developing is a provisioning system that tracks and maintains device…
andyortlieb
  • 1,092
  • 1
  • 12
  • 25
4
votes
3 answers

Apache 2.2 CGI timeout configuration

I have a default Apache 2.2 system setup with a Perl CGI script directory configured like so: ScriptAlias /jarvis/ "/opt/jarvis/cgi-bin/" Nothing fancy in here except one of my scripts takes over 10 minutes to process, and due to various reasons,…
Jamie Love
4
votes
1 answer

How to get input content from GET or POST request in CGI program (via apache)?

I'm studying making a CGI program. Now I can print text what I want. But how can I get GET or POST input from CGI program? (such as query-string or post-body)
Eonil
  • 10,459
  • 16
  • 36
  • 54
3
votes
2 answers

Force all Perl scripts to run with `use strict`

I just went through a large legacy Perl web application (built using cgi-lib.pl and running as CGI with Apache HTTPD) and updated every script to use strict;, fixing a lot of small bugs along the way. Now this is done, I want to prevent people from…
yakatz
  • 1,213
  • 4
  • 12
  • 35
3
votes
1 answer

mod_rewrite: Rewriting / to cgi script

I have a vhost in which I would like to rewrite / to something like /cgi-bin/script?123. I thought something like this would work, but this rewrites to "/index.html/ somehow. RewriteEngine On RewriteRule ^/$ /cgi-bin/script.cgi?123 [L] How can you…
3
votes
1 answer

cgit only works on command line, but not with nginx

Like many times, I used a virtual machine to test something. This is the reason why the configuration is maybe a bit dirty. I just try to get cgit running with nginx. I created a directory /git (owner: www-data:www-data) which contains a git…
Kevin Meier
  • 131
  • 5
3
votes
3 answers

What's the safest way to kick off a root-level process via cgi on an Apache server?

The problem: I have a script that runs periodically via a cron job as root, but I want to give people a way to kick it off asynchronously too, via a webpage. (The script will be written to ensure it doesn't run overlapping instances or such.) I…
MartyMacGyver
  • 167
  • 3
  • 11
3
votes
1 answer

Suexec, group-writeable files

I am running an Apache server with Suexec. However, I get an internal server error if I try to execute a CGI script that is group-writeable (if I chmod g-w , the script runs fine) However, I want the file to be group-writeable. SuPHP has a config…
Jeff
  • 135
  • 3
3
votes
2 answers

Apache: Include Virtual SSI not working for CGI script

I have the following Server Side Includes within an .html file called test.html... When I view test.html live in my browser, myFile.html is being…
Sparky
  • 141
  • 1
  • 6
1
2
3
18 19