【linux】启用.htaccess
1-2
·
如何让自己的本地Apache服务器支持".htaccess"呢?其实只要简单修改一下
apache的httpd.conf设置就可以让APACHE支持.htaccess了。打开httpd.conf文件(在那里APACHE目录的
CONF目录里面,当然你也可以搜索文件),用文本编辑器打开后,查找
<Directory />
Options FollowSymLinks AllowOverride None </Directory> 改为 <... |
||
回复:【php】php分页函数
1-2
·
.page_else {
font-family: Verdana, Arial, Helvetica, sans-serif; color: #261CDC; padding: 3px; margin: 2px; } .page_equal {... |
||
【php】php分页函数
1-2
·
function code_page($p,$max){
if (is_int($p) or $p<1) $p=1; if ($p>$max) $p=$max; return $p; } function lib_page($u,$all,$el,$css1,$css2){... |
||
【js】js创建一个div
1-2
·
var div_back=document.createElement('div');
div_back.id='win_back'; div_back.innerHTML='你去死'; document.body.appendChild(div_back); |
||
【Linux】apache主机的重定向和多域名绑定
1-2
·
(1)将www.chinahtml.com/bbs 内容301重定向到:http://bbs.chinahtml.com/ (子目录绑定)
<VirtualHost *:80> ServerName www.chinahtml.com DocumentRoot “/home/www/” Redirect permanent /bbs http://bbs.chinahtml.com/ </VirtualHost> (2)将 www.ch... |
||
回复:【Ubuntu】以ROOT权限打开文件管理器
1-2
·
应该是sudo nautilus的说~
|
||
【Ubuntu】以ROOT权限打开文件管理器
1-2
·
gksu nautilus
|
||
回复:【Linux】apache下绑定子目录
1-2
·
还有一种方法,修改conf/extra/httpd-vhosts.conf
增加下面的内容: <VirtualHost *:80> #email address ServerAdmin admin@localhost #webpath Document... |
||
【Ubuntu】Ubuntu安装GD库
1-2
·
sudo apt-get install php5-gd
sudo /etc/init.d/apache2 restart |
||
【Linux】apache下绑定子目录
1-2
·
用的是linux系统,关于apache绑定子目录,只针对新手
打开apache的配置文件httpd.conf,去掉LoadModule rewrite_module modules/mod_rewrite.so前面的#号 第二步:打配置文件尾部加上 RewriteEngine on RewriteMap lowercase int:tolower #定义映像文件 RewriteMap vhost txt:/apache/vhost/vh... |
||