;Gzip_buffers 4 8k;Gzip_comp_level 5;Gzip_http_version 1.1;Gzip_types text/plain application/x-javascript text/css text/htm application/xml;Include vhosts/*.conf; # #包含vhosts目录下的所有. conf file, it's required to write}This allows us to create a virtual host configuration file under the/usr/local/nginx/conf/vhosts directory. Mkdir/usr/local/nginx/conf/vhostsThen set up a virtual host profile, such as 1.conf and 2.conf for two different domain names and websitesWrite in 1.conf:Server{Listen default_
recommended to do so, separate good to maintain the uniqueness of the function for easy maintenance)1 Public classWcfservice:ipigservice,idogservice,iduckservice2 {3 Public stringPig ()4 {5 return "Hello, I'm a pig farmer.";6 }7 8 Public stringDuck ()9 {Ten return "Hello, I'm starting to expand the duck business."; One } A - Public stringDog () - { the return "Hello, dog business is good, I also
Airline security: Getshell may affect the security of multiple hosts on the intranet due to a system vulnerability in Sichuan Airlines
The shell process is rugged.
Axis2 default password and can execute system commandsIt was discovered that it was already done by our predecessors.Http: // **. **: 8080/axis2/services/Cat/exec? Cmd = whoami
This person tried to write shell in various poses and probab
Getshell/affects multiple hosts on the Intranet at a certain station in Mavis
Rt
Jeves joins Online Order System
http://58.255.193.196/
E:\jboss\server\default\.\deploy\gsjmwo.war\fckeditor\> net viewServer Name Remark-------------------------------------------------------------------------------\\GS_002_NOTE_HZ \\GS_008_NOTE_HZ
Today, under the/etc/nginx/site-available/configuration of several Nginx virtual host, found that only the first configuration of the useful, thought is the file order, later changed a name, found or not, online said the port and so on have tried no role, and finally inadvertently in/etc /nginx/site-enabled/under Ls-la found that these soft links did not work, and later thought it was ln-s, did not write the full path in the first parameter itemIt should be ln-s/etc/nginx/sites-available/default
How to log on to FTP using vsftpd on centos 7 with multiple hosts
1) yum install vsftpd
2) mkdir-p/var/virtual/zbphp.com/?public_html,logs,backup}
3) useradd zbphp.com-d/var/virtual/zbphp.com
4) configure the vsftpd configuration file/etc/vsftpd. conf to enable chroot_list and add zbphp.com to/etc/vsftpd/chroot_list.
5) change the listening port of vsftpd to xxx and restart vsftpd and systemctl restart
Problem Description:Built LNMP environment when you run PHP files, each time you open a file by using a browser, you will always be able to download the files locally, not through the browser, and for the HTML file to work.The specific configuration is as follows: Location~\.php${root html/zabbix; fastcgi_pass127.0.0.1:9000; fastcgi_indexindex.php; fastcgi_paramscript_filename/usr /local/nginx/html/zabbix$fastcgi_script_name; includefastcgi_params; } server {Listen 80;root/usr/local/nginx/html/z
1. First check if SSH is installedRpm-qa | grep sshIf yum install SSH is not installed2. Perform on each machinessh-keygen-t RSA generates two files in root/.ssh/. (The root account is used at this time, and the different accounts are not generated in the same location.) Never tried! Copy one of the files generated on each machine.CP ~/.ssh/id_rsa.pub ~/.SSH/ID_RSA.PUB.100Send them all on a machineScp-r ~/.ssh/id_rsa.pub.101 [Email protected]:/root/hadoop/.sshNow it's all on the 100 machine.3. P
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.