【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”
为什么我的机子只要把Include conf/extra/httpd-vhosts.conf前面的#号去掉就起动不APACHE httpd-vhosts.conf配置文件添加配置信息如下:# Virtual Hosts # # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # <URL:http://httpd.apache.org/docs/2.2/vhosts/> # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # # Use name-based virtual hosting. # NameVirtualHost *:80 # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for all requests that do not # match a ServerName or ServerAlias in any <VirtualHost> block. # <VirtualHost *:80> ServerAdmin webmaster@dummy-host.myApache DocumentRoot "F:/ApacheIntill/docs/dummy-host.myApache" ServerName dummy-host.myApache ServerAlias www.dummy-host.myApache ErrorLog "logs/dummy-host.myApache-error.log" CustomLog "logs/dummy-host.myApache-access.log" common </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host2.myApache DocumentRoot "F:/ApacheIntill/docs/dummy-host2.myApache" ServerName dummy-host2.myApache ErrorLog "logs/dummy-host2.myApache-error.log" CustomLog "logs/dummy-host2.myApache-access.log" common </VirtualHost> NameVirtualHost *:8008 <VirtualHost *:8008> DocumentRoot "F:/ApacheIntill/" ServerName localhost JkMount /* tomcat1 JkUnMount /*.js tomcat1 JkUnMount /*.gif tomcat1 JkUnMount /*.swf tomcat1 JkUnMount /*.jpng tomcat1 JkUnMount /*.png tomcat1 JkUnMount /*.css tomcat1 JkUnMount /*.htm tomcat1 JkMount /*.html tomcat1 JkMount /*.ajax tomcat1 <Directory "F:/ApacheIntill/"> Options Includes FollowSymLinks AllowOverride None Order deny,allow Allow from all </Directory> <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Allow from all </Directory> <Directory "F:/ApacheIntillF"> Order deny,allow Allow from all </Directory> </VirtualHost>
引用来自“红薯”的答案