server {
listen 80;
server_name www.furhacker.cn;
location /{
# return 301;
rewrite ^(.*)$ https://$host$1 last;
#rewrite ^(.*)$ https://$host$1 permanent;
}
}

server {
listen 443;
server_name www.furhacker.cn;
root html;
index index.html index.php index.htm;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;

ssl on;
ssl_certificate_key server.key;
ssl_certificate server.pem;

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
include rewrite/***.conf;
#charset koi8-r;

#access_log logs/host.access.log main;
location / {
root html;
index index.php index.html index.htm;
}

相关文章:

  • 2021-07-01
  • 2022-12-23
  • 2021-08-06
  • 2021-11-19
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-02
  • 2021-09-07
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案