-
-
Notifications
You must be signed in to change notification settings - Fork 309
Using NamelessMC on Arch Linux with nginx
Sam edited this page Feb 8, 2017
·
1 revision
Below is an example nginx configuration file for Arch Linux users kindly provided by DJ_1420, and it will need modifying depending on your server setup.
worker_processes auto;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
gzip on;
charset utf-8;
server {
listen 80;
listen [::]:80;
index index.html index.htm index.php;
root /srv/http/public;
location / {
try_files $uri $uri/ /index.php?$args;
# try_files $uri $uri/ =404;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
error_page 404 /404.php;
}
}
If you need further help, feel free to join our Discord server for support 😃