开发者

How may I deploy a Wt application with the built-in web server?

开发者 https://www.devze.com 2023-01-23 04:43 出处:网络
I am new using Wt and I would like to know what I must do to get an example (let’s say Hello) working on a web server (Apache or free webhost for testing).

I am new using Wt and I would like to know what I must do to get an example (let’s say Hello) working on a web server (Apache or free webhost for testing).

I know how to use the built-in web server ; I have to launch that command :

./hello.wt --docroot . --http-address 0.0.0.0 --http-port 8080
开发者_如何学Python

Then, I go to http://127.0.0.1:8080/ and it is working.

But, how may I do this using Apache ?

Thanks.


Pass -DCONNECTOR_FCGI=ON to cmake and follow these instructions for configuring FastCGI with Apache


I added FastCgiServer /dir/to/Wt/Examples/Hello/hello.wt to my fastcgi.conf and now it's working.

0

精彩评论

暂无评论...
验证码 换一张
取 消