• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question plesk running nginx (which settings/configs do what?)

larryk

Regular Pleskian
hello... this has been one LONG learning process and maybe this is the final exam? LOL

note: this is all meant to be "Plesk Defaults" --- no custom config, except where noted

1) to run nginx (besides installing it, etc), use either one of these settings
on PHP settings page: use FPM application by apache
or FPM application by nginx

** one puts nginx as primary, the other as secondary? is that correct? OR did I already flunk my exam by asking a wrong question?

2) on the apache and nginx settings page, there are 3 check boxes:
- proxy mode = check, it uses apache. UNchecked, it is all nginx
- smart static files = check, static files servered by nginx and apache gets the rest?
- serve static files = similar to above but you get to specific which is which?

** what happens when you use "FPM application by apache" and UNcheck proxy mode?

3) the real reason for this post:
HOW do you run a .html page with php code on it via all nginx?
basically, FPM application by nginx, with proxy mode off.

answer = you can't by default?
or answer = you can but you need to add directives to allow for it?


So as you can tell -- i've only learned enough to be dangerous and/or ask more questions :)


so while I LOVE the push button settings, checkboxes, etc. and ease of use to add directives...
it seems to me: if there was a section that said this type of info... EVERYone would be happier (and less confused)

if you want to run _____ and have these types of page _____ you need to have these settings _____.

for example:
If you want to run [ nginx/apache/both ] and have these page extensions [.php/.html/etc], you need to do this: list out what config/settings/checks need to be done.

or any extra directive, since the default can't handle it.

:)
 
Back
Top