: This article mainly introduces Linux notes (65)-nginx proxy tomcat. if you are interested in PHP tutorials, refer to it. Nginx is a reverse proxy server that can proxy php or tomcat.
First, install nginx, jdk, and tomcat
The installation of tomcat is very simple. extract the package and run it.
Enter the directory w
Some of the company's LAN environment, such as our company only allow the use of agents to the Internet, the graphical interface is a good solution to set up the browser agent, but the Linux pure command line interface is .... The following simple steps can be achieved!First, the command line interface general Proxy setting method1. Setting the relevant environment variables in the profile file# Vi/etc/prof
(4) Play with me Linux Network Services: DHCP service configuration-based relay proxy, linuxdhcp
Following the successful configuration of the DHCP server in Part 3, let's configure a relay proxy server.
Our Virtual Machine Structure
For details, refer:
(1) Play with me the Linux Network Service: DNS service -- BIND
Solution for Linux YUM unavailability in proxy surfing
Background:The company's computer accesses the Internet through proxy. The next CentOS 6.5 _ 64 System in VMware, the network mode is NAT. You can ping the internet, but yum installation always reports an error, as shown in figure
Root@www.bkjia.com ~ # Yum listLoaded plugins: fastest, refresh-packagekit, se
Simply remember how wget and curl under Linux use HTTP ProxyWget-e "Http_proxy=porxyhost:port" www.baidu.comCurl-x Proxyhost:port www.baidu.comIf a user name password is required, the formatCurl-x "Http://user:[email protected]:p ort" www.baidu.comAt the bottom of the Linux command line, the general program uses the Http_proxy and FTP_PROXY environment variables to obtain
1. Install squid-2.5Groupadd squidUseradd? G squidRpm? Ivh squid-2.5.STABLE3-3.3E.i386.rpmIi. Configure squid. conf:# Set the proxy port of SQUID (with the IP address added, Squid will not listen to external network interfaces)Http_port 192.168.0.1: 3128# The configuration option is an email from the Server Manager.Cache_mgr llzqq@nero.3322.org# Setting error documentationError_directory/usr/share/squid/errors/Simplify_Chinese# Set public DNS for Chin
Today, I tested how to set up an HTTP Proxy Server in Linux to implement the following layout:
I am located in lan2 and want to get the resources in lan1 ..
In addition, you need to access the private site in lan2 in lan1 and the public network through lan2. lan2 accesses the private site in lan1 and the public network through lan1.
Connect the two NICs to lan1 and lan2 respectively.
Eth0 192.168.15.xx
cache contains the IP address of the domain name. If yes, the system replies to the DNS. If this DNS request is not forwarded to the upper-level dns server Based on the/etc/resolv. conf configuration, it will be processed by the upper-level dns server.
Ii. Installation1. Install opensue10.3 in vmwareDownload: http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.52.tar.gzUnzip: tar-xzf dnsmasq-2.52.tar.gzCompile and install: cd dnsmasq-2.52Make install2. ConfigurationBy default, dnsmasq uses/etc/resol
Installation: Yum install-y squidConfiguration file: vim/etc/squid/squid.confSpecify disk directory: Cache_dir ufs/var/spool/squid 100 16 256Cache_dir is used to specify the disk directory and size, the three values following the directory are represented from left to right:Disk directory maximum Capacity unit is m, the number of first-level subdirectories, the number of two levels of subdirectories.Enable memory as a cache to speed up: Cache_mem MBRefresh mode: Refresh_pattern \. (jpg|png|gif|j
Forward Proxy schema diagramReverse Proxy architecture DiagramReverse proxy server determines which server provides serviceNginx Implements reverse proxyTwo domains point to the same Nginx server, the user visits different domain names to display different Web contentPrepare two Tomcat serversModify the port of 8081* Start two Tomcat* Configure mapping of domain
In Linux with the agent online because the campus network to visit foreign websites to collect fees, so the first two days to find a free IP Internet, set as follows:
Because the school uses the static IP, therefore first sets up the system static IP
1. Set the system IP address and Mac (use terminal root)
Ifconfig eth0 aaa:bbb:ccc:ddd
Ifconfig eth0 ether Aa:bb:cc:dd:ee:ff
2. Set Proxy service IP
Set the
Summary
(I) set a user's Internet proxy
(Ii) set the Internet proxy for a specific user program: wget setting proxy and Yum setting proxy
Main Content
(1) set a user's Internet proxy(1) Start CCProxy on the old node 10.10.11.20.that can connect to the Internet,Set an http p
Router Some features are like a proxy server, will be connected to the router LAN port of all the machine can through it has a non-flocculation access to the Internet,wan port to connect to the modem to access the Internet, my machine is connected to one of the routers, Here according to my actual situation here to configure the proxy server to implement another LAN to access the Internet.#ifconfig eth1 up
1. Introduction:Nginx is a Web server that can proxy http, HTTPS, SMTP, IMPS, POP3 protocol connections, as well as a load balancer, and HTTP caching.2. Features:
Nginx is a performance-oriented design of the HTTP server, compared to Apache, lighttpd, with less memory, high stability and other advantages.
Nginx does not adopt the design model of each client thread, but uses the asynchronous logic to reduce the context scheduling cost , so
1. enable the linux route forwarding function. # Vi/etc/sysctl. conf settings (default is 0) net. ipv4.ip _ forward1 after the settings are complete, run the following command to make it take effect # sysctl-p2. enable nat in iptable. Here I use linux system 192.168.3.8 as the proxy server, 192.168.3.110 as the client A. Open 1. enable the
Article Title: Using Linux iptables for proxy server and firewall configuration (1 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Proxy
Install the squid Proxy Server in linux
1. Experiment principle:
Client requests are first sent to the proxy server. the proxy server determines whether to request the WEB server based on its own acl. If you request a WEB server, a cache will be created on your own hard disk. If the same request is sent next time, it
Precautions for using Linux transparent proxy-Linux Enterprise Application-Linux server application information. For details, refer to the following section. For some reason, you need to record your web access logs, so Squid is used to record access logs on port 80, and Squid also has the cache function.
First, compil
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.