XAMPP?? - Apache - PowerPoint PPT Presentation

About This Presentation
Title:

XAMPP?? - Apache

Description:

– PowerPoint PPT presentation

Number of Views:787
Avg rating:3.0/5.0
Slides: 15
Provided by: edut1550
Category:
Tags: xampp | apache | mysql | with

less

Transcript and Presenter's Notes

Title: XAMPP?? - Apache


1
XAMPP?? - Apache
2
XAMPP??
  • C\xampp
  • ?????
  • C\xampp\htdocs
  • Apache???
  • C\xampp\apache\conf\httpd.conf
  • php???
  • C\xampp\php\php.ini
  • phpMyAdmin
  • C\xampp\phpMyAdmin\config.inc.php
  • MySQL
  • C\xampp\mysql

3
httpd.conf
  • ???? C\xampp\apache\conf
  • This is the main Apache HTTP
  • ServerRoot "C/xampp/apache"
  • Listen 80
  • DocumentRoot "C/xampp/htdocs"
  • LoadModule alias_module modules/mod_alias.so
  • ltIfModule alias_modulegt
  • lt/IfModulegt

4
Directory
  • ??????
  • ltDirectory /gt
  • AllowOverride none
  • Require all denied
  • lt/Directorygt

5
???????
  • ltDirectory "C/xampp/htdocs"gt
  • Options Indexes FollowSymLinks Includes
    ExecCGI
  • AllowOverride All
  • Require all granted
  • lt/Directorygt

6
Directory Browsing
Options Indexes
7
Disable Directory Browsing
Options -Indexes
8
AllowOverride
  • ??httpd.conf????,??????????.htaccess????
  • AllowOverride ???????????.htaccess???
  • Example
  • AllowOverride All
  • AllowOverride None
  • AllowOverride Indexes AuthConfig

9
.htaccess Example
  • Options Indexes
  • AuthType Basic
  • AuthName "YCChen's Restricted Files"
  • AuthUserFile C/xampp/.htpasswd
  • Require user ycchen

http//httpd.apache.org/docs/2.0/howto/auth.html
10
(No Transcript)
11
??htpasswd?????
  • C\xampp\apache\bin
  • htpasswd c ??/???? ?????
  • htpasswd c C\xampp\.htpasswd ycchen

12
Alias (??)
  • ltIfModule alias_modulegt
  • ???????
  • Alias /php "D/course/www/php"
  • ??????
  • Alias /class "D/course/www/php/class/data.php"
  • lt/IfModulegt

http//localhost/php/hw.php http//localhost/php/e
x1/ http//localhost/class
13
?????????????
  • ltDirectory "D/course/www/php"gt
  • AllowOverride None
  • Options Indexes FollowSymLinks
  • Order allow,deny
  • Allow from all
  • AuthType Basic
  • AuthName "Admin Only"
  • AuthUserFile C/xampp/.htpasswd
  • Require user ycchen admin
  • lt/Directorygt

14
????
  • ltIfModule dir_modulegt
  • DirectoryIndex index.php index.pl index.html
  • lt/IfModulegt
  • Include "conf/extra/httpd-xampp.conf"
  • ?????????C\xampp\apache\conf\extra
  • ltFiles private.htmlgt
  • Order allow,deny
  • Deny from all
  • lt/Filesgt
Write a Comment
User Comments (0)
About PowerShow.com