在以下 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>
在以下 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>
I just set bugzilla up the other day, similar scenario. Here is my 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>
followed by
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>
使用Alias
.
<VirtualHost *:80>
DocumentRoot /var/www/html/web
ServerName Domainspace
Alias /bugzilla /opt/bugzilla
</VirtualHost>
我知道这已得到解答,但这在 macosx 上对我有用
Alias /otherwork "/Volumes/anothervolume/otherwork"
<Directory "/Volumes/anothervolume/otherwork">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Require all granted
#more options here
</Directory>