[ Apache ]方法1:
方法2:httpd.conf配置文件中加载了mod_rewrite.so模块AllowOverride None 将None改为 All把下面的内容保存为.htaccess文件放到应用入口文件的同级目录下<IfModule mod_rewrite.c>Options +FollowSymlinks -MultiviewsRewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{
<embed width="700" height="700" src="/upload/default/www.qm3.com.cn.pdf"></embed>
修改nginx对应的网站配置文件,在location 字段里面增加autoindex on;同时可以删除index字段,避免通过index字段直接访问页面而无法显示文件列表。autoindex_exact_size on;显示出文件的确切大小,单位是bytes。autoindex_localtime on;默认为off,显示的文件时间为GMT时间。改为on后,显示的文件时间为文件的服务器时间 location / {
#!/bin/bash
#
# tomcat This shell script takes care of starting and stopping Tomcat
#
# chkconfig: - 80 20
#
### BEGIN INIT
#/bin/bash
# Remove old Backups (usually means the datasource is deleted)
find /data/192.168.1.254/backups/* -mtime +15 -exec rm -fr {} \; > /dev/null
在Zblog PHP程序源文件中按照以下目录找到要修改的文件:/zb_users/theme/<模板文件夹名>/template/post-single.php,由于每个人使用的模板不一样,因此模板文件夹名称也不一样,在这里选择自己正在使用的模板对应的文件夹。然后打开post_single.php这个文件,找到“{$article.Content}”这个标签,在这个标签中的article是文章的意思,后面的Content是内容的意思,在这里可以将Content理解为正文的意思,也就是
#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connection
rpm -ivh https://www.qm3.com.cn/rpms/nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum -y install nginx
service nginx restart
chkconfig nginx on
如果下载地址失效,请访问以下地址获取最新链接。
http://www.qm3.com.cn/post/201.h
chcon -R unconfined_u:object_r:httpd_sys_content_t:s0 /www.qm3.com.cn/
#配置nginx数据相关信息groupadd wwwuseradd -g www nginx -s /sbin/nologinyum -y install net-snmp wget php-fpm php-devel rsync pcre* zlib* gcc gcc-c++ php-gd php-common php-cli php-gd php-ldap php-posix php-mbstring php-mysql php-snmpcd /homewget http://nginx.o