Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

example.com/vstats redirect back to example.com

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
cybaster85
Posts: 13
Joined: Sat Feb 13, 2016 11:03 am

example.com/vstats redirect back to example.com
  • Quote

Post by cybaster85 » Thu Feb 18, 2016 12:10 am

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
Top

cybaster85
Posts: 13
Joined: Sat Feb 13, 2016 11:03 am

Re: example.com/vstats redirect back to example.com
  • Quote

Post by cybaster85 » Sun Feb 21, 2016 2:39 pm

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?
Top

Falzo
Posts: 60
Joined: Mon Mar 28, 2016 8:49 am

Re: example.com/vstats redirect back to example.com
  • Quote

Post by Falzo » Mon Mar 28, 2016 8:58 am

I did use a per domain config e.g. /home/admin/conf/web/nginx.example.org.conf in which to put:

Code: Select all

location /vstats {
        alias /home/admin/web/example.org/stats/;
}
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 ;-)
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password