apache服务器使用笔记

apache服务器使用笔记

apache解压版配置

    第一个地方
                    ServerRoot "E:/PG/joomla/apche/Apache24"   (指定自己解压的位置)
    第二个地方
                   
                DocumentRoot "E:/PG/joomla/apche/Apache24/htdocs"   
                <Directory "E:/PG/joomla/apche/Apache24/htdocs">  (指定htdocs的位置)
    第三个地方               
                ScriptAlias /cgi-bin/ "E:/PG/joomla/apche/Apache24/cgi-bin/" (指定cgi-bin的位置)
   
    第四个地方
                <Directory "E:/PG/joomla/apche/Apache24/cgi-bin">
                AllowOverride None
                Options None
                Require all granted
                </Directory> (指定directory 的位置)



配置apache解压版遇启动时出现下面一个提示信息
E:\PG\joomla>httpd
httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.1.105. Set the 'ServerName' directive globally to suppress this message

在网上查了一下在这里做一下记录

# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80   (去掉前面的注释即可)

#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#

你可能感兴趣的:(apache服务器使用笔记)