We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
example.com/vstats redirect back to example.com
-
- Posts: 13
- Joined: Sat Feb 13, 2016 11:03 am
example.com/vstats redirect back to example.com
everything works fine since the installation
but we found that the stats page can not be visited either from vestacp link or direct url
we have already done chmod 744 for /home/fashion/web/example.com/stats
but it still redirect back to index page of example.com
nginx+php-fpm default template
but we found that the stats page can not be visited either from vestacp link or direct url
we have already done chmod 744 for /home/fashion/web/example.com/stats
but it still redirect back to index page of example.com
nginx+php-fpm default template
-
- Posts: 13
- Joined: Sat Feb 13, 2016 11:03 am
Re: example.com/vstats redirect back to example.com
not sure if anyone can help me
after doing some research i foudn that awstats config alias are missing in /etc/nginx/conf.d/
i would like to add it by myself but no luck, i had tried
location /vstats{
alias /usr/share/awstats/;
location ~ /(libraries|setup) {
return 404;
}
location ~ ^/vstats/(.*\.php)$ {
alias /usr/share/awstats/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
any one can provide some help?
after doing some research i foudn that awstats config alias are missing in /etc/nginx/conf.d/
i would like to add it by myself but no luck, i had tried
location /vstats{
alias /usr/share/awstats/;
location ~ /(libraries|setup) {
return 404;
}
location ~ ^/vstats/(.*\.php)$ {
alias /usr/share/awstats/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
any one can provide some help?
Re: example.com/vstats redirect back to example.com
I did use a per domain config e.g. /home/admin/conf/web/nginx.example.org.conf in which to put:
which works so far.
probably this small part should be in the per domain nginx-template though, you can take a look into /usr/local/vesta/data/templates/nginx/php5-fpm and probably make your own ;-)
Code: Select all
location /vstats {
alias /home/admin/web/example.org/stats/;
}
probably this small part should be in the per domain nginx-template though, you can take a look into /usr/local/vesta/data/templates/nginx/php5-fpm and probably make your own ;-)