WEB SERVER CONFIGURATION Fedora 11 AND 12
- definition WEB serverWEB server is to refer to both hardware and software that provides access services To the user via HTTP or HTTPS communication protocol over which files are contained on a web site in the service to users by using certain applications such as Web Browsing
The main function of web server is to transfer a file or a user request via the Communications Protocol that has been specified, Caused kerna a Web page can consist of text files, images, videos etc..Types - range of Web Servers such asTypes - range of Web Servers such as
Apache Web Server - HTTP Server
1.Apache Tomcat
2.Microsoft jendela Server 2003 Internet Information Services (IIS)
3.Lighttpd
4.Sun java sistem Server Web
5.Xitami Web Server
6.Zeus Web ServerThe workings of the web server:
1. How it works Web Server Web server is the machine where the application or software
operate in a web page to distribute user, of course according to demand
the user.
2. The relationship between Web Server and Internet Browser is a combination or a network
Computer that exist around the world. Once physically connected, Protocol TCP / IP
(networking protocol) which enables all computers can communicate with each reply
other.Open a terminal applications> system tools> terminal.[ root@ server aldye ] $ supasswd[ root@ server aldye ] #For Beginners usually found in the directory / var / www / error[ root@ server aldye ] # cd /var/www/error[ root@ error aldye ] # lscontact.html.var HTTP_REQUEST_ENTITY_TOO_LARGE.html.varHTTP_BAD_GATEWAY.html.varHTTP_REQUEST_TIME_OUT.html.varHTTP_BAD_REQUEST.html.var HTTP_REQUEST_URI_TOO_LARGE.html.vaHTTP_FORBIDDEN.html.varHTTP_SERVICE_UNAVAILABLE.html.varHTTP_GONE.html.varHTTP_UNAUTHORIZED.html.varHTTP_INTERNAL_SERVER_ERROR.html.var HTTP_UNSUPPORTED_MEDIA_TYPE.html.varHTTP_LENGTH_REQUIRED.html.varHTTP_VARIANT_ALSO_VARIES.html.varHTTP_METHOD_NOT_ALLOWED.html.var includeHTTP_NOT_FOUND.html.varnoindex.htmlHTTP_NOT_IMPLEMENTED.html.varREADMEHTTP_PRECONDITION_FAILED.html.varWe will create a new file named index.html[ root@ error aldye ] # gedit index.htmlWeb server Create<html><head><title> Web server </title><h1><center> WELCOME TO MY SERVER FEDORA 12</center></h1></html></head></title>Then Save!
And note There Changes in the file above,
contact.html.var HTTP_REQUEST_ENTITY_TOO_LARGE.html.varHTTP_BAD_GATEWAY.html.varHTTP_REQUEST_TIME_OUT.html.varHTTP_BAD_REQUEST.html.var HTTP_REQUEST_URI_TOO_LARGE.html.varHTTP_FORBIDDEN.html.varHTTP_SERVICE_UNAVAILABLE.html.varHTTP_GONE.html.varHTTP_UNAUTHORIZED.html.varHTTP_INTERNAL_SERVER_ERROR.html.var HTTP_UNSUPPORTED_MEDIA_TYPE.html.varHTTP_LENGTH_REQUIRED.html.varHTTP_VARIANT_ALSO_VARIES.html.varHTTP_METHOD_NOT_ALLOWED.html.varincludeHTTP_NOT_FOUND.html.varnoindex.htmlHTTP_NOT_IMPLEMENTED.html.varREADMEHTTP_PRECONDITION_FAILED.html.varIndex.htmLThen edit httpd.conf to enter the directory / etc / httpd / conf / httpd.conf.[ root@ error aldye ] # gedit /etc/httpd/conf/httpd.conf-Change line 44
ServerTokens Prod-line 74, keep alive Turn
keepAlive On
-line 248, E-mail Webserver
ServerAdmin Admin@ilmuuran9.co.cc
-line 262, the server name and port
servername www.ilmuuran9.co.cc:80
-line 317, Disable indexes
Options FollowSymLinks ExecCGI
-line 324
AllowOverride All
-line 521, signature server Tubah to hide from the Web server operating system
ServerSignature Off
- line 744, Give comment
# AddDefaultCharset UTF-8And at last in a line like below This Comment#<VirtualHost *:80># ServerAdmin webmaster@Exampel.com# DocumentRoot /var/www/error# ServerName dummy-host.example.com# ErrorLog logs/dummy-host.example.com-error_log# CustomLog logs/dummy-host.example.com-access_log common# </VirtualHost>changing Being</VirtualHost *:80>
ServerAdmin webmaster@ilmuuran9.co.ccDocumentRoot /var/www/errorServerName dummy-host.example.comErrorLog logs/dummy-host.example.com-error_logCustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
After Beres Run by typing http service under this[ root@ error aldye ] # service httpd restartStopping httpd: [ OK ]Starting httpd: [ OK ]The result is OK, if FAILED repeat of gedit httpd.conf, and immediately check on the server browser typed in the address bar, and a result like this http://ilmuuran9.co.cc
0 komentar:
Post a Comment