<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    jojo's blog--快樂憂傷都與你同在
    為夢想而來,為自由而生。 性情若水,風起水興,風息水止,故時而激蕩,時又清平……
    posts - 11,  comments - 30,  trackbacks - 0
    cat httpd-vhosts.conf
    --------------------------------------------------------------------------------------------
    #
    # Virtual Hosts
    #
    # If you want to maintain multiple domains/hostnames on your
    # machine you can setup VirtualHost containers for them. Most configurations
    # use only name-based virtual hosts so the server doesn't need to worry about
    # IP addresses. This is indicated by the asterisks in the directives below.
    #
    # Please see the documentation at
    # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
    # for further details before you try to setup virtual hosts.
    #
    # You may use the command line option '-S' to verify your virtual host
    # configuration.

    #
    # Use name-based virtual hosting.
    #
    NameVirtualHost *:8080

    #
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for all requests that do not
    # match a ServerName or ServerAlias in any <VirtualHost> block.
    #

    <VirtualHost *:8080>
    DocumentRoot /usr/local/site/webroot/mydomain1.com
    ServerName mydomain1.com
    ErrorLog "/var/log/apache_log/mydomain1.com-error_log"
    CustomLog "|/usr/local/site/apache/bin/rotatelogs /var/log/apache_log/apache_accesslog/mydomain1.com-access_log.%Y%m%d 86400 -360" common
    <Directory "/usr/local/site/webroot/mydomain1.com">
    Options -Indexes FollowSymLinks
    AllowOverride None
    Options ExecCGI
    #Options None
    Order allow,deny
    Allow from all

    #AuthType basic
    #AuthName "private area"
    #AuthBasicProvider file
    #AuthUserFile /usr/local/site/webroot/mydomain1.com/.htpasswd
    #Require valid-user
    #Options Indexes FollowSymLinks
    #AllowOverride All
    #Order deny,allow
    ErrorDocument 404  '/?c=interact.image&f=show'
    </Directory>
    RedirectMatch 404 /".svn(/|$)

    </VirtualHost>


    <VirtualHost *:8080>
    DocumentRoot /usr/local/site/webroot/mydomain2.com
    ServerName mydomain2.com
    ErrorLog "/var/log/apache_log/hkogop-error_log"
    CustomLog "|/usr/local/site/apache/bin/rotatelogs /var/log/apache_log/apache_accesslog/mydomain2.com-access_log.%Y%m%d 86400 -360" common
    <Directory "/usr/local/site/webroot/mydomain2.com">
    Options -Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

    #AuthType basic
    #AuthName "private area"
    #AuthBasicProvider file
    #AuthUserFile /usr/local/site/webroot/mydomain1.com/.htpasswd
    #Require valid-user
    #Options -Indexes FollowSymLinks
    #AllowOverride All
    #Order deny,allow
    ErrorDocument 404  '/?c=interact.image&f=show'
    </Directory>
    RedirectMatch 404 /".svn(/|$)

    </VirtualHost>


    <VirtualHost *:8080>
    DocumentRoot /usr/local/site/webroot/mydomain3.com
    ServerName mydomain3.com
    ErrorLog "/var/log/apache_log/stage-hkogop-error_log"
    CustomLog "|/usr/local/site/apache/bin/rotatelogs /var/log/apache_log/apache_accesslog/mydomain3.com-access_log.%Y%m%d 86400 -360" common
    <Directory "/usr/local/site/webroot/mydomain3.com">
    Options -Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all

    #AuthType basic
    #AuthName "private area"
    #AuthBasicProvider file
    #AuthUserFile /usr/local/site/webroot/mydomain3.com/.htpasswd
    #Require valid-user
    #Options -Indexes FollowSymLinks
    #AllowOverride All
    #Order deny,allow
    </Directory>
    RedirectMatch 404 /".svn(/|$)

    </VirtualHost>



    <VirtualHost *:8080>
    DocumentRoot /usr/local/site/webroot/mydomain4.com
    ServerName mydomain4.com
    ErrorLog "/var/log/apache_log/mydomain4.com-error_log"
    CustomLog "|/usr/local/site/apache/bin/rotatelogs /var/log/apache_log/apache_accesslog/mydomain4.com-access_log.%Y%m%d 86400 -360" common

    <Directory "/usr/local/site/webroot/mydomain4.com">
    Options -Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

    #AuthType basic
    #AuthName "private area"
    #AuthBasicProvider file
    #AuthUserFile /usr/local/site/webroot/mydomain4.com/.htpasswd
    #Require valid-user
    #Options -Indexes FollowSymLinks
    #AllowOverride All
    #Order deny,allow

    </Directory>
    <Location /zcart/index.php>
     Order Deny,Allow
     Deny from All
     Satisfy All
    </Location>

    RedirectMatch 404 /".svn(/|$)
    </VirtualHost>

    cat nginx.conf
    --------------------------------------------------------------------------------------------
    user  mdrop;
    worker_processes  1;
    master_process on;
    daemon off;

    error_log  logs/error.log;
    #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] $request '
                          '"$status" $body_bytes_sent "$http_referer" '
                          '"$http_user_agent" "$http_x_forwarded_for"';

        access_log  logs/access.log  main;

        sendfile        on;
        tcp_nopush     on;
        tcp_nodelay     on;
        #keepalive_timeout  0;
        keepalive_timeout  65;


            gzip on;
            gzip_types text/html text/css ;
            gzip_comp_level 3;
            gzip_proxied any;
            gzip_vary on;

        server {
            listen       80;
            server_name  _*;

            #charset koi8-r;

            #access_log  logs/access.log  ;

      
            location ~* ".(jpg|jpeg|gif|css|png|js|ico|html|inc|mp3|xml|swf)$ {
                root   /usr/local/site/webroot/$host/;
                index  index.html index.htm index.php;
        }

            location / {
                    proxy_pass   http://127.0.0.1:8080;
            proxy_set_header  Host  $host;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
            proxy_pass_header Server;

            client_max_body_size       8m;
            client_body_buffer_size    128k;

            proxy_connect_timeout      90;
            proxy_send_timeout         90;
            proxy_read_timeout         90;

            proxy_buffer_size          4k;
            proxy_buffers              64 32k;
            proxy_busy_buffers_size    64k;
            proxy_temp_file_write_size 64k;

            }

            #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;
            }


            # deny access to .htaccess files, if Apache's document root
            # concurs with nginx's one
            #
            location ~ /".ht {
                deny  all;
            }
            location ~ /".svn {
                deny  all;
            }

            location ~ /"sql {
                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.alias;

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


        # HTTPS server
        #
        #server {
        #    listen       443;
        #    server_name  localhost;

        #    ssl                  on;
        #    ssl_certificate      cert.pem;
        #    ssl_certificate_key  cert.key;

        #    ssl_session_timeout  5m;

        #    ssl_protocols  SSLv2 SSLv3 TLSv1;
        #    ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
        #    ssl_prefer_server_ciphers   on;

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

    }



    posted on 2009-06-11 11:48 Blog of JoJo 閱讀(428) 評論(0)  編輯  收藏 所屬分類: 每日一記Tool 安裝應用

    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(6)

    隨筆檔案

    文章分類

    文章檔案

    新聞分類

    新聞檔案

    相冊

    收藏夾

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 无码人妻一区二区三区免费视频| 亚洲av无码一区二区三区观看| 老司机亚洲精品影院在线观看| 成人黄18免费视频| 国产精品亚洲午夜一区二区三区 | 精品日韩亚洲AV无码一区二区三区| 久久www免费人成看国产片| 亚洲区小说区图片区| 中文在线观看国语高清免费| 久久乐国产精品亚洲综合| 中出五十路免费视频| 久久精品国产亚洲5555| 一区二区三区在线免费 | 亚洲Av综合色区无码专区桃色 | 亚洲AV综合色区无码二区偷拍| 一二三四免费观看在线视频中文版| 亚洲精品456人成在线| 国产一精品一AV一免费孕妇| 亚洲午夜无码久久久久软件| 国产精品免费视频一区| 国产99精品一区二区三区免费| 精品亚洲综合久久中文字幕| 18禁男女爽爽爽午夜网站免费| 亚洲av永久综合在线观看尤物| 国内大片在线免费看| 男男gay做爽爽的视频免费| 亚洲真人日本在线| 8x成人永久免费视频| 亚洲乱码日产精品一二三| 亚洲成A人片在线观看无码3D| 中文字幕久无码免费久久 | 亚洲午夜精品久久久久久app| 婷婷综合缴情亚洲狠狠尤物| 成全视频在线观看免费| 456亚洲人成在线播放网站| 亚洲成人影院在线观看| 99精品视频在线视频免费观看| 亚洲一区二区三区在线观看网站 | 亚洲成AV人在线观看天堂无码| 一二三四影视在线看片免费 | 1区2区3区产品乱码免费|