
帝国cms网站搬家到阿里云下用的 nginx 怎么配置伪静态
2个回答
展开全部
1、先进入到nginx的配置文件目录,输入以下命令:
cd /alidata/server/nginx/conf/rewrite
2、再输入:ll
3、输入以下命令:
cd /alidata/server/nginx/conf/vhosts
4、进入到网站配置目录,打开配置文件,修改好伪静态调用文件;
5、测试配置的文件是否正确,输入:
/alidata/server/nginx/sbin/nginx -t
nginx: the configuration file /alidata/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /alidata/server/nginx/conf/nginx.conf test is successful
如果出现以上两句话就说明配置成功了。
6、下面重启下nginx
/alidata/server/nginx/sbin/nginx -s reload
7、伪静态配置完成
cd /alidata/server/nginx/conf/rewrite
2、再输入:ll
3、输入以下命令:
cd /alidata/server/nginx/conf/vhosts
4、进入到网站配置目录,打开配置文件,修改好伪静态调用文件;
5、测试配置的文件是否正确,输入:
/alidata/server/nginx/sbin/nginx -t
nginx: the configuration file /alidata/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /alidata/server/nginx/conf/nginx.conf test is successful
如果出现以上两句话就说明配置成功了。
6、下面重启下nginx
/alidata/server/nginx/sbin/nginx -s reload
7、伪静态配置完成

2023-08-27 广告
作为深圳联雅网络科技有限公司的工作人员,我认为网站搭建需要经过以下步骤:1. 确定网站的目的和主题,以及目标受众群体。2. 选择适合的网站平台和域名,并购买和注册域名。3. 设计网站的页面布局和风格,并编写HTML和CSS代码。4. 添加网...
点击进入详情页
本回答由深圳联雅网络科技有限公司提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |