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 + FPM-PHP .conf files - is the logic correct?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Nginx + FPM-PHP .conf files - is the logic correct?
  • Quote

Post by SS88 » Mon May 02, 2016 1:06 pm

Hey guys.

I just wanted to know if the correct set-up for this is "logic"?

You place location ~ [^/]\.php(/|$) { inside location / { and by doing this it makes it difficult to do "extra things" (such as password protect a directory) in nginx.<website>.conf

If you want to password protect a directory you have to create a new location and also include a duplicate of location ~ [^/]\.php(/|$) { because you have already placed this inside location / {

If you remove location / { and just add location ~ [^/]\.php(/|$) { then the majority of rules and locations work again. Does this make sense?
Top

Elizine
Posts: 50
Joined: Wed Aug 12, 2015 12:11 pm
Contact:
Contact Elizine
Website

Re: Nginx + FPM-PHP .conf files - is the logic correct?
  • Quote

Post by Elizine » Tue May 03, 2016 10:56 am

Yes, the logic is correct. Please refer the link below for tips and tricks -
http://www.if-not-true-then-false.com/2 ... nd-tricks/
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