[Cppcms-users] Attempting to run cppcms at webroot
Brought to you by:
artyom-beilis
From: Allan S. <all...@su...> - 2011-09-01 22:38:58
|
Sorry for the late answer, actually I was not registered on the user list (you know "I will do that tomorrow") I'm not an apache wizard, far from that, but here is what I've written to make it run there http://tato.sysko.fr (It's my alpha version of the website, directly plug on the master branch, so if it's broken when you read this message, just try a little later:-P) cat /etc/apache2/sites-enabled/tatoebacpp FastCGIConfig -maxProcesses 1 -processSlack 1 <VirtualHost *:80> ServerName tato.sysko.fr ServerAlias *.tato.sysko.fr # Usually it is given in fastcgi.conf by default FastCgiServer /blablabla/tatoebacpp_git/build/tatoeba -initial-env CPPCMS_CONFIG=/blablabla/tatoebacpp_git/config.js -socket /tmp/hello-fcgi-socket ScriptAliasMatch ^(.*)$ /blablabla/tatoebacpp_git/build/tatoeba$1 AddHandler fastcgi-script /blablabla/tatoebacpp_git/build/tatoeba </VirtualHost> nothing else, no url rewriting inside apache, and on the same apache I've also my blog running with an instance of cppcms blog with the same configuration as below, except of course the server name (here if you ask why I have a ServerAlias directive, it's because I use the subdomain to choose the interface language en.website.ltd fr.website.ltd etc.) After I don't know if this configuration file is made in the rules of the art, but well it works, so I haven't touched it since. hope it helps. Regards, Allan |