0

次のhttp-confファイルで、bugzillaを追加するためのエントリを追加する方法

つまり、123.21.1.21は私のWebサイトに移動し、123.21.1.21/bugzillaは/opt/bugzillaを指します

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

3 に答える 3

3

先日、同様のシナリオで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>
于 2011-01-20T19:19:24.990 に答える
1

を使用しAliasます。

<VirtualHost *:80>
 DocumentRoot /var/www/html/web
 ServerName Domainspace
 Alias /bugzilla /opt/bugzilla
 </VirtualHost>
于 2010-11-24T11:41:10.020 に答える
0

私はこれが答えられることを知っていますが、これはmacosxで私のために働きました

Alias /otherwork "/Volumes/anothervolume/otherwork"
<Directory "/Volumes/anothervolume/otherwork">
    Options Indexes FollowSymLinks ExecCGI Includes
    AllowOverride All
    Require all granted
    #more options here
</Directory>
于 2014-08-27T13:36:29.903 に答える