Initial Commit
This commit is contained in:
43
nginx/sites-available/000_static_root.conf
Normal file
43
nginx/sites-available/000_static_root.conf
Normal file
@@ -0,0 +1,43 @@
|
||||
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 ##
|
||||
|
Reference in New Issue
Block a user