php2 6tml SetHandler applicationx httpd php FilesMatch stop and restart apache

Php2 6tml sethandler applicationx httpd php

This preview shows page 22 - 25 out of 30 pages.

<FilesMatch "\.ph(p[2-6]?|tml)$"> SetHandler application/x-httpd-php </FilesMatch> stop and restart apache with php NGINX installation: download and unpack NGINX and PCRE 8: tar xvf XXX.tar need a version of “sed” : setenv PATH "/usr/bin:$PATH" create the source files and configure them to hardware environment: ./ configure —prefix= absolute path to nginx --with-pcre=absolute path to pcre
Image of page 22
³. ´. µ. ¶. °. ±. compile all source files and create the binary file: make install the binary file: make install configure/ customize. edit main configuration file, nginx.conf:copy of the default configuration file. modify listen, index, and uncomment the lines the make NGINX a reverse-proxy for Apache PHP scripts, change the proxy_pass to use the port of your apache web server by adding: port# after the localhost IP address 127.0.0.1. uncomment the block that denies access to .htaccess files, if apacheʼs document root concurs with nginxʼs one. at end, in apache httpd.conf, change the Listen argument in the Apache httpd.conf configuration file, and restart Apache start and stop: in sbin file, nginx. nginx -s stop delete: /usr/bin/rm -r ~/file name Homeworks 4 Web Servers Mainly provides: Support for retrieving hypertext documents Manages access to the Web site Provides several mechanisms for executing server-side scripts provides log files and usage statistics Main features: platform they run on; complete support for HTTP 1.1 – Multithreading, load balancing Security features: ability to provide IP address restriction ability to provide domain name restriction Support for secure transactions: SSL Ability to act as a proxy server for multiple requests: a complete copy of the server is made and executed (multiprocess) a single server program handles many requests simultaneously (multithreaded) An application server is software that typically interfaces one or more databases to convey processed data to and from a user interface such as a web browser An application server acts as a set of components accessible through an API For web applications, these components are usually performed in the same machine where the web server is running, and their main job is to support the construction of dynamic pages. ဳ఺ web server ޾ application server ጱ܄ڦ The Web server has access to a tree of files that it can deliver. files may contain text, images, sound, video, other programs, etc.
Image of page 23
°. ±. ². ³. ´. µ. the document tree is organized by the web site administrator The root of the document tree is given to the web server when it starts Web Server Features: Virtually Hosted Document Roots in <VirtualHost>: • Hosting multiple web sites by the same web server • It uses the host name or IP address to distinguish the document roots Directory Listing: Turn off this feature! Remove “Indexes” from Options Indexes in httpd.conf Basic User Authentication: The server administrator creates secure directories accessible via password files maintained by the server ࣁ᧗࿢҅ᥝ࿢൉׀ᨴݩੂᎱ҅൉׀ݸ
Image of page 24
Image of page 25

You've reached the end of your free preview.

Want to read all 30 pages?

  • Fall '07
  • Papa
  • World Wide Web, Document Object Model, Web server, Hypertext Transfer Protocol

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture