初六一的网站发布实验
强制跳转
#server {
# listen 443 ssl;
# server_name 124.70.212.132; #访问域名
# root /usr/share/nginx/html; #前台文件存放文件夹,可改成别的
# index index.php index.html index.htm;# 上面配置的文件夹里面的index.html
# ssl_certificate /etc/ssl/server.crt;# 改成你的证书的名字
# ssl_certificate_key /etc/ssl/server.key;# 你的证书的名字
# ssl_session_timeout 5m;
# location / {
# index index.php index.html index.htm;
# }
#}
server {
listen 80;
server_name localhost;
return 301 https://$http_host$request_uri;
}
server {
# listen 80;
listen 443 ssl;
server_name 124.70.212.132; #访问域名 公网IP
# server_name localhost;
root /usr/share/nginx/html;
ssl_certificate /etc/ssl/server.crt;# 改成你的证书的名字
ssl_certificate_key /etc/ssl/server.key;# 你的证书的名字
# rewrite ^(.*)$ https://$host$1 permanent;# 把http的域名请求转成https
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.php index.html index.htm;
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /usr/share/nginx/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
}
ISCSI
iscsiadm -m discovery -t st -p
iscsiadm -m node -l
iscsiadm -m node -u
iscsiadm -m node -l
fdisk -l
fdisk /dev/sda #分区格式化
n #创建分区
p e
fidsk /dev/sdb
n
w
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sdb1
#创建两个挂载点
#挂载
#挂载
df -Th #查看挂载情况
pwd
BCManager
#客户端和灾备端都需要进行如下操作
useradd rdadmin #创建管理用户
passwd rdadmin #修改该用户的密码
mkdir /home/rdadmin/Agent #创建到用户目录下
cp OceanStor\ BCManager\ V200…….tar.gz /home/rdadmin/Agent #将压缩包拷贝到该目录下
cd /home/rdadmin/Agent
tar -xvf OceanStor\ BCManager\ V200…….tar.gz #解压
cd bin/ #可执行脚本目录
sh agent_install.sh #执行该执行文件
rdadmin #输入用户名
密码
2 #192.168.0.10 管理端IP地址
rdamin #输入用户名
密码
2 #192.168.0.10 管理端IP地址
#server {
# listen 80;
# server_name localhost;
# return 301 https://$http_host$request_uri;
#}
server {
# listen 80;
# listen 8443 ssl;
listen 80;
server_name 127.0.0.1; #访问域名 公网IP
# server_name localhost;
root /usr/share/nginx/drupal;
index index.php default.php app.php u.php;
# ssl_certificate /etc/ssl/server.crt;# 改成你的证书的名字
# ssl_certificate_key /etc/ssl/server.key;# 你的证书的名字
autoindex off;
# rewrite ^(.*)$ https://$host$1 permanent;# 把http的域名请求转成https
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
# location / {
# root /usr/share/nginx/html;
# index index.php index.html index.htm;
# }
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /usr/share/nginx/drupal;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/drupal/$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
#server {
# listen 80;
# server_name localhost;
# return 301 https://$http_host$request_uri;
#}
server {
# listen 80;
# listen 8443 ssl;
listen 443 ssl;
server_name 127.0.0.1; #访问域名 公网IP
# server_name localhost;
root /usr/share/nginx/moodle;
index index.php;
ssl_certificate /etc/ssl/server.crt;# 改成你的证书的名字
ssl_certificate_key /etc/ssl/server.key;# 你的证书的名字
autoindex off;
location ~ \.php$ {
root /usr/share/nginx/moodle;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/moodle/$fastcgi_script_name;
include fastcgi_params;
}
}
- 点赞
- 收藏
- 关注作者
评论(0)