I am trying to configure fcgid.conf file for Wt (witty-web toolkit) for apache2 2.4 on Ubuntu 23. I found a config file for FastCGI (not fcgid) and convert commands to fcgid ones using apache2 web page. But one is left FastCgiServer /var/www/html/hello.wt
Here is my full code:
AddHandler fcgid-script .wt
FcgidIPCDir /var/lib/apache2/fcgid
FcgidIdleTimeout 100
FcgidMaxProcessesPerClass 1
FcgidInitialEnv WT_APP_ROOT=/tmp
# FastCgiServer /var/www/html/hello.wt (I want to find the equivalence for fcgid)
<IfModule mod_mime.c>
AddHandler fcgid-script .fcgi
</IfModule>
</IfModule>
How can I configure for witty? There is not enough documentation for this.
EDIT:
I changed fcgid.conf to:
<IfModule mod_fcgid.0c>
AddHandler fcgid-script .wt
FcgidIPCDir /var/lib/apache2/fcgid
FcgidIdleTimeout 100
FcgidMaxProcessesPerClass 1
FcgidInitialEnv WT_APP_ROOT=/tmp
<Directory /var/www/html>
Options +ExecCGI
FcgidWrapper /var/www/html .wt
Order deny,allow
</Directory>
<IfModule mod_mime.c>
AddHandler fcgid-script .fcgi
</IfModule>
</IfModule>
and hello.conf file is:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName hello
ServerAlias www.hello
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory "/var/www/html">
Options +ExecCGI +Indexes +FollowSymLinks -MultiViews +SymLinksIfOwnerMatch
AllowOverride None
Order deny,allow
</Directory>
</VirtualHost>
No error but the the results is:
[1]: https://i.stack.imgur.com/6B8Ep.png