• ubuntu下配置apache CGI的常用命令

    日期:

    Ubuntu下配置apacheCGI的常用命令,供大家学习参考。 1)、重启命令: 复制代码 代码如下: sudo /etc/init.d/apache2 restart 2)、改变CGI等的默认路径: 复制代码 代码如下: sudo gedit /etc/apache2/sites-available/default ScriptAlias /cgi-bin/ /usr/...

  • apache中开启伪静态的方法介绍

    日期:

    配置环境: 系统 Windows Apache 2.2 加载Rewrite模块: 在conf目录下httpd.conf中找到 LoadModule rewrite_module modules/mod_rewrite.so 这句,去掉前边的注释符号#,或添加这句。 允许在任何目录中使用.htaccess文件,将AllowOverride改成All(默认为Non...

  • httpd启动脚本

    日期:

    没错,这里为你提供的是httpd的启动脚本,仅供参考。 代码如下: #!/bin/bash # Startup script for the Apache Web Server # chkconfig: 345 85 15 # description: Apache is a World Wide Web server. # Source function library. . /etc/rc.d/init.d/funct...

  • apache与nginx开启目录浏览的方法

    日期:

    apache开启目录浏览功能: 复制代码 代码如下: Alias /a/ ar/wwwml/a Directory var/wwwml/a Options Indexes AllowOverride ALL#### 将all 改成none 这是htacsss的一个限制,如果不是必须的话 去掉吧。 Order allow,deny Allow from all /Directory 当访问h...

  • apache服务器设置网页变灰的方法

    日期:

    apache服务器设置网页变灰的方法很简单,现总结如下: 1、安装mod_ext_filter模块(此模块用来在所有的输出页面插入你想要的内容,比如css,广告头之类) 这里假设apache已经在运行,因此不需要重新编译apache,只新增mod_ext_filer模块。 # cd httpd-2.2.15/m...

  • apache的userdir 403 Forbidden问题的解决办法

    日期:

    apache的userdir模块: http://httpd.apache.org/docs/2.2/howto/public_html.html 以前没用过,想用一下,可是就是很403,日志也是简单的 Permission denied: access to /~username denied 后来在另一台用yum安装的服务器上找到答案。 # The path to the en...

  • apache的userdir 403 Forbidden问题的解决办法

    日期:

    apache的userdir模块: http://httpd.apache.org/docs/2.2/howto/public_html.html 以前没用过,想用一下,可是就是很403,日志也是简单的 Permission denied: access to /~username denied 后来在另一台用yum安装的服务器上找到答案。 # The path to the en...

  • centos6.3中使用yum安装lamp

    日期:

    1、保障机器网络畅通,可以连上internet。 2、使用yum进行安装: 2.1、apache的安装 yum install -y httpd httpd-devel service httpd start 开启httpd服务 使用curl http://127.0.0.1/或者在客户端浏览器上输入http://服务器上的IP地址,来验证apache是否安...

  • nginx+spawn-fcig+fastcgi+c++

    日期:

    我使用nginx+fastcgi+c++,基于web http协议来进行客户端和服务器端的交互,我又两个cgi程序,分别为1.cgi和2.cgi,已经其中,我希望url路径中包含fcgi1.cgi,将请求交给1.cgi,对于2同理. 我的nginx配置 #nginx run on user group user zhou adm; # numbe...

  • puppet 安装部署

    日期:

    1.两台服务器安装前部署: 关闭selinux /bin/sed -i s#SELINUX=enforcing#SELINUX=disabled#g /etc/sysconfig/selinux /bin/sed -i s#SELINUX=enforcing#SELINUX=disabled#g /etc/selinux/config 统一时间安装ntp yum install ntp* -y service ntpd restart...