每当我尝试点击按钮发送电子邮件时,我都会在Chrome浏览器的inspect部分看到此500内部服务器错误。当然,没有发送电子邮件。救命啊!
系统是安装了Apache的Windows服务器。
下面是nginx.conf
worker_processes 1;
events {
worker_connections 1024;
}
http {
include 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 logs/access.log main;
sendfile on;
#tcp_nopush on;
client_max_body_size 20M;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
#staging
server {
listen 8000;
server_name localhost;
index index.php index.html index.htm;
location / {
root "html\\staging\\facade\\v1";
try_files $uri $uri/ /404.html;
}
location /admin {
alias html/staging/admin-fe/;
try_files $uri $uri/ /404.html;
}
location /api {
root html/staging/essence/public;
rewrite /api/(.*) /$1;
## Check for file existing and if there, stop ##
if (-f $request_filename) {
break;
}
## Check for file existing and if there, stop ##
if (-d $request_filename) {
break;
}
rewrite /(.*) /index.php/$1; break;
proxy_pass http://192.0.0.228:19120;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_read_timeout 150;
}
location /crm {
root html/staging/essence/public;
rewrite /crm/(.*) /$1;
## Check for file existing and if there, stop ##
if (-f $request_filename) {
break;
}
## Check for file existing and if there, stop ##
if (-d $request_filename) {
break;
}
rewrite /(.*) /index.php/$1; break;
proxy_pass http://192.0.0.228:19120;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_read_timeout 150;
}
}
#live
server {
listen 8100;
server_name localhost domain.com www.domain.com;
index index.php index.html index.htm;
client_max_body_size 20M;
location / {
root "html\\live\\facade\\v1";
try_files $uri $uri/ /404.html;
}
location /admin {
alias html/live/admin-fe/;
try_files $uri $uri/ /404.html;
}
location /api {
root html/live/essence/public;
rewrite /api/(.*) /$1;
## Check for file existing and if there, stop ##
if (-f $request_filename) {
break;
}
## Check for file existing and if there, stop ##
if (-d $request_filename) {
break;
}
rewrite /(.*) /index.php/$1; break;
proxy_pass http://192.0.0.228:19121;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_read_timeout 150;
}
location /crm {
root html/live/essence/public;
rewrite /crm/(.*) /$1;
## Check for file existing and if there, stop ##
if (-f $request_filename) {
break;
}
## Check for file existing and if there, stop ##
if (-d $request_filename) {
break;
}
rewrite /(.*) /index.php/$1; break;
proxy_pass http://192.0.0.228:19121;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_read_timeout 150;
}
}
}