1、用文本编辑器打开conf文件夹下“httpd.conf”配置文件。
2、直接在文件最后添加如下内容:
DocumentRoot “folder_path” #folder_path: 文件夹物理路径
Alias /sitename “folder_path” #sitename:网站别名
<Directory “folder_path”>
Order allow,deny
Allow from all
</Directory>
最后保存,重新启动Apache
在浏览器地址栏中输入: http://ip/sitename即可访问。

17 Comments

  1. This is really interesting, You’re a very skilled blogger. I have joined your feed and look forward to seeking more of your great post. Also, I have shared your website in my social networks!

  2. All I can express is, I am not sure what to comment! Except of course, for the wonderful tips which are shared within this blog. I’ll think of a thousand fun approaches to read the content on this site. I do believe I will eventually take a step using your tips on areas I could never have been able to handle alone. You had been so clever to let me be one of those to profit from your practical information. Please recognize how much I am thankful.

  3. Good post. I used to spend alot of my time boating and playing games. It was quite possible the most memorable period of my young life and your post somehow reminded me of that period of my life. Cheers

  4. Howdy! Thank you very much for a fabulous post. I actually was already thinking about here just what exactly made you compose this blog article? Regardless,have a good evening and thx yet again for a brilliant read.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


*