GeneralConfig/nginx/sites-available/000_static_root.conf
2020-06-17 13:31:05 -03:00

44 lines
1.2 KiB
Plaintext

server {
listen 80;
server_name CHANGE-ME;
rewrite ^(.*) https://****CHANGE-ME****$1 permanent;
}
server {
server_name CHANGE-ME.lan.uw;
access_log /var/log/nginx/CHANGE-ME_access.log;
error_log /var/log/nginx/CHANGE-ME_error.log;
index index.html index.php index.htm;
include /etc/nginx/ssl/default.conf;
include /etc/nginx/extra/php-fpm.conf;
include /etc/nginx/extra/restrictions.conf;
root /var/www/CHANGE-ME;
location / {
try_files $uri $uri/ /index.php;
location ~ \.php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
}
}
# Static site subfolders
# include /etc/nginx/subfolders/hugo.conf;
# include /etc/nginx/subfolders/sphinx.conf;
# PHP applications
# include /etc/nginx/subfolders/wordpress.conf;
# include /etc/nginx/subfolders/nextcloud.conf;
# include /etc/nginx/subfolders/phpmyadmin.conf;
# include /etc/nginx/subfolders/phpredisadmin.conf;
# include /etc/nginx/subfolders/php-vbox.conf;
# include /etc/nginx/subfolders/phppgadmin.conf;
# include /etc/nginx/subfolders/postfixadmin.conf;
} ## end server block ##