Search code examples
c++frameworkswt

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


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

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

But, how may I do this using Apache ?

Thanks.


Solution

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