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

"location" directive is not allowed here in /etc/nginx/conf.d/phpmyadmin.inc:1

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
Zmaor
Posts: 2
Joined: Thu Feb 15, 2018 8:08 am

Os: CentOS 6x
Web: nginx + php-fpm
"location" directive is not allowed here in /etc/nginx/conf.d/phpmyadmin.inc:1
  • Quote

Post by Zmaor » Thu Feb 15, 2018 8:09 am

I havnt change anything
logged it to the server and Poof


location /phpmyadmin {
alias /usr/share/phpMyAdmin/;

location ~ /(libraries|setup) {
return 404;
}

location ~ ^/phpmyadmin/(.*\.php)$ {
alias /usr/share/phpMyAdmin/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
alias /usr/share/phpMyAdmin/$1;
}
}
Top


Post Reply
  • Print view
1 post • 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