Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…/yaws@1229 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
  • Loading branch information
Claes Wikstrom committed Apr 3, 2008
1 parent db30362 commit c431b06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/yaws.hrl
Expand Up @@ -173,7 +173,7 @@
arg_rewrite_mod = yaws,
opaque = [], %% useful in embedded mode
start_mod, %% user provided module to be started
allowed_scripts = [yaws,php],
allowed_scripts = [yaws,php,cgi],
revproxy = []
}).

Expand Down
2 changes: 1 addition & 1 deletion scripts/Makefile
Expand Up @@ -50,7 +50,7 @@ yaws.conf:
./Subst %sslport% 443 > yaws.conf

clean:
rm -f ../bin/yaws
rm -f ../bin/yaws yaws.conf

install: .install

Expand Down
8 changes: 4 additions & 4 deletions www/cgi.yaws
Expand Up @@ -10,7 +10,7 @@ out(A) ->
<h1>Plain CGI and PHP</h1>

<p>
Yaws supports plain CGI just fine. The two most common ways to run yaws cgi script is either as regular cgi scripts or as php scripts through the typical php-cgi binary. Yaws chooses how to ship a file pased on file extension. Let's start with the php-cgi example. PHP files have the extension .php and if we enable php by indicating it in yaws.conf:
Yaws supports plain CGI just fine. The two most common ways to run yaws cgi script is either as regular cgi scripts or as php scripts through the typical php-cgi binary. Yaws chooses how to ship a file based on file extension. Let's start with the php-cgi example. PHP files have the extension .php and if we enable php by indicating it in yaws.conf:
</p>


Expand All @@ -20,7 +20,7 @@ out(A) ->
</verbatim>
</div>

<p>And then also ensure that we have enaable php processing for the individual server as in:
<p>And then also ensure that we have enabled php processing for the individual server as in:
</p>


Expand Down Expand Up @@ -66,7 +66,7 @@ Since the file ends with the magic suffix ".cgi", Yaws will just invoke the file
</p>

<p>
Yet another common scenario is when have a set of CGI files not ending with the \".cgi\" file extension. We can put all the CGI files in a common directory and define an appmod as follows:
Yet another common scenario is when have a set of CGI files not ending with the ".cgi" file extension. We can put all the CGI files in a common directory and define an appmod as follows:
</p>


Expand All @@ -91,7 +91,7 @@ and then configure the appmod appropriately in yaws.conf. The default yaws.conf
</verbatim>
</div>
<p>
Thus if we put put any executable files in the \"cgi-bin\" directory under the docroot, Yaws will speak CGI to those executables.
Thus if we put put any executable files in the "cgi-bin" directory under the docroot, Yaws will speak CGI to those executables.
</p>


Expand Down

0 comments on commit c431b06

Please sign in to comment.