I want nginx to serve zabbix & poudriere.
No idea how to do so.
Here is my config file for zabbix,
No idea how to do so.
Here is my config file for zabbix,
Code:
cat nginx.conf
user www www;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name myfreebsd; # Change to your domain name or IP address
index index.php index.html index.htm;
# Allow caching static resources
location ~* ^.+\.(jpg|jpeg|gif|png|ico|svg|woff|css|js|html)$ {
add_header Cache-Control "public";
expires 2d;
}
location / {
try_files $uri $uri/ =404;
}
root /usr/local/www/zabbix74; # Ensure this matches your web root
location ~\.php$ {
fastcgi_pass 127.0.0.1:9000; # Use the IP address and port here
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}