Re: [Cppcms-users] apache configuration
Brought to you by:
artyom-beilis
|
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
>
|