How to set up a Web server under the FreeBSD platform

Source: Internet
Author: User
Keywords Where the next frame
Tags .mall aliyun configuration connect dynamic ip environment etc file

Currently, many servers have FreeBSD operating systems installed. The FreeBSD operating system inherits the purity and high performance of the BSD system, plus its software packaging and publishing is more rigorous than Linux and has better security, which makes the FreeBSD operating system highly respected in the server environment. Today's small series to introduce you how to set up under the FreeBSD platform http://www.aliyun.com/zixun/aggregation/17117.html ">web server, I hope you can help."

Internet access

The first step in configuration is to have FreeBSD connect to the Internet and set up proxy services. This machine uses ADSL to connect to the Internet in two cases, that is, the dynamic IP obtained by dialing or the static IP provided by the ISP. The following describes the dynamic IP configuration process.

The approach is simple, by directly editing the "/etc/ppp/ppp.conf" file and the "/etc/rc.conf" file to achieve a transparent proxy that connects to the Internet and supports NAT.

When you open the Ppp.conf file to implement the configuration, use the following command:

# vi/etc/ppp/ppp.conf

A simple configuration instance (note a space before set):

Default:

Set Log Phase Tun command

Set IFADDR 10.0.0.1/0 10.0.0.2/0

ADSL: # Configuration Code

Set Device Pppoe:vr0 # VR0 to the name of the network card you connect to the ADSL modem

Set MRU 1492

Set MTU 1492

Set AuthName Username # username is a dial-up user name

Set Authkey Password # password is a dial-up password

Set dial

Set Login

Add default Hisaddr

Then, when you open the Rc.conf file to implement the configuration, use the following command:

# vi/etc/rc.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.