Marlon's Blog

记录生活、技术中的二三事.


  • Home

  • Archives

  • Tags

  • Bio

windows下的apache配置多站点

Published at: 2014-07-22   |   Reading: 261 words ~2min

apache下配置多个网站:

在apache的配置文件中找到httpd.conf里找到

#Include conf/extra/httpd-vhosts.conf

去掉前面的#注释

在conf\extra\httpd-vhosts.conf文件里配置如下:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#

# Virtual Hosts

#

# If you want to maintain multiple domains/hostnames on your

# machine you can setup VirtualHost containers for them. Most configurations

# use only name-based virtual hosts so the server doesn't need to worry about

# IP addresses. This is indicated by the asterisks in the directives below.

#

# Please see the documentation at

# <URL:http://httpd.apache.org/docs/2.2/vhosts/>

# for further details before you try to setup virtual hosts.

#

# You may use the command line option '-S' to verify your virtual host

# configuration.



#

# Use name-based virtual hosting.

#

NameVirtualHost *:80



#

# VirtualHost example:

# Almost any Apache directive may go into a VirtualHost container.

# The first VirtualHost section is used for all requests that do not

# match a ServerName or ServerAlias in any <VirtualHost> block.

#

<VirtualHost *:80>

    ServerAdmin admin.chinablackhat.org

    DocumentRoot "e:/www"         (网站的位置)

    ServerName www.chinablackhat.org       (域名)

    ServerAlias www.chinablackhat.org

    ErrorLog "logs/dummy-host.x-error.log"

    CustomLog "logs/dummy-host.x-Access.log" common

</VirtualHost>



<VirtualHost *:80>

    ServerAdmin admin.chinablackhat.org

    DocumentRoot "e:/www/test"    (网站位置)

    ServerName test.chinablackhat.org      (网站域名)

    ErrorLog "logs/dummy-host2.x-error.log"

    CustomLog "logs/dummy-host2.x-Access.log" common

</VirtualHost>

git在sublime text中的使用

Published at: 2014-07-20   |   Reading: 113 words ~1min

Sublime作为一个轻量级的代码编辑器,凭借出色的界面和丰富的插件,逐渐成为编码者(不只是程序员,还包括诸如前端工程师、部分文字工作者)钟爱的编辑器。而git又是截至目前版本管理软件的领先者,因此,如何在sublime中使用git自然也就成了编码者面对的问题。本文将结合网络上的资料和自己摸索的经验,介绍如何在sublime text 2中实现git插件的版本管理以及如何在git@oschina远程托管git项目。

Read More »

laravel学习笔记一

Published at: 2014-07-18   |   Reading: 18 words ~1min

我在网上找啊找,关于laravel的资料少的可怜. 无奈之下就只能勉勉强强自己看着文档自学了. 想着自己学的也一点一点记录下来,对之后象我一样摸不着头脑的孩子们一点经验吧.

laravel的安装

1.下面我们首先下载好laravel的压缩包,解压到项目文件夹下,假设为wwwroot目录. 2.在下载composer安装好,安装过程中他需要让你选择php.exe的路径.一般在环境目录下的php文件下. 3.安装好后运行cmd,调出窗口. 4.在dos窗口下进入你的wwwroot目录,例子: 原本打开cmd后应该是这样的: C:\Users\Administrator> _ 而我本机的wwwroot目录在D盘,那么我现在需要做的就是: C:\Users\Administrator>d: D:>cd wwwroot D:\wwwroot>composer install 5.这时候他要自己下载安装东西,这个过程需要等待几分钟,等安装完以后你的laravel就搭建好了,尽情琢磨去吧要注意,他的访问目录是public哦之间访问站点是访问不到的,如果想直接访问域名应该还需要对apache进行一些设置,至此laravel安装完毕

zend studio 破解及汉化

Published at: 2014-07-11   |   Reading: 38 words ~1min

今天下载了Zend Studio 10正式版来学习下PHP,200多兆的软件下了我一个下午居然还要收费,真是惨绝人寰啊!寻思着在我大天朝居然还有这种事,百度之。

首先你得下载Zend Studio 10正式版,为了以后版本更新而破解方式还没出,于是我把这个安装包放百度网盘了,需要的朋友拿去吧。

Read More »

navicat for mysql破解绿色

Published at: 2014-07-11   |   Reading: 5 words ~1min

下载地址: http://pan.baidu.com/share/link?shareid=2285744968&uk=4245241563 序列号: 用户名随意,用下面的KEY就可以了 NAVN-LNXG-XHHX-5NOO

2 3 4 5 6 7 8 9 10
Marlon Fan

Marlon Fan

宁静致远

48 Blogs
30 Tags
RSS
Homepage GitHub Twitter Zhihu
Friends
    过往云烟
© 2008 - 2025 Marlon Fan. All rights reserved. 晋ICP备2025059614号-1
0%