first commit

This commit is contained in:
云泽网
2025-07-27 21:42:34 +08:00
commit c1cce5ccb4
2779 changed files with 340042 additions and 0 deletions
@@ -0,0 +1,35 @@
server {
listen 80;
server_name www.likeshopv2.localhost;
access_log /logs/www.likeshopv2.localhost_access_nginx.log;
error_log /logs/www.likeshopv2.localhost_error_nginx.log;
client_max_body_size 5M;
location / {
root /server/public;
index index.html index.htm index.php;
if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php?s=$1 last;
break;
}
}
location ~ /.*\.php/ {
rewrite ^(.*?/?)(.*\.php)(.*)$ /$2?s=$3 last;
break;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/html;
}
location ~ \.php$ {
fastcgi_pass likeshop-php7.2:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /server/public$fastcgi_script_name;
include fastcgi_params;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
}
+42
View File
@@ -0,0 +1,42 @@
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
location / {
return 404;
}
}
include /etc/nginx/conf.d/company/*.conf;
include /etc/nginx/conf.d/my/*.conf;
include /etc/nginx/conf.d/product/*.conf;
include /etc/nginx/conf.d/project/*.conf;
}