| Author |
Message |
|
| Guest |
Posted: Thu Aug 23, 2007 2:08 am |
|
|
|
Guest
|
Hi,friends,
I encountered the problem is that, after I installed YAWS and started:
1.
It can not recongnize index.yaws, and directly disply "404 not found", when I input as "http://localhost:8000/index.yaws", it display as:
" out(A) -> [{ssi, "TAB.inc","%%",[{"index", "choosen"}]}, {ehtml, [{'div', [{id, "entry"}], [{h1,[],"Yaws"}, {p,[],"Yaws is a HTTP high perfomance 1.1 webserver particularly" " well suited for dynamic-content webapplications. Two separate modes of operations are supported."}, {ul,[], [{li,[], {p,[],"Standalone mode where Yaws runs as a regular webserver " "daemon. This is the default mode."}}, {li,[], {p,[], "Embedded mode where Yaws runs as an embedded webserver in " "another erlang application."}} ]}, {p,[], ["Yaws is entirely written in ", {a, [{href, "http://www.erlang.org"}], "Erlang"}, " furthermore it is a multithreaded webserver where one " "Erlang light weight process is used to handle each client."]}, {p,[], "The main advantages of yaws compared to other Web technologies" " are performance and elegance. The performance comes from the " " underlying Erlang system and its ability to handle concurrent " " processes in an efficent way. Its elegance comes from Erlang as " "well. Web applications dont have to be written in ugly adhoc " "languages."}, {h2,[], "yaws.hyber.org"}, {p,[], ["The www page for Yaws is ", {a ,[{href,"http://yaws.hyber.org"}], "yaws.hyber.org"}, " The documentation, examples as well as releases can be " "found there, and of course, ", {a ,[{href,"http://yaws.hyber.org"}],"yaws.hyber.org"}, " is itself powered by Yaws."]}, {p,[], ["A mailing list exists at: ", {a,[{href,"https://lists.sourceforge.net/lists/listinfo/""erlyaws-list"}], "https://lists.sourceforge.net/lists/listinfo/erlyaws-list"}]}, {h2, [], "News"}, gen_news(A)]}]}, {ssi, "END2",[],[]}]. gen_news(A) -> case [url=file:open(a#arg.docroot]file:open(A#arg.docroot[/url] ++ "/news",[read]) of {ok, Fd} -> gen_news(Fd, io:get_line(Fd,'')); Err -> {p,[], f("No news: ~p",[Err])} end. gen_news(Fd, eof) -> [url=file:close(fd]file:close(Fd[/url]), []; gen_news(Fd, Line) -> Items = gen_items(Fd, io:get_line(Fd, '')), case Items of [] -> gen_news(Fd, io:get_line(Fd,'')); _ -> X = [{'div', [{class, "news"}], [{h3, [], Line}, {ul, [], Items}]} ], [X | gen_news(Fd, io:get_line(Fd,''))] end. gen_items(Fd, [10]) -> []; gen_items(Fd,eof) -> []; gen_items(Fd,Line) -> [{li, [], {p, [], Line}} |gen_items(Fd, io:get_line(Fd, ''))].
"
Means not excute.
2.
I setup php, but as there is nothing. not excute, no display anything.
I'd like to know if I setup somgething wrong? or are there any special settings outside of the yaws.pdf?
3.
my yaws.conf:
<server rays-wym>
|
|
|
| Back to top |
|
| Guest |
Posted: Thu Aug 23, 2007 8:05 am |
|
|
|
Guest
|
Wang Zhan Feng wrote:
> Hi,friends,
> I encountered the problem is that, after I installed YAWS and started:
> 1.
> It can not recongnize index.yaws, and directly disply "404 not found",
> when I input as "http://localhost:8000/index.yaws", it display as:
>
It's the
dav = true
which makes this happen, I'm not entirely sure
why though .... maybe some of the dav guys could tell.
Anyway, when dav processing is on, yaws pages are not
processed ..... Is this desired behavior ???
>
> 2.
> I setup php, but as there is nothing. not excute, no display anything.
> I'd like to know if I setup somgething wrong? or are there any special
> settings outside of the yaws.pdf?
>
>
> php_exe_path = /opt/php/bin
>
This needs to be set to the exacutable which is capable of
executing php under cgi, not a directory. (I added a check for this
in yaws_config.erl)
/klacke
--
Claes Wikstrom -- Caps lock is nowhere and
http://www.tail-f.com -- everything is under control
cellphone: +46 70 2097763
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|