without the WWW domain name, just do not write the site directory, but do 301 jump, such as: server {listen; server_name web126.com; rewrite ^/(. *) http://www.web126.com/$1 Permanent;} Iv. Add 404 pages Add 404 pages that can be added directly inside, such as: server {listen; server_name www.web126.com;#绑定域名 index index.htm index.html index.php;#默认文件 root/home/
index index.htm index.html index.php; #默认文件 root/home/www/web126 . com; #网站根目录 include location.conf; #调用其他规则, can also remove error_page 404/404.html;
There is a last method to note that there may be a need to prevent IP direct access to port 80 or prohibit non-site domain name binding our IP, so that should be
as follows, put on the first server can be:
address has been unchanged, the external network computer sends the packet, the NAT will change the destination address, the source address has been unchanged. Proxy ServerPrincipleThere are many kinds of proxy servers, in general there are http,ftp,socks () agent three, which is divided into transparent proxy and opaque pro
. This is more automated and safer than writing passwords directly into text files. Open a terminal and configure the key according to the following steps:
[Jonolumb @ jonoxps. ssh] # ssh-keygen-t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jonolumb/. ssh/id_rsa ):
Enter passphrase (empty for no passphrase ):
Enter same passphrase again:
Your identification has been saved in/
Preface:
This document describes how to use squid and squidGuard to configure proxy servers in linux. The www Proxy service is used as an example to describe how to filter harmful sites and restrict users' access to the internet.
I. IntroductionSquid is the most popular agent server software in Linux. It has powerful functions and supports proxies for HTTP, FTP,
Article Title: proxy server settings in Linux. 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.
Author: H2KILL
Preface:
This document describes how to use squid and squidGuard to configure proxy servers in linux. The www
ProxyOften see proxy server to access Proxy server is a kind of important server security function, its work mainly in Open Systems Interconnection(OSI) model for the session layer, therebyFirewall's role. Proxy servers are mostly
good compatibility.
It supports the wide use of network software agent protocols, such as FTP, SMTP, DNS, POP3, socks, HTTP and other agents, suitable for home users, users engaged in Internet cafes, enterprises and corporate users need to share the Internet, at the same time the software to comply with the powerful, simple settings, intuitive interface, Performance of the development of the principle of excellence, and strive to achieve the differe
Article Title: reverse proxy-based Web Cache accelerates modern server management. 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.
Implementation of reverse proxy cache Acceleration Based on Apache mod_proxy
Apache contains
permanent;}root /data/wwwsite/ssdr.info/$1/;}The directory structure of the site should be as follows:/data/wwwsite/ssdr.info/www//data/wwwsite/ssdr.info/nginx/In this way, when accessing www.ssdr.info, the root directory is/data/wwwsite/logs.The if statement is used to redirect the orientation of ssdr.info to www.ssdr.info. This not only solves the access to the Home Directory of the website, but also increases the domain name weight of www.ssdr.inf
Background:
1. All computers in the company connect to the Internet through a proxy server (only HTTP requests sent from the internal network can be sent to the Internet, and all packets from the Internet will be intercepted)
2. An employee of an existing company wants to use the home computer to control work on a computer in the company.
3. He can perform any op
specified website and URL within the specified time range
Http_access allow mynet // allow access from all hosts in This CIDR Block
Modify
Http_access deny all // Deny Access From All Hosts
[[Email protected] ~] # Service squid restart
4. Verify the Intranet Client
[[Email protected] ~] # Elinks -- dump 1.1.1.2
Modify IP Address
[[Email protected] ~] # Ifconfig eth0 192.168.118.22
[[Email protected] ~] # Elinks -- dump 1.1.1.2
Access Error found
It can be concluded that the squid ACL Configu
dump function to intercept the information sent by the Hunter. But Netcat is a DOS software, it is not easy to use, so it took a few hours to write a forwin netcat. The information intercepted is as follows:
The 3a 2f 2f (m) 2e 6d # Get HTTP://WWW.M6f, 2e, 6f 6d, 2f-axtor.com HTTP/12e 0d 0a-6f-1..host:www.ma 3a (2e 6d)6f (2e) 6f 6d 0d 0a-xtor.com..accept3a 2a 2f 2a 0d 0a (6d-3a): */*. Pragma:n6f 2d-O-cache 0d 0a-the 2d-a- User-ag6e, 3a, 6f Ent:proxyhunter, 6e, #2e 0d 0a 0d 0a # 1.0 ....
Hands
Objective:
This paper mainly introduces the use of Squid and Squidguard configuration Proxy server in Linux, with the WWW Proxy service as an example to explain how to filter harmful sites and restrict users ' access to the Internet.
I. INTRODUCTION
Squid is the most popular proxy
:
Service squid start
Note:Squid can also run automatically when the system is started by enabling Squid in ntsysv or setup (system service menu. InAfter any changes are made to the configuration file, the currently running Squid process must be restarted. You can use the following command to complete the process:
Service squid restart or
/Etc/rc. d/init. d/squid restart
Configure the client
Because the client requests are sent to the specific port of the
One: Nginx as a proxy server:1.1, Positive proxy: Proxy service can also be referred to as a forward proxy, refers to the server is deployed in the company's gateway, agent company internal staff Sisu Network request, can play a c
Use Apache reverse proxy to set up external WWW and file servers. Introduction: A machine uses a leased line to access the Internet as a firewall. there is a WWW Server (Redhat6.1, Apache1.3.9) in the internal network segment. We hope this machine can provide external WWW servers and is based on introduction: A machine uses a leased line to access the Internet as a firewall and has a WWW
Article Title: detailed explanation of the use of the proxy server Squid. 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.
As the most popular operating system, Linux has become increasingly popular. Although Linux software is not rich yet, it is too early to replace WIND
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.