Several cases of Linux Web server

Source: Internet
Author: User
Tags bind nameserver

Case A

1. Require the implementation of the host-based virtual host, IP are 192.168.1.25

2. The main site is www.abc.com, the main directory is/var/www/html, anyone can access;

3. Marketing site for mkt.abc.com, home directory for/VAR/WWW/MKT, set default home page for mkt.html

Authentication: User1,user2 can access mkt.abc.com via authentication,

Source control: Only 192.168.1.30 can access,

4. The Technical department site is tec.abc.com, the home directory is/var/www/tec, the default home page is set to tec.html and requires only access through HTTPS.

The case topology diagram is as follows:

Specific steps:

To access a Web server with a domain name, we first install the DNS service

[ROOT@DG server]# RPM-IVH bind-9.3.6-4.p1.el5.i386.rpm

More Wonderful content: http://www.bianceng.cn/Servers/web/

[ROOT@DG server]# RPM-IVH bind-chroot-9.3.6-4.p1.el5.i386.rpm

[ROOT@DG server]# RPM-IVH caching-nameserver-9.3.6-4.p1.el5.i386.rpm

2. Switch to/VAR/NAMED/CHROOT/ETC

3. Copy the main configuration file and modify the following

[ROOT@DG etc]# cp-p named.caching-nameserver.conf named.conf

[Root@dg etc]# Vim named.conf

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.