Thread: [Cppcms-users] apache configuration
Brought to you by:
artyom-beilis
From: mawan s. <ma...@gm...> - 2016-01-18 10:15:33
|
Dear All I have read the documentation about apache configuration 1. FastCgiIpcDir /var/lib/apache2/fastcgi 2. # Usually it is given in fastcgi.conf by default 3. 4. FastCgiServer /opt/app/bin/hello -initial-env CPPCMS_CONFIG=/opt/app/etc/config.js -socket /tmp/hello-fcgi-socket 5. # CPPCMS_CONFIG should hold the path to configuration file. 6. # Note: you can't pass command line parameter 7. # so you pass the location of configuration file 8. # via CPPCMS_CONFIG environment variable 9. 10. FastCGIConfig -maxProcesses 1 -processSlack 1 11. # This is important - we want apache to use only 12. # one process as we have cache and many other 13. # goodies handled by outsefs 14. 15. ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 16. # We map script "/hello" to our application 17. 18. AddHandler fastcgi-script /opt/app/bin/hello Can we configure ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 for all root domain? Can We configure cppcms as root application? Or we user index.html manually? Thanks Mawan |
From: Artyom B. <art...@ya...> - 2016-01-18 10:37:09
|
You need to read this wiki doc: http://cppcms.com/wikipp/en/page/run_application_web_server_root From: mawan sugiyanto <ma...@gm...> To: cpp...@li... Sent: Monday, January 18, 2016 12:14 PM Subject: [Cppcms-users] apache configuration Dear All I have read the documentation about apache configuration - FastCgiIpcDir /var/lib/apache2/fastcgi - # Usually it is given in fastcgi.conf by default - - FastCgiServer /opt/app/bin/hello -initial-env CPPCMS_CONFIG=/opt/app/etc/config.js -socket /tmp/hello-fcgi-socket - # CPPCMS_CONFIG should hold the path to configuration file. - # Note: you can't pass command line parameter - # so you pass the location of configuration file - # via CPPCMS_CONFIG environment variable - - FastCGIConfig -maxProcesses 1 -processSlack 1 - # This is important - we want apache to use only - # one process as we have cache and many other - # goodies handled by outsefs - - ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 - # We map script "/hello" to our application - - AddHandler fastcgi-script /opt/app/bin/hello Can we configure ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 for all root domain?Can We configure cppcms as root application? Or we user index.html manually? Thanks Mawan ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom B. <art...@gm...> - 2016-01-18 10:39:00
|
You need to read this wiki doc: http://cppcms.com/wikipp/en/page/run_application_web_server_root > Can we configure ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 for all > root domain? > Can We configure cppcms as root application? Or we user index.html manually? > > Thanks > > > Mawan > Artyom |
From: mawan s. <ma...@gm...> - 2016-01-18 11:17:08
|
Thankyou Artyom Is the configuration still need script alias? ScriptAliasMatch ^/app(.*)$ /opt/app/bin/appdata/appapp/app$1 On Mon, Jan 18, 2016 at 5:38 PM, Artyom Beilis <art...@gm...> wrote: > You need to read this wiki doc: > > http://cppcms.com/wikipp/en/page/run_application_web_server_root > > > Can we configure ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 for > all > > root domain? > > Can We configure cppcms as root application? Or we user index.html > manually? > > > > Thanks > > > > > > Mawan > > > > Artyom > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@gm...> - 2016-01-18 11:33:43
|
Yes of course, the rewrite rules and fastcgi script rules are independent ones. On Mon, Jan 18, 2016 at 1:16 PM, mawan sugiyanto <ma...@gm...> wrote: > Thankyou Artyom > > Is the configuration still need script alias? > > ScriptAliasMatch ^/app(.*)$ /opt/app/bin/appdata/appapp/app$1 |
From: mawan s. <ma...@gm...> - 2016-01-18 11:39:47
|
Sorry Artyom , this is my apache virtual host configuration, what's wrong about this configuration. <Directory "/opt/app/bin/mywebdata"> AllowOverride All #Options None Options +ExecCGI Order allow,deny Allow from all </Directory> <VirtualHost myweb.test.com:80> ServerAdmin web...@co... DocumentRoot "/opt/app/bin/mywebdata" ServerName myweb.test.com ErrorLog "logs/myweb.test.com-error_log" CustomLog "logs/myweb.test.com-access_log" common FastCgiServer /opt/app/bin/mywebdata/mywebapp/myweb -initial-env CPPCMS_CONFIG=/opt/app/etc/configmyweb.js -socket /tmp/myweb-fcgi-socket ScriptAliasMatch ^/myweb(.*)$ /opt/app/bin/mywebdata/mywebapp/myweb$1 #ScriptAliasMatch ^/(.*)$ /opt/app/bin/mywebdata/mywebapp/myweb$1 AddHandler fastcgi-script /opt/app/bin/mywebdata/mywebapp/myweb RewriteEngine On RewriteRule ^(/media/.*)$ $1 [PT] RewriteRule ^(/favicon\.ico)$ $1 [PT] RewriteRule ^/(.*)$ /mywebapp/myweb$1 [QSA,L] </VirtualHost> still work when pointing to myweb.test.com/myweb/admi/users but when remove myweb => myweb.test.com/admi/users not working . On Mon, Jan 18, 2016 at 6:33 PM, Artyom Beilis <art...@gm...> wrote: > Yes of course, the rewrite rules and fastcgi script rules are independent > ones. > > > On Mon, Jan 18, 2016 at 1:16 PM, mawan sugiyanto <ma...@gm...> > wrote: > > Thankyou Artyom > > > > Is the configuration still need script alias? > > > > ScriptAliasMatch ^/app(.*)$ /opt/app/bin/appdata/appapp/app$1 > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Klaim - J. L. <mj...@gm...> - 2016-01-18 11:48:48
|
For information: this email is still considered spam by gmail. On 18 January 2016 at 11:37, Artyom Beilis <art...@ya...> wrote: > You need to read this wiki doc: > > http://cppcms.com/wikipp/en/page/run_application_web_server_root > > > > ------------------------------ > *From:* mawan sugiyanto <ma...@gm...> > *To:* cpp...@li... > *Sent:* Monday, January 18, 2016 12:14 PM > *Subject:* [Cppcms-users] apache configuration > > Dear All > > I have read the documentation about apache configuration > > > 1. FastCgiIpcDir /var/lib/apache2/fastcgi > 2. # Usually it is given in fastcgi.conf by default > 3. > 4. > FastCgiServer /opt/app/bin/hello -initial-env CPPCMS_CONFIG=/opt/app/etc/config.js -socket /tmp/hello-fcgi-socket > 5. # CPPCMS_CONFIG should hold the path to configuration file. > 6. # Note: you can't pass command line parameter > 7. # so you pass the location of configuration file > 8. # via CPPCMS_CONFIG environment variable > 9. > 10. FastCGIConfig -maxProcesses 1 -processSlack 1 > 11. # This is important - we want apache to use only > 12. # one process as we have cache and many other > 13. # goodies handled by outsefs > 14. > 15. ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 > 16. # We map script "/hello" to our application > 17. > 18. AddHandler fastcgi-script /opt/app/bin/hello > > > Can we configure ScriptAliasMatch ^/hello(.*)$ /opt/app/bin/hello$1 for > all root domain? > Can We configure cppcms as root application? Or we user index.html > manually? > > Thanks > > > Mawan > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Artyom B. <art...@gm...> - 2016-01-18 11:53:11
|
Yes I know My primary mail is at Yahoo so I accidentally send the mail directly from Yahoo instead opening GMail that uses me for mailing lists. That is why I send another one from GMail afterwards. On Mon, Jan 18, 2016 at 1:48 PM, Klaim - Joël Lamotte <mj...@gm...> wrote: > For information: this email is still considered spam by gmail. > > On 18 January 2016 at 11:37, Artyom Beilis <art...@ya...> wrote: >> >> You need to read this wiki doc: >> >> http://cppcms.com/wikipp/en/page/run_application_web_server_root >> |
From: Artyom B. <art...@gm...> - 2016-01-18 11:55:59
|
Note: This > ScriptAliasMatch ^/myweb(.*)$ /opt/app/bin/mywebdata/mywebapp/myweb$1 And this > RewriteRule ^/(.*)$ /mywebapp/myweb$1 [QSA,L] I think it should be: RewriteRule ^/(.*)$ /myweb$1 [QSA,L] Also you have forgotten very-very important option: FastCGIConfig -maxProcesses 1 -processSlack 1 Artyom |
From: mawan s. <ma...@gm...> - 2016-01-18 12:01:44
|
Thankyou Artyom i will try it . and this configuration FastCGIConfig -maxProcesses 1 -processSlack 1 I config on global apache configuration for all cgi app. Thanks On Mon, Jan 18, 2016 at 6:55 PM, Artyom Beilis <art...@gm...> wrote: > Note: > > This > > ScriptAliasMatch ^/myweb(.*)$ /opt/app/bin/mywebdata/mywebapp/myweb$1 > And this > > RewriteRule ^/(.*)$ /mywebapp/myweb$1 [QSA,L] > > I think it should be: RewriteRule ^/(.*)$ /myweb$1 [QSA,L] > > Also you have forgotten very-very important option: > > FastCGIConfig -maxProcesses 1 -processSlack 1 > > > Artyom > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |