WEB SERVER SETUP - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

WEB SERVER SETUP

Description:

Title: Slide 1 Author: Mr.Navpreet Singh Last modified by: Mr.Navpreet Singh Created Date: 1/1/1999 9:38:11 PM Document presentation format: On-screen Show – PowerPoint PPT presentation

Number of Views:75
Avg rating:3.0/5.0
Slides: 12
Provided by: Mr262
Category:
Tags: server | setup | web | fedora

less

Transcript and Presenter's Notes

Title: WEB SERVER SETUP


1
Web Server Setup
  • WEB SERVER SETUP

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

3
Files used by Apache
Web Server Setup
  • 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

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

5
Basic Settings
Web Server Setup
  • Change the default value for ServerName
    www.ltyour-domain.comgt 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)

6
Virtual Hosting
Web Server Setup
  • NameVirtualHost 80
  • ltVirtualHost 80gt
  • ServerName server-name
  • DocumentRoot path-to-virtual-document-root
  • lt/VirtualHostgt
  • ltVirtualHost 80gt
  • ServerName server-name
  • DocumentRoot path-to-virtual-document-root
  • lt/VirtualHostgt

7
Squid Setup
  • SQUID SETUP

8
What is a Web Proxy?
Squid Setup
  • 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
9
Obtaining Squid
Squid Setup
  • Source code (in C) from www.squid-cache.org
  • Binary executables
  • Linux (comes with RedHat and others)
  • FreeBSD
  • Windows
  • Pre-installed in Fedora/Enterprise Linux

10
Basic Settings
Squid Setup
  • Edit the /etc/squid/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

11
Squid.conf Configuration
Squid Setup
  • 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)
Write a Comment
User Comments (0)
About PowerShow.com