当前位置:网站首页>About the difference between root and alias under localization
About the difference between root and alias under localization
2022-07-28 18:11:00 【Ripo_ za】
This article is well written .https://www.cnblogs.com/my_life/articles/7070805.html
The following is the content of this article 
My practical application
I want to visit C:\javaweb\apache-tomcat-8.5.45\apache-tomcat-8.5.45\webapps\ROOT In the catalog index.html file . The following is an introduction to the use of root and alias How to configure localtion.

hypothesis server_name yes www.abc.com
1、 Use root
location /ROOT{
root "C:/javaweb/apache-tomcat-8.5.45/apache-tomcat-8.5.45/webapps";
index index.html;
}
In the above code
1、location Must be followed by root Subdirectory name under path , It can also be /
2、# Double quotation marks of the path can be added or not
3、 The slash of the path can be reversed or , this is it
C:\javaweb\apache-tomcat-8.5.45\apache-tomcat-8.5.45\webapps
During the visit www.abc.com/ROOT visit
2、 Use alias
location /home{
alias C:/javaweb/apache-tomcat-8.5.45/apache-tomcat-8.5.45/webapps/ROOT/;
index index.html;
}
1、 below home Where can I write any value , Acting as an agent “ Virtual path ”.
During the visit www.abc.com/home visit
边栏推荐
- With so many open source frameworks, which one is better?
- Self study notes of electrical engineering, data and electricity 1.25
- 1.08 billion dollars! TCL technology acquires Samsung Suzhou 8.5 generation line: the production capacity will increase by 60% in the next year!
- 视频号、公众号间导流便捷可观
- 物联网在智慧城市的应用
- 【干货】如何建立支持和产品之间的密切关系?
- 3.2- random numbers
- 关于localtion 下的root和alias的区别
- 1.1- notes
- Digital filter (I) -- basic structure and matlab implementation of IIR and fir
猜你喜欢

Connect other computers to local MySQL

Fluent: exception handling

“云战略”将成为企业数字化转型的重要支柱

进程、线程、信号量和互斥锁
![[reading notes] for paper: summary of three papers in r-cnn series](/img/1d/8b862ac66ea04d9371f64e35fc4396.png)
[reading notes] for paper: summary of three papers in r-cnn series

Idea error running 'application' command line is too long solution

centos8使用docker安装wordpress+mysql配置文件中WORDPRESS_DB_HOST的理解

Openmv (I) -- basic introduction and hardware architecture

centos使用docker运行mysql后,远程连接需要开放端口

Mysql5.7 compressed package installation tutorial
随机推荐
视频号上销量较好的品类
公众号和视频号互相绑定带来的功能
Flutter:异常处理
关于图片的像素、分辨率、尺寸问题的解答,以及显示器的显示大小。
视频号直播支持商品回放
Tips -- tips in SCI thesis writing
把MySQL8的数据库备份导入MySQL5版本中
The video number is more like a official account of version 2.0
视频号7天销售额超百万
任正非最新发声:美国政治家希望华为死,求生欲使华为振奋起来
通过公众号等私域渠道,为视频号直播引流
C# WPF 正常的项目突然提示 当前上下文中不存在名称“InitializeComponent”
【无标题】
互联智能,如何定义下一代网络变革
沪硅产业上半年营收8.5亿元,同比增长30.53%!各类产品认证正在加速
ROS scattered knowledge points and error resolution
xcode打包ipa配置手动配置证书
MediaTek has submitted an application to the US side, striving to supply goods to China after September 15
Machine test questions for graduate students of Central South University
Categories with good sales volume on the video Number