初始化仓库
This commit is contained in:
19
nginx/configs/byjd.conf
Normal file
19
nginx/configs/byjd.conf
Normal file
@@ -0,0 +1,19 @@
|
||||
server{
|
||||
listen 18702;
|
||||
server_name "127.0.0.1";
|
||||
index index.php;
|
||||
root /var/www/html/byjd;
|
||||
location ~ \.php(.*)$ {
|
||||
fastcgi_pass php-fpm:9000;
|
||||
include fastcgi_params;
|
||||
fastcgi_param PATH_INFO $1;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
location / {
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^/index.php(.*)$ /index.php?s=$1 last;
|
||||
rewrite ^(.*)$ /index.php?s=$1 last;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
26
nginx/configs/phpmyadmin.conf
Normal file
26
nginx/configs/phpmyadmin.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
server{
|
||||
listen 18701;
|
||||
server_name "127.0.0.1";
|
||||
# index index.php;
|
||||
# root /var/www/html/phpMyAdmin;
|
||||
# location ~ \.php(.*)$ {
|
||||
# fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
|
||||
# include fastcgi_params;
|
||||
# fastcgi_param PATH_INFO $1;
|
||||
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
# }
|
||||
# location / {
|
||||
# if (!-e $request_filename) {
|
||||
# rewrite ^/index.php(.*)$ /index.php?s=$1 last;
|
||||
# rewrite ^(.*)$ /index.php?s=$1 last;
|
||||
# break;
|
||||
# }
|
||||
# }
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_pass http://phpmyadmin:80;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user