#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] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
proxy_connect_timeout 5;
proxy_read_timeout 120;
proxy_send_timeout 120;
proxy_buffer_size 16k;
proxy_buffers 4 64k;
proxy_busy_buffers_size 128k;
proxy_temp_file_write_size 128k;
client_max_body_size 2m;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
#gzip on;
upstream op.elinkliving.com {
server 127.0.0.1:8811;
}
upstream inf.elinkliving.com {
server 127.0.0.1:8806;
}
upstream me.elinkliving.com {
server 127.0.0.1:8808;
}
upstream ico.elinkliving.com {
server 127.0.0.1:8813;
}
upstream s.elinkliving.com {
server 127.0.0.1:8812;
}
upstream img.elinkliving.com {
server 192.168.0.15:80;
}
server {
listen 80;
server_name op.elinkliving.com;
location / {
access_log logs/op.elinkliving.com.log;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://op.elinkliving.com;
add_header Access-Control-Allow-Origin *;
}
}
server {
listen 80;
server_name me.elinkliving.com;
location / {
access_log logs/me.elinkliving.com.log;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://me.elinkliving.com;
add_header Access-Control-Allow-Origin *;
}
}
server {
listen 80;
server_name inf.elinkliving.com;
location / {
access_log logs/inf.elinkliving.com.log;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://inf.elinkliving.com;
add_header Access-Control-Allow-Origin *;
}
}
server {
listen 80;
server_name ico.elinkliving.com;
access_log logs/ico.elinkliving.com.log;
#proxy_set_header X-Forwarded-For $remote_addr;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://ico.elinkliving.com/;
}
location ^~ /static/ {
proxy_pass http://s.elinkliving.com/;
}
}
server {
listen 8812;
server_name 127.0.0.1;
#charset koi8-r;
access_log logs/s.elinkliving.com.log ;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
root "D:/Program Files/fecsoft/data/www/static/zxmall/";
index index.html index.htm;
add_header Access-Control-Allow-Origin *;
}
}
server {
listen 8813;
server_name 127.0.0.1;
#charset koi8-r;
access_log logs/img.elinkliving.com.log ;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
root "D:/Program Files/fecsoft/data/www/img/";
index index.html index.htm;
add_header Access-Control-Allow-Origin *;
}
}
server {
listen 80;
server_name 127.0.0.1;
location / {
access_log logs/inf.elinkliving.com.log;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://inf.elinkliving.com;
add_header Access-Control-Allow-Origin *;
}
}
server {
listen 80;
server_name img.elinkliving.com;
location / {
access_log logs/img1.elinkliving.com.log;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://img.elinkliving.com;
add_header Access-Control-Allow-Origin *;
}
}
server {
listen 80;
server_name 192.168.0.98;
location / {
access_log logs/inf.elinkliving.com.log;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://inf.elinkliving.com;
add_header Access-Control-Allow-Origin *;
}
}
server {
listen 80;
server_name itissue.oicp.net;
location / {
access_log logs/inf.elinkliving.com.log;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://inf.elinkliving.com;
add_header Access-Control-Allow-Origin *;
}
}
}
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
-->
<Server port="8801" shutdown="SHUTDOWN">
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<!-- Global JNDI resources
Documentation at /docs/jndi-resources-howto.html
-->
<GlobalNamingResources>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" Note: A "Service" is not itself a "Container",
so you may not define subcomponents such as "Valves" at this level.
Documentation at /docs/config/service.html
-->
<Service name="Catalina">
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>
-->
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector port="88" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8800" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8803" protocol="AJP/1.3" redirectPort="8800" />
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host).
Documentation at /docs/config/engine.html -->
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
-->
<Engine name="Catalina" defaultHost="localhost">
<!--For clustering, please take a look at documentation at:
/docs/cluster-howto.html (simple how to)
/docs/config/cluster.html (reference documentation) -->
<!--
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
-->
<!-- The request dumper valve dumps useful debugging information about
the request and response data received and sent by Tomcat.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
-->
<!--<Context docBase="F:/quzhai_tomcat/tomcat-app-ecp/webapps/pay-app" path="/pay-app" reloadable="true"/>
<Context docBase="F:/quzhai_tomcat/tomcat-app-ecp/webapps/open-app" path="/open-app" reloadable="true"/>
<Context docBase="D:/workspaceQuzhai/open-app/src/webroot" path="/open-app" reloadable="true"/>
<Context docBase="D:/workspaceQuzhai/member-app/src/webroot" path="/member-app" reloadable="true"/>
<Context docBase="D:/workspaceQuzhai/search-app/src/webroot" path="/search-app" reloadable="true"/>
<Context docBase="D:/workspaceQuzhai/cms-app/src/webroot" path="/cms-app" reloadable="true"/>
<Context docBase="D:/workspaceQuzhai/common-app/src/webroot" path="/common-app" reloadable="true"/>
<Context docBase="D:/workspaceQuzhai/info-app/src/webroot" path="/info-app" reloadable="true"/>-->
<Context docBase="E:/qzmall/pay-app/src/webroot" path="/pay-app" reloadable="true"/>
<!--<Context docBase="F:/quzhai_tomcat/tomcat-app-ecp/webapps/open-app" path="/open-app" reloadable="true"/>
<Context docBase="D:/workspaceQuzhai/open-app/src/webroot" path="/open-app" reloadable="true"/>-->
<Context docBase="E:/qzmall/member-app/src/webroot" path="/member-app" reloadable="true"/>
<Context docBase="E:/qzmall/info-app/src/webroot" path="/info-app" reloadable="true"/>
<Context docBase="E:/qzmall/open-app/src/webroot" path="/open-app" reloadable="true"/>
<Context docBase="E:/qzmall/search-app/src/webroot" path="/search-app" reloadable="true"/>
<Context docBase="E:/qzmall/cms-app/src/webroot" path="/cms-app" reloadable="true"/>
<Context docBase="E:/qzmall/common-app/src/webroot" path="/common-app" reloadable="true"/>
</Host>
</Engine>
</Service>
</Server>
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
-->
<Server port="8905" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Listener className="org.apache.catalina.core.JasperListener" />
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="8806" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8900" />
<Connector port="8807" protocol="AJP/1.3" redirectPort="8900" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context docBase="E:/qzmall/open-web/src/webroot" path="" reloadable="true"/>
</Host>
</Engine>
</Service>
<Service name="Catalina3">
<Connector port="8811" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8900" />
<Connector port="8817" protocol="AJP/1.3" redirectPort="8900" />
<Engine name="Catalina3" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
<Host name="op.elinkliving.com" appBase="E:/qzmall/info-web/src/webroot" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context docBase="E:/qzmall/info-web/src/webroot" path="" reloadable="true"/>
</Host>
</Engine>
</Service>
<Service name="Catalina2">
<Connector port="8808" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8900" />
<Connector port="8827" protocol="AJP/1.3" redirectPort="8900" />
<Engine name="Catalina2" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
<Host name="me.elinkliving.com" appBase="E:/qzmall/member-web/src/webroot" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context docBase="E:/qzmall/member-web/src/webroot" path="" reloadable="true"/>
</Host>
</Engine>
</Service>
</Server>