Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ligonsker's avatar

Clarification between static and dynamic websites

After trying Nginx I got confused between static and dynamic content. On Nginx site and other places it says Nginx is not used for dynamic content, But then I used Laravel's docs to configure my Laravel app to be served by Nginx. Laravel app is dynamic isn't it? Then what is the meaning of Nginx not being able to serve dynamic content

0 likes
3 replies
fylzero's avatar

@ligonsker HTML = static, it doesn't change or update dynamically. PHP = dynamic, content can be changed, added to, modified before being sent from the server over the internet to the client's web browser.

Static vs Dynamic Websites - What's the Difference?

https://www.youtube.com/watch?v=_wFJj94kSTU

1 like
Ligonsker's avatar

@fylzero Ok so this is the part which I actually understand, but then why nginx docs say it can't serve dynamic content but I am now serving my Laravel app using nginx? which is PHP

fylzero's avatar
fylzero
Best Answer
Level 67

@Ligonsker Nginx is a proxy in front of other servers which are handling dynamic content.

It would probably just be easier to say it can handle dynamic content as a proxy.

1 like

Please or to participate in this conversation.