Linux serverNETWORK ADMINISTRATIONS

PORT BASED APACHE



APACHE HTTP SERVER IN LINUX

Apache Centos 7 Web Documents / Web server (Apache):-Web server is used to host web (documents) webpage-protocol work behind web server is HTTP (hyper text transfer protocol) port no 80 & tcp based protocol and HTTPS 443 for secure communications.HTTP /HTTPS both used in Apache server application use as web server in web services.There are three types of virtual hosting.Virtual Hosting: -To host more than one web sites on single machine.
1. Ip based virtual hosting.
2.Port based virtual Hosting
3.Named based virtual Hosting

Ip based virtual Hosting: -when Ip based virtual hosting is used each site points with a unique IP address. IP Based Virtual Hosting With the IP based virtual hosting, you can assign a separate IP for each domain on a single server, these IP’s can be attached to the server with single NIC cards and as well as multiple NICs.

Port Based Virtual Hosting:-The default port for number for HTTP is 80. However most web servers can be configured to operate on almost any port number provided the port number is not in use by any other program on the server. Most website can be configured to operate only port number provided the port number is not in used by any other program on the server. Random port (1023) andused after 1024 -65535.# nano /etc/httpd/conf/httpd.conf

# yum install httpd -y
# systemctl restart httpd && systemctl enable httpd
# systemctl status httpd && netstat –ntualp | grep 80

source
centos 7

Leave a Reply

Your email address will not be published. Required fields are marked *