Nginx/Passenger: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
{|class='wikitable' | |||
|valign='top' style='width:50%'| | |||
<syntaxhighlight lang='bash'> | |||
suod apt-get update;echo | |||
sudo apt install -y nginx | |||
</syntaxhighlight> | |||
|valign='top' style='width:50%'| | |||
|- | |||
|valign='top' colspan='2'| | |||
{|class='wikitable mw-collapsible mw-collapsed' | |||
!scope='col' style='text-align:left'| | |||
Diagram | |||
|- | |||
|valign='top'| | |||
<kroki lang='plantuml'> | |||
@startuml | |||
autonumber | |||
skinparam actorStyle awesome | |||
skinparam BoxPadding 10 | |||
actor "User Browser" as User | |||
box "Web Server Layer" #f8f9fa | |||
participant "Nginx" as Nginx | |||
participant "Passenger Core" as Passenger | |||
end box | |||
box "Application Layer" #e9ecef | |||
participant "Ruby on Rails App" as Rails | |||
database "Database" as DB | |||
end box | |||
User -> Nginx ++: HTTP Request (e.g. GET /posts) | |||
Nginx -> Nginx : Check for static file\n(CSS/Images/JS) | |||
note right: If file exists in /public,\nNginx serves it directly. | |||
alt Request is for Dynamic Content | |||
Nginx -> Passenger ++: Forward request via Socket/HTTP | |||
Passenger -> Passenger : Check for idle Ruby process | |||
note right : If no processes are running,\nPassenger "spawns" a new one. | |||
Passenger -> Rails ++ : Execute Request | |||
Rails -> DB ++ : SQL Query | |||
end | |||
@enduml | |||
</kroki> | |||
|} | |||
|} | |||
==References== | ==References== | ||
{|class='wikitable mw-collapsible' | {|class='wikitable mw-collapsible' | ||
Revision as of 08:28, 6 February 2026
suod apt-get update;echo
sudo apt install -y nginx
|
|||
| |||
References
|
References | ||
|---|---|---|