欢迎来到天天文库
浏览记录
ID:47201042
大小:63.48 KB
页数:4页
时间:2019-08-23
《Apache配置独立域名的方法》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、今天我就详细的说明,如何配置Apache,然后顺便配置木地独立域名。所谓木地独立域名,就是你自定义一个域名,无论什么样的都行,比如:baidu.com,只要你喜欢,任你玩!那么配置独立域名有什么好处呢?告诉你,我们在木地做程序开发,要同时用很多开源程序、CMS、框架,或者自己写的竹理系统,那么给他们每一个都呢置一个独立的域名,在测试的时候只要在浏览器输入设置好的域名就可以了,方便大大的!好了,不说别的了,直接进入正题!第一步,你要安装Apache软件,就老老实实的一步一步装下去,其中让你填一个东西,我们可以这样写
2、:NETWORKDOMAIN:127.0.0.1SERVERNAME:127.0.0.1Administrator'sEmailAddress:写上一个邮箱(随意写)安装完成后,在本地浏览器输入localhost或者127.0.0.1可以看到网页显示ItWorks!说明安装Apache成功。第二部,配置一下Apache首先,找到Apache的配置文件httpd.conf,在apacheconf文件夹下而。修改这个文件,按照以下操作,不要问为什么:①、找到这一彳亍:DocumentRoot*'D:/server
3、/apache/htdocs",把以下这几行用#注释掉,如图:ttttDocunentRoot"D:/seruer/apache/htdocs"ttttEachdirectorytowhichApachehasaccesscanbeconfiguredwithrespecttttowhichservicesandFeaturesareallowedand/ordisabledinthatttdirectory(anditssubdirectories).ttttFirst,weconfigurethe"defau
4、lt"tobeaveryrestrictivesetofttFeatures.##OptionsFollowSymLinksttttAllowOuerrideNoneOrderdenyvallowttttDenyFromall##②、找到这一行:vDirectory”D:/server/apache/htdocs,把以下这些行注释掉,如图:##ttttPossibleualuesForth
5、eOptionsdirectiueareIBNone","All",ttoranycombinationof:ttIndexesIncludesFollowSymLinksSymLinksiFOwnerMatchExecCGIMultiUiewsttttNotethat""MultiMiews11mustbenamed*explicitly*"'OptionsAllBittdoesn'tgiveittoyou.ttttTheOptionsdirectiueisbothcomplicatedandimportant
6、.Pleaseseetthttp://httpd.apache.Org/docs/2.2/mod/corettFormoreinformation.ttOptionsIndexesFolloviSpmLinksnttAllowOuerridecontrolswhatdirectivesmaybeplacedin.htaccessFiles.ttItcanbe""None11,oranycombinationofthekeywords:ttOptionsFilelnfoAuthConFigLimitnttttAll
7、owOuerrideNonettttControlswhocangetstuffFromthisseruer.ttOrderallow,denynuAllowFromall##①、找到这一行:Directoryindexindex.html,在下面接着写上Directoryindexindex.phpindex.htmlindex.htmindex.wml,如图:DirectoryIndexindex.htmlDirectoryindexindex.
8、phpindex.htmlindex.htmindex.wml②、找到这一行:#lncludeconf/extra/httpd-vhosts.conf,把前面的#去掉③、在这个文件的末尾加上一下三行:LoadModulephp5_moduleud:/server/php/php5apache2_2.dHHAddTypeapplication/x-ht
此文档下载收益归作者所有