the dependency pack, you can skip directly to the following steps to generate a certificate, domestic VPS or server on the use of words proposed first modified for the domestic PIP source.Single Domain name generation certificate:./certbot-auto certonly--email admin@vpser.net--agree-tos--webroot-w/home/wwwroot/www.vpser.net-d www.vpser.netMultiple domain name single directory generation Certificate: (that
-key-size = 2048 email = [emailprotected] text = True# 把下面的路径修改为 example.com 的目录位置authenticator = webroot webroot-path = /var/www/example It is necessary to explain here that the above configuration file uses the Webroot authentication method, which is suitable for a situation in which a Web Server is already running. Cer
after the corresponding steps to install.
1, automatic installation
The code is as follows
Copy Code
wget Https://dl.eff.org/certbot-auto
chmod a+x Certbot-auto
./certbot-auto
Performing an automatic installation will download and install the required environment components,
Kaya cat-Li Changming notesCompany due to the use of openssh created by the self-signed certificate, there is a disadvantage, is that some clients can not use this certificate, can not use HTTPS connection, so, studied the Certbot do signing certificate!Certbot's official address:https://certbot.eff.org/1, preparation of the certificate before:You need to have a public address and bind the legal domain2. Start production:(1), Download
1. Get Certbot-autowget Https://dl.eff.org/certbot-auto2. Add Execute Permissionschmod a+x Certbot-auto3. Automatically download and install the required components for your environment./certbot-auto--apache Certonly4. The certificate required to generate the domain name (the red part is the path to the site access and
https://certbot.eff.orgTo the above site follow the steps to install Certbot,After the installation is complete, Certbot generates a certificate in two waysThe first type: certonly mode, Certbot will start the own nginx (if the server already has nginx, need to stop the existing nginx) to generate certificatesCertbot certonly--standalone-d example.com-d www.examp
CentOS 系统 Nginx 环境Cd/usr/local/srcwget Https://dl.eff.org/certbot-autochmod a+x Certbot-auto./certbot-auto--nginx (Auto)
The following content appears to indicate success:IMPORTANT NOTES:
congratulations! Your certificate and chain has been saved at:/etc/letsencrypt/live/c.pensukeji.com/fullchain.pemYour key file has been saved at:/etc/letsencrypt/live/
Free HTTPS? Official installation Tutorial: https://certbot.eff.org/#centos6-nginx (The following is a description of the installation encountered);
Download and modify file permissionswget https://dl.eff.org/certbot-auto chmod a+x Certbot-auto
Perform:
./certbot-auto--nginx certonly or./certbot-auto--
我们知道,实现页面的跳转有两种方式,一种是通过redirect的方式,一种是通过forward的方式。redirect方式的跳转,系统会在一个新的页面打开要跳转的网页;而forward方式跳转,系统会在原来的页面上打开一个要跳转的网页。所以放到WEB-INF目录下的文件是不允许采用redirect方式的跳转来访问的X1We know that there are two ways to implement a page jump, one is through redirect, and the other is through the forward way. Redirect Mode of the jump, the system will open a new page to jump to the page, and forward way to jump, the system will be on the original page to open a page to jump. So files placed in the Web-inf directory are n
Webroot and webcontent are the root folders of the program, no essential differences, the two are common and different points:Common: There is a Web-inf folder, the next file is not directly accessible;Web-inf is a secure directory, so-called security, that is, the user client can not access, only the server-side access. If you want to access it directly in the page, you need to map the file you want to access via Web. Xml. Web-inf in addition to Web.
bad", should belong to the category of robustness.
Opinion two:
Put to Web-inf under the JSP file, if you go directly to access this JSP is not possible, must pass the action of the jump, so you can understand why security is high, for the user is not visible, for some users, can directly access, such as, login, registration page, Can be placed directly under the Webroot, this is based on the needs of your system.
Point three:
JSP pages are usually placed under Webroot/web-inf to prevent visitors from entering the page directly.The pages under WebRoot/web-inf are protected and users cannot access them through the form of http://localhost:8080/test/webRoot/WEB-INF/content/xx.jsp, and their visits must be handled through struts.However, when the page is placed under the/web-inf, the JSP
It took so long to find the information, and finally solved it.Thanks Blog Park: http://www.cnblogs.com/xsht/p/5275081.htmlThank you Baidu: Http://zhidao.baidu.com/link?url= Vz4tlygvnmyyvj105bcuzkusjf0g5rm6ophvezhccajk5s1gfuz3pbgawcnsfy1rmtpf4zeo8ev_gd7sykv4s_In the Java EE environment with struts deployment, we generally write the JSP page in the Webroot\web-inf\content directory, so that the JSP page must be controlled and forwarded by struts to acc
The build project in Eclipse is the WebContent directoryThe name of the project directory generated in MyEclipse is called Webroot, so if you import the MyEclipse project into eclipse, what modifications do you need to make to deploy the project to Tomcat? Just one of the following1. Right click on Project--attribute--addAdd Webroot directory, delete webcontentWebroot and WebContent under the Web projectThe
Because the prefix is configured in the Spring-nvc.xml fileTo exit the login to return to the Webroot directory, you can redirectreturn "redirect:/index.jsp";We can get into the Webroot directory.This article is from the "matengbing" blog, make sure to keep this source http://matengbing.blog.51cto.com/11395502/1914097Springmvc into the Web-inf directory and then redirects to
eclipse3.6 default point to webcontent directory modification to webRoot setting description
url:http://ons.iteye.com/blog/717662
eclipse3.6 released, to the general use of MyEclipse feel incomparable card machine friend brought, and Eclipse loyal fans brought the gospel, a little use, let me have a body that it is so light, but has no inferior to the myeclipse function, Really worth a use, start fast, coding without card machine, memory footprint sma
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.