mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-25 05:58:23 +03:00
22 lines
510 B
Text
22 lines
510 B
Text
|
server {
|
||
|
listen 80 default_server;
|
||
|
server_name shlink.local;
|
||
|
root /home/shlink/www/public;
|
||
|
index index.php;
|
||
|
|
||
|
charset utf-8;
|
||
|
error_log /home/shlink/www/data/infra/nginx/shlink.error.log;
|
||
|
|
||
|
location / {
|
||
|
try_files $uri $uri/ /index.php$is_args$args;
|
||
|
}
|
||
|
|
||
|
location ~ \.php$ {
|
||
|
root /home/shlink/www/public;
|
||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||
|
fastcgi_pass shlink_php:9000;
|
||
|
fastcgi_index index.php;
|
||
|
include fastcgi.conf;
|
||
|
}
|
||
|
}
|