日期:2014-05-17 浏览次数:20867 次
# tar zxvf httpd-2.2.19.tar.gz # cd httpd-2.2.19 # ./configure --prefix=/opt/apache2 //安装路径 # make # make install
./configure --prefix=/opt/apache2 \ --enable-rewrite=shared \ --enable-speling=shared \ --enable-expires=shared \ --enable-headers=shared make make install
120行左右 <Directory /> Options FollowSymLinks AllowOverride All Order deny,allow Allow from All </Directory> 167行左右 AllowOverride All 273行左右 <Directory "/opt/apache2/cgi-bin"> AllowOverride All Options None Order allow,deny Allow from All </Directory>
#vi /etc/rc.d/rc.local
# /lusen/apache2/bin/apachectl start # /lusen/apache2/bin/apachectl stop # /lusen/apache2/bin/apachectl restart # /lusen/apache2/bin/apachectl status
# /etc/init.d/httpd start # /etc/init.d/httpd stop # /etc/init.d/httpd restart # /etc/init.d/httpd status
# /lusen/apache2/bin/apachectl start # /lusen/apache2/bin/apachectl stop # /lusen/apache2/bin/apachectl restart # /lusen/apache2/bin/apachectl status
# chkconfig: 35 70 30 # description: Apache
chkconfig --add httpd
ps aux | grep httpd
# service httpd start # service httpd stop # service httpd restart # service httpd status
目录 | 描 述 | |
Web站点目录 | /var/www | Apache web站点文件目录 |
/var/www/html | 存放Web站点的Web文件 | |
/var/www/cgi-bin | 存放CGI程序文件 | |
/var/www/html/manual | 存放服务器手册 | |
配置文件 | .htaccess | 基于目录的配置文件。.htaccess文件包含对它所在目录中文件的访问控制指令 |
/etc/httpd/conf | 存放配置文件 | |
/etc/httpd/conf/httpd.conf | Apache Web服务器主配置文件 | |
启动脚本 | /etc/rc.d/init.d/httpd | 存放Web服务器守护进程的启动脚本 |
/etc/rc.d/r
免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
|