当前位置: 首页 >> 新闻世界 >> 始祖鸟,教你在Linux 上快速装备域名,教师资格证报名时间2013年 >> 正文

始祖鸟,教你在Linux 上快速装备域名,教师资格证报名时间2013年

2019年04月06日 04:22:16     作者:admin     分类:新闻世界     阅读次数:164    

找到nginx的配备文件 nginx/nginx.conf

第一种方,法直接在nginx.com里边配备

user www www;
worker_processes auto;
error_log /hom始祖鸟,教你在Linux 上快速配备域名,教师资格证报名时刻2013年e/wwwlogs/nginx_error.log crit;
pid /usr/local/nginx/logs/nginx.pid;
#Specifies the value for maximum f死神之威赫ile descriptors that can be opened by this process.
worker_rlimit_nofile 51200;
events
{
use epoll;
worker_connections 51200;
multi_accept on;
}
http
{
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 50m;
sendfile on;
tcp_nopush on;
keepalive_timeout 60;
tcp_nodelay on;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 256k;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 2;
gzip_types text/plain application/javascript applica始祖鸟,教你在Linux 上快速配备域名,教师资格证报名时刻2013年tion/x-javascript text/javascript text/css application/xml application/xml+rss;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_disable "MSIE [1-6]\.";
#limit_conn_zone $binary_remote_addr zone=perip:10m;
##If enable limit_conn_zone,add "limit_conn perip 10;" to server section.
server_tokens off;
#log format
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log off;
server
{
listen 80;
#listen [::]:80 default_server ipv6only=on;
server_name www.beibeigou8.com beibeigou8.com; /**需求设置的域名**/
index ind定量灌装机ex.html index.htm index.php;
root /home/wwwroot/weilang; /**项目地址**/
#error_page 404 /404.html;
include enable-php.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(j史小末s|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/access.log access;
}
include vhost/*.conf;
}

要配备新项目的话,需求从头仿制service一切内容,如

ser彭兰江ver
{
listen 80;
#listen [::]:80 default_server ipv6only=on;
server_name www.beibeigou8.com beibeigou8.com;
index index.html index.htm index.php;
root /home/wwwroot/weilang;
#error_page 404 /404.html;
include enable-php.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/access.log access;
aotm奥特曼8兄弟}
server
{
listen 80;
#listen [::]:80 default_server ipv6onl唐安琪烧伤凶手琰玥y=on;
server_name www.2345.2345.com;
index in铭道秀奶粉最新事情dex.html index.htm index.php;
root /home/wwwroot/2滋尔滨345;
#error_page 404 /404.html;
include enable-php.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|奉仕jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/access.log access;
}

第二种方法,用includ导入(便利各种域名办理)

user www www;
worker_processe跪膝法的正确图解s auto;
error_log /home/wwwlogs/nginx_error.log 始祖鸟,教你在Linux 上快速配备域名,教师资格证报名时刻2013年crit;
pid /usr/local/nginx/logs/nginx.pid;
#Specifies the value for maximum file descriptors that can be 刘志庚为什么怕太子辉opened by this process.
worker_rlimit_nofile 51200;
events
{
use epoll;
worker_connections 51200;
multi_accept on;
}
h始祖鸟,教你在Linux 上快速配备域名,教师资格证报名时刻2013年ttp
{
server
{

}
include vhost/*.conf;
}

nginx/vhost目录下文件

文件名:www.beibeigou8.com.conf (直接域名配备)

内容:

server{
listen 80;
server_name www.beibeigou8.com;
index index.html index.htm index.php;
root /home/wwwroot/weilang;
#if (!-e $re韩国黄智仁quest_filename) {
# rewrite ^/(.*)$ /index.php/$1 last;
# break;
#}
#error_page 4始祖鸟,教你在Linux 上快速配备域名,教师资格证报名时刻2013年04 /404.html;
#include enable-php.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|j郭森斯坦达peg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}

location ^~ /phpmyadmin/
{
deny all;
}


location ^~ /data/
{
deny all;
}
#location ~ ^(.+\.php)(.*)$ {
location ~ .php {
root /home/wwwroot啸傲倚天/weilang;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#include fastcgi_params;
#set $path_info "";
#set $real_script_name $fastcgi_script_name;
#if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
# set $real_script_name $1;
# set $path_info $2;
#}
#fastcgi_param SCRIPT_FILENAME $document_root$real_s愿望百分百cript_name;
#fastcgi_param SCRIPT_NAME $real_script_name;
#fastcgi_param PATH_INFO $path_info;
}
access_log /home/wwwlogs/access.log access;
}

文件名:beibeigou8.c余姿昀om.conf (中心有静态跳转)

内容:

server{
listen 80;
server_name beibeigou8.穿越之田园女皇商com;
index index.html index.htm index.php;
#root /home/wwwroot/weilang;
#if (!-e $req始祖鸟,教你在Linux 上快速配备域名,教师资格证报名时刻2013年uest_filename) {
# rewrite ^/(.*)$ /index.php/$1 last;
# break;
#}
#error_page 404 /404.html;
#include enable-php.conf;

rewrite ^/$ http://www.beibeigou8.com/ permanent;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
#location ~ ^(.+\.php)(.*)$ {
location ~ .php {
root /home/wwwroot/weilang;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
set $path_info "";
始祖鸟,教你在Linux 上快速配备域名,教师资格证报名时刻2013年set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real克拉什塔辛_script_name;
fastcgi_param PATH_INFO $path_info;
}
access_log /home/wwwlogs/access.l保镳泰诺斯og access;
}
除非特别注明,本文『始祖鸟,教你在Linux 上快速装备域名,教师资格证报名时间2013年』来源于互联网、微信平台、QQ空间以及其它朋友推荐等,非本站作者原创。 本站作者admin不对本文拥有版权,如有侵犯,请投诉。我们会在72小时内删除。 但烦请转载时请标明出处:“本文转载于『校园日记-校园日记网-在线编写秘密日记-全球校园动态』,原文地址:http://www.campus-notes.com/articles/1514.html