当前位置:网站首页>Remove # from the path of uniapp access, and 404 appears
Remove # from the path of uniapp access, and 404 appears
2022-07-22 00:34:00 【Zhang Hongrui】
One 、 I operate on Tencent cloud server
First of all, your Apache Server configuration https Of
Configuration tutorial :https://cloud.tencent.com/document/product/400/35243
Two 、 Contents introduced in official documents , To be in uniapp Settings in the configuration history
3、 ... and 、 The official documents also need to configure the server , But it doesn't work
according to uniapp、Apache How the server works , You will find that when you refresh, it will be from your root directory ( Usually /var/www/html/), That is, when visiting the domain name, jump to index.html The directory of , It can also be understood as the directory where you visit the domain name , But you added ”pages/demo/demo“, Then the server found that index.html There is no ”pages/demo/demo“ This directory , So I will report 404. So at this point , You need to set one for the server 404 The page of , When the access content is wrong Automatically jump to your setting 404 page .
First let's open up Apache Configuration file for httpd.conf, Then find the following part ,
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
边栏推荐
- Network type division
- Cdh5 installing Kerberos authentication
- Configure server development environment under virtual machine
- OSPF routing control and anti ring
- OSPF序列号
- 解决:2003-Cant connect to MySQL server on **** 以及use near ‘IDENTIFIED BY ‘*****‘ WITH GRANT OPTION‘ at
- 一文搞懂高并发性能指标:QPS、TPS、RT、吞吐量
- sqlite3修改列名
- Go learning notes - go concurrency Foundation
- 【自然语言处理和文本分析】基础信息检索:签名文件技术,进阶信息检索:向量空间技术(目前主流的搜索引擎在用的技术)
猜你喜欢
【自然语言处理与文本分析】PCA文本降维。奇异值分解SVD,PU分解法。无监督词嵌入模型Glove。有案例的将文本非结构化数据转化为结构化数据的方法。
【100个 Unity实用技能】| C#中List.Find 方法详解 查找符合要求的第一个元素并返回
OSPF的优化和配置
【特征学习】以深度学习和词嵌入为基础的特征学习
【Grafana】CentOS下安装MySQL+Grafana添加MySQL数据源
【自然语言处理和文本分析】基本信息检索技术中的全面扫描法和逐项翻转法。
uniapp访问的路径去掉 # ,访问出现404
Configure server development environment under virtual machine
User account and group account overview
解决:2003-Cant connect to MySQL server on **** 以及use near ‘IDENTIFIED BY ‘*****‘ WITH GRANT OPTION‘ at
随机推荐
JSON翻译
uniapp访问的路径去掉 # ,访问出现404
完美立方
Spark相关常见问题汇总
复现 attack as defense
四则运算表达式求值
DNS域名解析
Some commands used in project implementation
2811:熄灯问题
R5 is an ISP, which can only be configured with IP addresses. All its addresses are configured as common IP addresses
Physiological cycle
环路接口实验
96. 奇怪的汉诺塔
切换用户后,/etc/profile的配置不起效
Jasperreports configures Chinese Fonts
Three layer switch principle
2787:算24
部署LVS-NAT集群
Several common login debugging methods
How the router works