Quantcast

Why cannot I visit YAWS remotely ?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Why cannot I visit YAWS remotely ?

z_axis
This post has NOT been accepted by the mailing list yet.
hi, sirs
I have a python CGI application which can be visited locally or remotely when started by `python -m CGIHTTPServer`. However, under YAWS i can only visit it locally.
where, locally means both the browser and the python application are on same machine.

> cat ~/yaws.conf
<server www.qachina.com>
     port = 8000
     listen = 192.168.1.2
     docroot = /media/G/www/qachina/
     access_log = false
     appmods = <cgi-bin, yaws_appmod_cgi>
 </server>

BTW, "listen=0.0.0.0" or "127.0.0.1" still doesnot work!
 
Sincerely!
e^(π.i) + 1 = 0
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Why cannot I visit YAWS remotely ?

z_axis
I have asked it on YAWS maillist. but get no answer :(
e^(π.i) + 1 = 0
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Why cannot I visit YAWS remotely ?

Steve Vinoski-2
Actually I've answered both of your messages on the yaws mailing list,
but you haven't answered my replies.

You need to run

yaws -i

and send the output to the yaws mailing list. Sending your conf file
would be helpful as well.

--steve

On Thu, Jun 9, 2011 at 11:16 PM, z_axis <[hidden email]> wrote:

> I have asked it on YAWS maillist. but get no answer :(
>
> -----
> e^(π.i) + 1 = 0
> --
> View this message in context: http://erlang.2086793.n4.nabble.com/Why-cannot-I-visit-YAWS-remotely-tp3587117p3587417.html
> Sent from the Erlang Questions mailing list archive at Nabble.com.
> _______________________________________________
> erlang-questions mailing list
> [hidden email]
> http://erlang.org/mailman/listinfo/erlang-questions
>
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Why cannot I visit YAWS remotely ?

z_axis
This post has NOT been accepted by the mailing list yet.
>yaws -i
Erlang R14B03 (erts-5.8.4) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:true]


=INFO REPORT==== 15-Jun-2011::15:09:22 ===
Yaws: Using config file /home/xxx/yaws.conf
Eshell V5.8.4  (abort with ^G)
1> yaws:Add path "/usr/local/lib/erlang/lib/yaws-1.90/examples/ebin"
yaws:Running with id="default" (localinstall=true)
Running with debug checks turned on (slower server)
Logging to directory "/home/xxx/yaws/log"

=INFO REPORT==== 15-Jun-2011::15:09:22 ===
Ctlfile : /home/xxx/.yaws/yaws/default/CTL

=INFO REPORT==== 15-Jun-2011::15:09:22 ===
Yaws: Listening to 0.0.0.0:8000 for <1> virtual servers:
 - http://www.qachina.com:8000 under /media/G/www/qachina

Now i can visit http://192.168.1.2:8000/index.htm on the same machine. However, from another machine i cannot visit it without any output of YAWS.
e^(π.i) + 1 = 0
Loading...