内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

nginx配置虛擬主機(jī)

1.基于端口的虛擬主機(jī)

server {
        listen       80;
        server_name  www.nginx1.com;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   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 nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
}

server{
        listen 9527;
        server_name www.nginx1.com;

        location / {
            root /opt/html;
            index index.html index.htm index.php;
        }
}

創(chuàng)新互聯(lián)公司主營(yíng)安平網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,成都app軟件開(kāi)發(fā),安平h5重慶小程序開(kāi)發(fā)公司搭建,安平網(wǎng)站營(yíng)銷推廣歡迎安平等地區(qū)企業(yè)咨詢

2.基于端口的虛擬主機(jī)

server {
        listen       80;
        server_name  www.nginx1.com;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   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 nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
}

server{
        listen 9527;
        server_name www.nginx2.com;

        location / {
            root /opt/html;
            index index.html index.htm index.php;
        }
}

3.基于端口的虛擬主機(jī)

#執(zhí)行命令虛擬IP
ifconfig eth0:1 192.168.2.141 netmask 255.255.255.0

#修改nginx.conf配置文件
server {
        listen       192.168.2.140:80;
        server_name  192.168.2.140;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   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 nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
}

server{
        listen 192.168.2.141:9527;
        server_name 192.168.2.141;

        location / {
            root /opt/html;
            index index.html index.htm index.php;
        }
}

nginx配置虛擬主機(jī)

分享標(biāo)題:nginx配置虛擬主機(jī)
網(wǎng)頁(yè)鏈接:http://www.rwnh.cn/article42/jddgec.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站內(nèi)鏈、云服務(wù)器、外貿(mào)網(wǎng)站建設(shè)、全網(wǎng)營(yíng)銷推廣服務(wù)器托管、網(wǎng)站導(dǎo)航

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

綿陽(yáng)服務(wù)器托管
上蔡县| 新蔡县| 唐河县| 广平县| 额尔古纳市| 石河子市| 浦江县| 额尔古纳市| 文水县| 盐城市| 大埔区| 黄陵县| 玛沁县| 黑山县| 焦作市| 永丰县| 富源县| 什邡市| 尚志市| 体育| 郓城县| 乐平市| 龙岩市| 全州县| 汶上县| 榆林市| 微博| 扎兰屯市| 林口县| 灵石县| 旅游| 石渠县| 龙陵县| 高尔夫| 彰化市| 临高县| 寻乌县| 淮滨县| 拉孜县| 新竹县| 青川县|