Discover nginx server name localhost, include the articles, news, trends, analysis and practical advice about nginx server name localhost on alibabacloud.com
") {Error404"Not in cache.";}} (1) varnish through the reverse proxy request back-end IP127.0.0.1, the port is8087 Web server, which is the Nginx server listening port;2) varnish allows localhost,127.0.0.1.192.168.1.* three source IP clears the cache through the Purge method;3) Varnish requests for domain
The original situation is as follows:Access: Www.test.com hit enter after the browser automatically jump to: www.test.com/index.htmlThe company's new requirements are as follows:Access: www.test.com After hitting enter the browser URL is not changed, still display www.test.com, but can access to index.html page.The configuration is as follows:#以下为负载均衡设置, unrelated to the topic upstream index {server 123.159.147.369:7069 weight=20 max_fails=2 fail_time
The efficiency of use is much better than Perlbal .
as a mail proxy : Nginx is also a very good mail proxy server (one of the first to develop this product is also as a mail proxy server),last.fm Describes the success and the wonderful use of experience.
Nginx installation is very simple, the configuration file
The ninth part---Project ffmpeg command parsingYou have seen the ffmpeg on the arm Development Board to give the following information:usage:ffmpeg [Options] [[infile Options]-I infile] ... {[outfile options] outfile} ...Refer to the previous command to perform the same task on the PC Linux operating systemFfmpeg-i rtsp://admin:[email protected]-vcodec copy-acodec copy-s 640x480-f flv rtmp://192.168.1.102:1935/hls/te St2Do a detailed explanation hereInFile Rtsp://admin:[email protected]OutFil
Through the Ip_hash to do the session to maintain a certain defect, this is through the client IP to achieve. Many client access servers under the same network will be thrown to the same machine, or the CDN will result in unbalanced load. So to implement through the client cookie implementation, including the F5, the deep convincing device where the session remains is also by inserting a cookie value to implement session retention. The next client Access ser
Nginx + PHP Configuration IP can access the domain name of the way but can not
This is my nginx.conf file.
#user nobody;Worker_processes 1;#error_log Logs/error.log;#error_log Logs/error.log Notice;#error_log Logs/error.log Info;#pid Logs/nginx.pid;Events {Worker_connections 1024;}HTTP {Include Mime.types;Default_type Application/octet-stream;#log_format Main ' $remote _addr-$remote _user [$time _local] "$
$fastcgi_script_name; # include FASTCGI_params; #} # Deny access to. htaccess files, if Apache ' s document Root # concurs with Nginx ' s one # #l ocation ~/\.ht {# deny all; #}} # Another virtual host using mix of ip-, name-, and port-based configuration # #server {# listen 8000; # Listen somename:8080; # server_name somename alias Another.
=" Float:none; "title=" 21.png "alt=" Wkiom1d5ctjdplmsaaclafj33mq778.png-wh_50 "/>Adding an index to the display is the nginx-access-2016.07.03 defined above650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/83/A1/wKioL1d5CtjgxjrgAAGklcyZE0A421.png-wh_500x0-wm_3 -wmp_4-s_1793761656.png "style=" Float:none; "title=" 22.png "alt=" Wkiol1d5ctjgxjrgaagklcyze0a421.png-wh_50 "/>650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/83/A3/wKiom1d
The configuration of two-level domain name and multi-domain Site directory structure is the default path of storing source code under the installation directory of Nginx html├──bbs└──wwwhtml. BBS for Forum program source code path WWW for home page program source code path put the corresponding program into the above path through http://www.youdomain.com access is the home page http://bbs.yourdomain.com Acc
. After the client establishes a connection to the server, it begins to receive the HTTP header, in which case the bytes sent to the client are not read within a time interval (timeout), and the client is considered to be timed out and returned to the 408 ("Request timeD out ") response. Client_header_timeout 60; #默认值 60. Similar to Client_header_timeout, this time-out is only valid when the HTTP packet is read. Client_body_timeout 10; #发送响应的
HTML; }# Proxy The PHP scripts to Apache listening on 127.0.0.1:80##location ~ \.php$ {# Proxy_pass http://127.0.0.1;#}# Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {# root HTML;# Fastcgi_pass 127.0.0.1:9000;# Fastcgi_index index.php;# Fastcgi_param Script_filename/scripts$fastcgi_script_name;# include Fastcgi_params;#}# Deny access to. htaccess files, if Apache ' s document Root# concurs with
-rtmp.exe program, online can search for the software has integrated rtmp module version of Windows)2. Open the Conf folder to locate the nginx.conf file, configure rtmp(Add rtmp{....} )3. Run the cmd command to start the Nginx.exe service(Start Nginx.exe: Start the Nginx service and see if there are any nginx.exe in the process)4. Open Web input: localhost or 127.0.0.1 Native IP(Show the interface instruct
this blog http://www.cnblogs.com/fengnovo/p/6230013.html2. Modify the next/usr/local/etc/nginx/nginx.conf file toThe server {} wrapped up the paragraph to the followingAdd_header access-control-allow-origin *;add_header access-control-allow-headers X-Requested-With;add_header Access-control-allow-methods Get,post,options;server { Listen 8000; Loca
# Install the DNS server and configure named. confshell> vim/etc/named. confoptions {listen-on port 53 {any ;}; allow-query {any ;}; recursion yes; # rrset-order indicates to use the round robin rrset-order {class IN typeA name "bbs.centos.com" order cyclic ;}; zone "for IN records IN the bbs.centos.com domain ". "IN {typehint; file" named. ca ";}; zone" centos.com "IN {typemaster; file" named.lij.com ";};
Assume that the ip address of the Alibaba Cloud server is 192.168.1.10 (you need to replace it with your own ip address), and no installation package is selected. Currently, ECS is completely empty, except for the required Linux system. Another point is that Ubuntu Linux 14.04 64-bit is selected. Linux saves a lot of memory, because there is no UI, and it is purely console-based.This article only installs the ngin
using the "--with-http_perl_module" method. The following is the installation process:
[Root@localhost home]# tar zxvf nginx-0.7.65.tar.gz
[root@localhost home] #cd nginx-0.7.65
[ Root@localhostnginx-0.7.65]#./configure \
--with-http_stub_status_module --prefix=/opt/nginx
, create html/index.html a new file and write the source code for the first section of this article.Also, html under subdirectories, create a new two files example.png and style.css . The former can look for a PNG image, the latter to write some style inside.
h1 { color: red;}
Finally, open the configuration file conf/conf.d/default.conf and change the section of port 443 to look like the following.
Server{Listen443 SSL HTTP2; serve
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.