[erlang-questions] inets example eval mod_esi

mark <>
Tue Jul 29 02:22:12 CEST 2008


i am trying to get the example in inets working. the eval of mod_esi
is not working. how do i get it to work.

inets.config & httpd.conf are below

this is what i did.
cp -R /usr/lib/erlang/lib/inets-5.0.2/src/ /home/mark/
cp -R /usr/lib/erlang/lib/inets-5.0.2/examples/server_root /home/mark/test
cd /home/mark/src
erl -make
erl -config ./inets
inets:start().

and i go to http://localhost:8888/ it opens fine

but if i go here:
http://localhost:8888/eval/httpd_example/newformat

I get this html error in html
Object Not Found
The requested URL /eval/httpd_example/newformat was not found on this server.

and in error_log, i get this. how do i get it to

==> error_log <==
"Error reading request:No request received on keep-alive
connectionbefore server side timeout"

[28/Jul/2008:17:11:44 -0700] access to /eval/httpd_example/newformat
failed for 127.0.0.1 reason:
"httpd_file: Can't access/home/mark/test/htdocs/eval/httpd_example/newformat"
[28/Jul/2008:17:11:50 -0700] server crash for 127.0.0.1, reason:
"Error reading request:No request received on keep-alive
connectionbefore server side timeout"



inets.config
[{inets,
  [{services,
    [{httpd,"/home/mark/test/conf/httpd.conf"}]}]}].


httpd.conf
Port 8888
BindAddress *
ServerName localhost
SocketType ip_comm

Modules mod_alias mod_auth mod_esi mod_actions mod_cgi
mod_responsecontrol mod_trace mod_range mod_head mod_include mod_dir
mod_get mod_log mod_disk_log
ServerAdmin 
ServerRoot /home/mark/test
ErrorLog logs/error_log
TransferLog logs/access_log
SecurityLog logs/security_log
ErrorDiskLog logs/error_disk_log
ErrorDiskLogSize 200000 10

TransferDiskLog logs/access_disk_log
TransferDiskLogSize 200000 10

SecurityDiskLog logs/security_disk_log
SecurityDiskLogSize 200000 10

MaxClients 50

KeepAlive on

KeepAliveTimeout 10

MaxKeepAliveRequests 10
DocumentRoot /home/mark/test/htdocs
DirectoryIndex index.html welcome.html

DefaultType text/plain

Alias /icons/ /home/mark/test/icons/
Alias /pics/ /home/mark/test/icons/

ScriptAlias /cgi-bin/ /home/mark/test/cgi-bin/
ScriptAlias /htbin/ /home/mark/test/cgi-bin/

ErlScriptAlias /down/erl httpd_example io

EvalScriptAlias /eval httpd_example io
SSLVerifyClient 0



More information about the erlang-questions mailing list