# Nginx Config for Kirby 3

**URL:** <https://forum.getkirby.com/t/nginx-config-for-kirby-3/17079>\
**Category:** Questions\
**Tags:** v3\
**Created:** [February 1, 2020, 8:07am UTC](https://forum.getkirby.com/t/nginx-config-for-kirby-3/17079 "2020-02-01T08:07:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcschmid](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dcschmid](https://forum.getkirby.com/u/dcschmid)\
**Post date:** [February 1, 2020, 8:07am UTC](https://forum.getkirby.com/t/nginx-config-for-kirby-3/17079/1 "2020-02-01T08:07:37Z")

</div>

Hi All,

i try to run Kirby 3 with nginx, but every config i tried it doesnt work. Have anyone a woorking config for me?

Thanks

I try this:

```
server {
listen 80;
server_name danschmid.test;
root /data/websites/kirby;

client_max_body_size 100M;

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

location ~ /panel {
    index index.php;
    try_files $uri $uri/ /panel/index.php?$uri&$args;
}

location ~ \.php$ {
     include snippets/fastcgi-php.conf;
     fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
     include fastcgi_params;
}

```

}

But i get everytime 403 Errors

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [February 2, 2020, 1:51pm UTC](https://forum.getkirby.com/t/nginx-config-for-kirby-3/17079/2 "2020-02-02T13:51:21Z")

</div>

These settings are the important ones regarding Kirby:

> [@Nginx issues - 500 error for media and panel 'No input file specified'](https://forum.getkirby.com/t/nginx-issues-500-error-for-media-and-panel-no-input-file-specified/12980/2):
>
> Here are the two important parts in our nginx config for the Kirby website that get everything up and running: # site links location / { try\_files $uri $uri/ /index.php$is\_args$args; } # pass the PHP scripts to FastCGI server listening on the php-fpm socket location ~ \.php$ { try\_files $uri = 404; fastcgi\_pass unix:/var/run/php/php7.2-fpm.sock; fastcgi\_index index.php; fastcgi\_param SCRIPT\_FILENAME $document\_root$fastcgi\_script\_name; include fas…

---

<div class="post-metadata">

**Author:** ![Pauel](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pauel/32/8476_2.png) [@Pauel](https://forum.getkirby.com/u/Pauel)\
**Post date:** [May 4, 2020, 3:43pm UTC](https://forum.getkirby.com/t/nginx-config-for-kirby-3/17079/3 "2020-05-04T15:43:45Z")

</div>

Hi,  
could you please post a proven and working nginx configration?  
Or is there one somewhere in the documentation that I haven’t found?  
I simple don’t get it to work from your response.  
Thanks

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [May 4, 2020, 4:11pm UTC](https://forum.getkirby.com/t/nginx-config-for-kirby-3/17079/4 "2020-05-04T16:11:34Z")

</div>

Maybe this “works for me” is helpful: [Error 500 on Panel (Nginx, PHP 7.3)](https://forum.getkirby.com/t/error-500-on-panel-nginx-php-7-3/14557/20)
