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

Nginx.conf configuration for code igniter

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
sephs
Posts: 2
Joined: Sun Feb 08, 2015 1:10 pm

Nginx.conf configuration for code igniter
  • Quote

Post by sephs » Thu Sep 01, 2016 11:19 pm

Hello.

I used the Codeigniter2.tpl in nginx.conf. But my website dont work... I received 404 error page or blank page. The system use Nginx+PHP5 FPM.

But the moment, I tried to use VestaCP (Apache+Nginx) worked.... ( in other machine)

Help Me..
Top

ulasoft
Posts: 6
Joined: Sat Mar 04, 2017 9:07 pm

Re: Nginx.conf configuration for code igniter
  • Quote

Post by ulasoft » Fri Mar 10, 2017 11:45 am

You can try to add this code:

Code: Select all

location / {
        try_files $uri $uri/ /index.php;# 
}
надо это добваить и всё прекрасно работает я сам только что попробовал
Top


Post Reply
  • Print view

2 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