You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.4 KiB
87 lines
2.4 KiB
server {
|
|
listen 80;
|
|
server_name oauth.local;
|
|
index index.php index.html;
|
|
error_log /var/log/nginx/error.log;
|
|
access_log /var/log/nginx/access.log;
|
|
root /var/www/src/public;
|
|
location ~ \.php$ {
|
|
try_files $uri =404;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass oauthgk:9000;
|
|
fastcgi_index index.php;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
}
|
|
location / {
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
gzip_static on;
|
|
}
|
|
|
|
client_max_body_size 128m;
|
|
}
|
|
|
|
#server {
|
|
# listen 80;
|
|
# server_name oauth2.sundayenglish.com;
|
|
# index index.php index.html;
|
|
# error_log /var/log/nginx/error.log;
|
|
# access_log /var/log/nginx/access.log;
|
|
# root /var/www/src/public;
|
|
#
|
|
# location /.well-known/acme-challenge/ {
|
|
# root /var/www/certbot;
|
|
# }
|
|
#
|
|
# location / {
|
|
# return 301 https://oauth2.sundayenglish.com$request_uri;
|
|
# }
|
|
#
|
|
# #location ~ \.php$ {
|
|
# # try_files $uri =404;
|
|
# # fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
# # fastcgi_pass oauthgk:9000;
|
|
# # fastcgi_index index.php;
|
|
# # include fastcgi_params;
|
|
# # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
# # fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
# #}
|
|
# #location / {
|
|
# # try_files $uri $uri/ /index.php$is_args$args;
|
|
# # gzip_static on;
|
|
# #}
|
|
#
|
|
# client_max_body_size 128m;
|
|
#}
|
|
|
|
#server {
|
|
# listen 443 default_server ssl http2;
|
|
# listen [::]:443 ssl http2;
|
|
|
|
# server_name oauth2.sundayenglish.com;
|
|
|
|
# index index.php index.html;
|
|
# error_log /var/log/nginx/error.log;
|
|
# access_log /var/log/nginx/access.log;
|
|
# root /var/www/src/public;
|
|
#
|
|
# ssl_certificate /etc/nginx/ssl/archive/oauth2.sundayenglish.com/fullchain1.pem;
|
|
# ssl_certificate_key /etc/nginx/ssl/archive/oauth2.sundayenglish.com/privkey1.pem;
|
|
#
|
|
# location ~ \.php$ {
|
|
# try_files $uri =404;
|
|
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
# fastcgi_pass oauthgk:9000;
|
|
# fastcgi_index index.php;
|
|
# include fastcgi_params;
|
|
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
# fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
# }
|
|
# location / {
|
|
# try_files $uri $uri/ /index.php$is_args$args;
|
|
# gzip_static on;
|
|
# }
|
|
|
|
# client_max_body_size 128m;
|
|
#}
|
|
|