mysql -u root -p
mysql>CREATE DATABASE sspanel;
Last active
July 5, 2020 00:02
-
-
Save phlinhng/227c638803b35bad9ff93b2ad285f315 to your computer and use it in GitHub Desktop.
v2board + nginx (path: /etc/nginx/sites-enabled/v2board.conf)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
root /var/www/v2board/public; # 改成你自己的路径 | |
index index.php index.html; | |
server_name sspanel.host; # 改成你自己的域名 | |
location / { | |
try_files $uri $uri/ /index.php$is_args$query_string; | |
} | |
location ~ .*\.(js|css)?$ { | |
expires 1h; | |
error_log off; | |
access_log /dev/null; | |
} | |
location ~ \.php$ { | |
include snippets/fastcgi-php.conf; | |
fastcgi_pass unix:/run/php/php7.4-fpm.sock; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name mydomain.com www.mydomain.com; | |
return 301 https://mydomain.com$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
listen [::]:443 ssl; | |
server_name sspanel.host; # 改成你自己的域名 | |
ssl_certificate /etc/ssl/mydomain.com/cert.pem; | |
ssl_certificate_key /etc/ssl/mydomain.com/key.pem; | |
ssl_protocols TLSv1.2 TLSv1.3; | |
root /var/www/v2board/public; # 改成你自己的路径 | |
index index.php index.html; | |
location / { | |
try_files $uri $uri/ /index.php$is_args$query_string; | |
} | |
location ~ .*\.(js|css)?$ { | |
expires 1h; | |
error_log off; | |
access_log /dev/null; | |
} | |
location ~ \.php$ { | |
include snippets/fastcgi-php.conf; | |
fastcgi_pass unix:/run/php/php7.4-fpm.sock; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment