Closed SumitFlochat closed 7 years ago
Try creating a file with the following content and name the file "yaws.conf":
id = "Test"
logdir = .
<server localhost>
listen = 0.0.0.0
port = 8443
docroot = .
</server>
Then execute:
$yaws --conf yaws.conf
Note that you need a valid "docroot" field in the configuration. In the example above, the current directory is used as the docroot.
Thank you It worked...
Cheers.
Hi,
I have used following commands :-
=INFO REPORT==== 16-May-2017::14:12:33 === Yaws: Using global subconfig file /etc/yaws/conf.d/localhost-ssl.conf
=INFO REPORT==== 16-May-2017::14:12:33 === Warning, Skip invalid docroots at line 17 : /usr/share/yaws/www
=ERROR REPORT==== 16-May-2017::14:12:33 === Yaws: bad conf: No valid docroot configured for virthost 'localhost' (port: 8443) terminating
How to fix it ? Can anyone help?