<!DOCTYPE html><html><head><style type="text/css">body { font-family:'DejaVu Sans Mono'; font-size:12px; background:Window}</style></head><body><div>I'am doing this with Debian Squeeze & fcgiwrap installed. I've seen fcgiwrap present in Ubuntu.</div><div><br></div><div>Example script (Must be executable)</div><div><br>#!/bin/sh<br># -*- coding: utf-8 -*-<br>NAME=`"cpuinfo"`<br>echo "Content-type:text/html\r\n"<br>echo "<html><head>"<br>echo "<title>$NAME</title>"<br>echo '<meta name="description" content="'$NAME'">'<br>echo '<meta name="keywords" content="'$NAME'">'<br>echo '<meta http-equiv="Content-type" content="text/html;charset=UTF-8">'<br>echo '<meta name="ROBOTS" content="noindex">'<br>echo "</head><body><pre>"<br>date<br>echo "\nuname -a"<br>uname -a<br>echo "\ncpuinfo"<br>cat /proc/cpuinfo<br>echo "</pre></body></html>"<br><br>Run it here <a href="http://newhost.qaq.me/cpuinfo.sh">http://newhost.qaq.me/cpuinfo.sh</a></div><div><br></div><div>Also using this as an include file, not restricted to only shell scripts.</div><div><br></div><div>location ~ (\.cgi|\.py|\.sh|\.pl|\.lua)$ {<br>    gzip off;<br>    root  /var/www/$server_name;<br>    autoindex on;<br>    fastcgi_pass  unix:/var/run/fcgiwrap.socket;<br>    include /etc/nginx/fastcgi_params;<br>    fastcgi_param  DOCUMENT_ROOT      /var/www/$server_name;<br>    fastcgi_param SCRIPT_FILENAME  /var/www/$server_name$fastcgi_script_name;<br>}<br><br>On Tue, 08 Nov 2011 10:01:07 -0000, etrader <nginx-forum@nginx.us> wrote:<br><br>> I have a Nginx installed on Linux (Ubuntu or Centos) without any<br>> scripting language such as PHP or Python (connected to the webserver).<br>> Can I run Shell commands from a webpage (e.g. html)?<br>><br>> I mean is it possible to use nginx without script languages by shell<br>> scripts?<br>><br>> Posted at Nginx Forum:  <br>> <a href="http://forum.nginx.org/read.php?2,217975,217975#msg-217975">http://forum.nginx.org/read.php?2,217975,217975#msg-217975</a><br>><br>> _______________________________________________<br>> nginx mailing list<br>> nginx@nginx.org<br>> <a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a><br><br><br></div></body></html>