服务器技术

 首页 > 服务器技术 > apache > apache配置多域名多端口|None-Apache教程

apache配置多域名多端口|None-Apache教程

分享到:
【字体:
导读:
          ...

1、单域名单端口设置 如:www.abc.com 默认用80访问   特别说明,apache的配置默认都在安装目录下的conf目录里面 或者是/etc/apache2 不过一定要注意,listen.conf文件中端口监听是否开启 如下图,表示已经开启80端口监听   直接默认修改default-server.conf    这个配置最好简单 安装好了,之后,默认已经能够使用了,只是要把它修改成你需要的域名及访问路径罢了。   给一个标准配置吧   DocumentRoot "/srv/www/htdocs" #
# Configure the DocumentRoot
#

        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs-2.2/mod/core.html#options
        # for more information.
        Options None
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        AllowOverride None
        # Controls who can get stuff from this server.
        Order allow,deny
        Allow from all
   2、单域名多端口设置   
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all


    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
NameVirtualHost   *:80
NameVirtualHost   *:81

          DirectoryIndex  index.html index.PHP
          ServerName   "www.abc.com"
          DocumentRoot   "/srv/www/htdocs/"  
 

          DirectoryIndex   index.php
    ServerName   "www.abc.com:81"
          DocumentRoot   "/srv/www/htdocs/bbs/"  
 

     3、多域名多端口设置  
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
《apache配置多域名多端口》由第二电脑网原创提供,转载请注明:http://www.002pc.com/master/College/Server/Apache/17873.html
分享到:
Apache+mod_ssl+Tomcat3.1+php(支持Oracl...
1. 安装linux (RedHat Linux6.2). 注意选择 “专家模式(expert)”,手动增加网卡。(关于网络参数的具体设置,根据情况而定)。 关于分区: /boot : 16 M (应在第一块硬盘的最前面,即 /dev/hda1) swap : swap区的大小 = 服务器内存 * 2 。 / : 1G /tmp : 500M临时文件 /usr : 4G 应用程序 关于定制安装 选择安装所有程序...
Apache为mysql以及自己的项目设置虚拟路...
1.apache2.2confhttpd.conf中释放:    Include conf/extra/httpd-vhosts.conf(去掉前面的#) 2.httpd.conf中增加          #项目文件夹DWM目录,注意不要使用中文定义目录与文件夹     #     # Possible values for the Options directive are "None", "All",     # or any combination of:     # ...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……