Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Example nginx Config

Taylor Broad edited this page Aug 1, 2019 · 1 revision

If you are using nginx, this is an example server config file that'll get you started. I use this file as a base for sites hosted on my dedicated servers ~Taylor

server {
        root /var/www/dev_fsvaos_net/public;
        index index.php index.html index.htm;
        server_name dev.fsvaos.net;
        location / {
                try_files $uri $uri/ /index.php$is_args$args;
        }
        location ~ \.php$ {
                try_files $uri /index.php = 404;
                fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }


    listen 80;

}
Clone this wiki locally