Apache configuration steps and test

xiaoxiao2021-03-06  36

Operating system Apache configuration steps and test

Wen: Nethero

principle

============================================================================================================================================================================================================= ================================

Use DNS to parse, enter the URL to access the virtual site steps in the Apache server

============================================================================================================================================================================================================= ==================================

Apache setup. Omissions

2. DNS (analytical using DNS)

1) principle

2) Operation steps

<1>. DNS-> New-> F & Putian.com

<2>. New -> R & 192.168.5

<3>. R-> H & WWW & IP: 192.168.5.55 & r

<4>. /Etc/rc.d/ininit.d/named restart

3) Test method

<1>. Cmd: nslookup www.putian.com

3. HTTP (virtual host and virtual site)

1) principle

2) Operation steps

<1>. Http-> virtual -> a

<2>. General: N: www.putian.com r: / var / www / html / linuxunix w: tingqi@postel.com.cn IP i: 192.168.5.55 h: www.putian.com

<3>. Catalog: A-> Directory: / www / html / linuxunix <4>. Cmd: httpd -k restart

3) Test method

<1> .cmd: NetConfig-> OK

<2> .ip: 192.168.5.55 mask: 255.255.255.0 Gateway: 192.168.5.1 Nameserver: 192.168.5.55

<3> .url: www.putian.com

转载请注明原文地址:https://www.9cbs.com/read-53146.html

New Post(0)