今天配置apache2.2,用了VirtualDocumentRoot,发现出现Invalid command 'VirtualDocumentRoot', perhaps misspelled or defined by a module not included in the server configuration,这是因为在httpd.conf里还没有开启mod_vhost_alias.so
后来又出现403 Forbidden,原因在于DocumentRoot 和<Directory "/www/apache"> 这两个地方要设置一样的路径到虚拟主机的实际路径。
本文分享了在配置Apache2.2过程中遇到的问题及解决办法,包括如何启用mod_vhost_alias.so模块解决Invalid command错误,以及如何正确设置DocumentRoot和<Directory>标签避免403 Forbidden错误。
48

被折叠的 条评论
为什么被折叠?



