nginx record
start nginx
check nginx conf
nginx -t -c ./conf/nginx.conf
nginx -t -c ./conf/nginx.conf
reload nginx
nginx -s reload
nginx -s reload
stop nginx
nginx -s stop
nginx -s stop
quit nginx
nginx -s quit
nginx -s quit
vue router history mode
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
root C:\Users\wdd\Documents\dh-project\frame\dist;
try_files $uri $uri/ /index.html;
}
location /aa/bb {
alias C:\Users\wdd\Documents\dh-project\frame\dist;
try_files $uri $uri/ /aa/bb/index.html;
}
}
}
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
root C:\Users\wdd\Documents\dh-project\frame\dist;
try_files $uri $uri/ /index.html;
}
location /aa/bb {
alias C:\Users\wdd\Documents\dh-project\frame\dist;
try_files $uri $uri/ /aa/bb/index.html;
}
}
}