Skip to content

Instantly share code, notes, and snippets.

@papilip
Created July 26, 2022 11:39
Show Gist options
  • Save papilip/9d19fbd1edefe63e63bc296612fa97ba to your computer and use it in GitHub Desktop.
Save papilip/9d19fbd1edefe63e63bc296612fa97ba to your computer and use it in GitHub Desktop.
#/usr/local/etc/nginx/servers/noalyss.conf
#
# sudo mkdir -p /opt/noalyss && cd /opt && sudo chown -R `id -un`:`id -gn` noalyss && cd
# cd /opt && git clone https://gitlab.com/noalyss/noalyss.git
server {
listen 8082;
listen 8282;
server_name localhost;
root /opt/noalyss/html;
index index.php;
error_log /usr/local/var/log/nginx/noalyss.error.log;
#access_log /usr/local/var/log/nginx/noalyss.access.log;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
try_files $uri = 404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment