gpt4 book ai didi

linux - httpd conf文件的多个文档根目录

转载 作者:太空宇宙 更新时间:2023-11-04 09:08:38 25 4
gpt4 key购买 nike

在下面的http-conf文件中如何添加更多条目来添加bugzilla

即 123.21.1.21 转到我的网站,123.21.1.21/bugzilla 指向/opt/bugzilla

     <VirtualHost *:80>
DocumentRoot /var/www/html/web
ServerName Domainspace
</VirtualHost>
<Location "/">
</Location>

最佳答案

前几天我刚设置了 bugzilla,情况类似。这是我的 httpd.conf

NameVirtualHost xxx.xxx.xxx.local

<VirtualHost xxx.xxx.xxx.local>
ServerName xxx.xxx.xxx.local
DocumentRoot "C:/Apache2.2/htdocs"
</VirtualHost>

<VirtualHost xxx.xxx.xxx.local>
ServerName xxx.xxx.xxx.local
DocumentRoot "C:/bugzilla"
</VirtualHost>

其次是

Alias /bugzilla "C:\bugzilla"
<Directory "C:\bugzilla">
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit FileInfo Indexes
Order allow,deny
Allow from all
</Directory>

关于linux - httpd conf文件的多个文档根目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4266257/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com