Web Server Setup WEB SERVER SETUP Web Server

  • Slides: 11
Download presentation
Web Server Setup WEB SERVER SETUP

Web Server Setup WEB SERVER SETUP

Web Server Setup Web Server • Apache Web Server is used • Daemon is

Web Server Setup Web Server • Apache Web Server is used • Daemon is httpd (service httpd start/stop/restart)

Web Server Setup Files used by Apache Configuration file: /etc/httpd/conf/httpd. conf Log files: /var/log/httpd/access_log

Web Server Setup Files used by Apache Configuration file: /etc/httpd/conf/httpd. conf Log files: /var/log/httpd/access_log and /var/log/httpd/error_log Modules /etc/httpd/modules Default Document Root /var/www/html Default CGI Root /var/www/cgi-bin

Web Server Setup Apache Configuration Directives Server Name Min and Max Servers Document Root

Web Server Setup Apache Configuration Directives Server Name Min and Max Servers Document Root CGI Enable/Disable User Directory Index Mime Types Modules Access Restrictions Secure Server Virtual Hosting

Web Server Setup Basic Settings Change the default value for Server. Name www. <your-domain.

Web Server Setup Basic Settings Change the default value for Server. Name www. <your-domain. com> in httpd. conf and put the website content in /var/www/html Additionally you can configure Name based Virtual Hosting (allow more than one websites to run on the same server)

Web Server Setup Virtual Hosting Name. Virtual. Host *: 80 <Virtual. Host *: 80>

Web Server Setup Virtual Hosting Name. Virtual. Host *: 80 <Virtual. Host *: 80> Server. Name server-name Document. Root path-to-virtual-document-root </Virtual. Host>

Squid Setup SQUID SETUP

Squid Setup SQUID SETUP

Squid Setup What is a Web Proxy? A proxy is a host which relays

Squid Setup What is a Web Proxy? A proxy is a host which relays web access requests from clients used when clients do not access the web directly used for security, logging, accounting and performance browser proxy web

Squid Setup Obtaining Squid Source code (in C) from www. squid-cache. org Binary executables

Squid Setup Obtaining Squid Source code (in C) from www. squid-cache. org Binary executables Linux (comes with Red. Hat and others) Free. BSD Windows Pre-installed in Fedora/Enterprise Linux

Squid Setup Basic Settings Edit the /etc/squid. conf file to configure squid Configuration options:

Squid Setup Basic Settings Edit the /etc/squid. conf file to configure squid Configuration options: Disk Cache size and location Authentication Allowed Hosts Any other access restrictions (sites, content, size, time of access etc. ) using ACL service squid start/stop/restart

Squid Setup Squid. conf Configuration cache_dir ufs /var/spool/squid/cache 100 16 256 auth_param basic program

Squid Setup Squid. conf Configuration cache_dir ufs /var/spool/squid/cache 100 16 256 auth_param basic program /usr/lib/squid/ncsa_auth /etc/shadow acl sidbiusers proxy_auth required http_access allow sidbiusers acl our_network src 172. 28. 250. 0/24 http_access allow our_network (Note: use squid –z for the first time to create the cache directory and its subdirectories)