2010-11-24 75 views
0

在以下http-conf的文件如何在更多的條目添加到添加的Bugzilla多個文檔根目錄的httpd的conf文件

即123.21.1.21去我的網站和123.21.1.21/bugzilla指向到/ opt/bugzilla

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

什麼是你的問題? – 2010-11-24 11:30:10

+0

@Pekka:我在123.21.1.21/bugzilla – Rajeev 2010-11-24 11:37:40

回答

2

我剛剛設置了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> 
1

使用Alias

<VirtualHost *:80> 
DocumentRoot /var/www/html/web 
ServerName Domainspace 
Alias /bugzilla /opt/bugzilla 
</VirtualHost> 
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>