网站架设.ppt

上传人:本田雅阁 文档编号:3220160 上传时间:2019-08-02 格式:PPT 页数:27 大小:570.51KB
返回 下载 相关 举报
网站架设.ppt_第1页
第1页 / 共27页
网站架设.ppt_第2页
第2页 / 共27页
网站架设.ppt_第3页
第3页 / 共27页
网站架设.ppt_第4页
第4页 / 共27页
网站架设.ppt_第5页
第5页 / 共27页
点击查看更多>>
资源描述

《网站架设.ppt》由会员分享,可在线阅读,更多相关《网站架设.ppt(27页珍藏版)》请在三一文库上搜索。

1、網站架設,資工三A 王向榮 ronnywang,Outline,網站架設 *WWW歷史 *Apache & IIS *Apache安裝 *Apache功能及專有名詞介紹 *HTML簡介 *工具推薦 *參考連結,WWW歷史,1960: Hypertext觀念 1989:Tim Berners-Lee WWW 1990:Tim Berners-Lee HTTP 1994:W3C 1994:Netscape 1995:Internet Explorer,網頁伺服器介紹,IIS Internet Information Services 微軟的網頁伺服器,現在使用率為21% 以支援ASP搭配Acces

2、s 或 MSSQL資料庫。 Apache 1994年開始開發,1995年成為網路上使用率最高的網頁伺服器,現今使用率達69% 1998年出現LAMP的合稱(Linux, Apache, MySQL, PHP),安裝Apache,http:/httpd.apache.org/download.cgi Win32 Binary (MSI Installer),安裝Apache,Apache安裝,Apache安裝,Apache安裝,安裝完成!(http:/127.0.0.1),預設資料夾功能,C:Program filesApache GroupApache2 htdocs: 網頁的位置 cgi-b

3、in: CGI(Common Gateway Interface) conf: 設定檔 logs: 網頁讀取或錯誤記錄 error: 錯誤訊息的網頁 Ex: 404 Not Found,首頁,用記事本編寫一個檔案,內容是 “Hello” 檔名是 index.html 放入 htdocs 資料夾下 用瀏覽器看 http:/127.0.0.1,設定檔,conf/httpd.conf ServerRoot “C:/Program Files/Apache Group/Apache2“ ServerAdmin ronnywangronny.idv.tw DocumentRoot “C:/Program

4、 Files/Apache Group/Apache2/htdocs“ DirectoryIndex index.html index.html.var AccessFileName .htaccess,設定檔, Options 資料夾設定 AllowOverride 允許資料夾自己改掉設定 Ex: Options Indexes ExecCGI FollowSymLinks AllowOverride All ,.htaccess,AuthConfig AuthName “請輸入帳號密碼“ AuthType Basic AuthUserFile C:.htpasswd require val

5、id-user = .htpasswd = ronnywang:VMGuvOE2IPfGs root:kxdVoYDbrcnNk,Virtual Host, ServerName blog.ronny.idv.tw DocumentRoot C:/Blog ServerName mail.ronny.idv.tw DocumentRoot C:/Mail ,Rewrite,http:/pic.ronny.idv.tw/ronny/album2 = http:/pic.ronny.idv.tw/pic.php?user=ronny&album=album2 = httpd.conf = Load

6、Module rewrite_module modules/mod_rewrite.so = .htaccess Or httpd.conf = RewriteEngine On RewriteRule /(/*)/(/*) pic.php?user=$1&album=$2,CGI Common Gateway Interface,/cgi-bin/ 網頁伺服器與使用者溝通的介面,過去常使用Perl,近年來則是以PHP, ASP, JSP為主。 現在網路上的應用主要是以CGI為主,如留言板、相簿、Blog、WebMail。,HTML簡介,Hypertext Markup Language 基本

7、架構 xxx xxx ,W3C HTML標準,http:/w3.org 標題 Hello ,常用HTML語法,顯示的文字 跳行 大字 N = 1,2,3,4,5 分隔線 粗體放大 粗體 分段,常用HTML語法, 表格裡的資訊 一列的資訊 一格的資訊 ( colspan=“n”, 往右吃掉n格) Ex: 名字分數 小明0分 範例: http:/ 序列標籤 第一項第二項 數列標籤 第一項第二項 標題標籤 標題標題說明 http:/www.ronny.idv.tw/ronnywang/course/list.html,常用HTML語法,CSS Cascading style sheet,http:/

8、www.w3.org/Style/CSS/ 方便將美工和內文分開。 對於網頁美工的操控更加靈活。,寫網頁的好工具,Macromedia Dreamweaver 399USD = 12576.48 元新台幣 orz Mozilla NVU Free! Mozilla Firefox With Web Developer (狂推FireFox!) 記事本 Vim UltraEdit XD,參考連結,http:/dob.tnc.edu.tw 網頁製作百寶箱 http:/w3.org W3C網站 http:/tw.moztw.org Mozilla Taiwan http:/apache.org Apache 官方網站,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 其他


经营许可证编号:宁ICP备18001539号-1