分类目录

链接

2013 年 6 月
 12
3456789
10111213141516
17181920212223
24252627282930

近期文章

热门标签

新人福利,免费薅羊毛

apache禁止IP直接访问

  用apache搭建的WEB服务器,如何让网友只能通过设定的域名访问,而不能直接通过服务器的IP地址访问呢,通过查找,有两个方法可以实现,都是修改httpd.conf文件来实现的,下面举例说明。 方法一:在httpd.conf文件最后面,加入以下代码 NameVirtualHost 211.*.*.* <VirtualHost 211.*.*.*> ServerName 211.*.*.* <Location /> Order Allow,Deny Deny from all </Location> </VirtualHost> <VirtualHost 211.*.*.*> DocumentRoot "c:/web" ServerName tuan.coo8.com </Virtu...

LINUX, PHP 暂无评论 阅读(1,868)

Apache NameVirtualHost *:80 has no VirtualHosts

pache NameVirtualHost *:80 has no VirtualHosts   当启动apache的时候,如果事件管理器出现“Apache NameVirtualHost *:80 has no VirtualHosts”错误时,大部分是因为修改了apache的httpd.conf配置文件,将extra/vhosts.conf文件引入到httpd.conf中了。# Virtual hosts Include conf/extra/httpd-vhosts.conf httpd-vhosts.conf文件中有一句配置语句为 NameVirtualHost *:80   如果httpd-vhosts.conf中没有存在类似 <VirtualHost *:80> DocumentRoot "D:/www/baike" ServerName  www.liangdianba...

LINUX, PHP 暂无评论 阅读(1,416)

left join、inner join中的on与where的区别

sql语句中left join、inner join中的on与where的区别 table a(id, type): id type ---------------------------------- 1 1 2 1 3 2 table b(id, class): id class --------------------------------- 1 1 2 2 sql语句1:select a.*, b.* from a left join b on a.id = b.id and a.type = 1; sql语句2:select a.*, b.* from a left join b on a.id = b.id where a.type = 1; sql语句3:select a.*, b.* from a left join b on a.id = b.id and b.class = 1; sql语句1的执行结果为: a.id a.type b.id b.class ---...

SQL Server 暂无评论 阅读(1,696)