2010-11-24 5 views
0

Im folgenden http-conf-Datei, wie auf mehr Eintrag hinzuzufügen Bugzilla hinzufügenmehr Dokumentstämme für httpd conf Datei

dh geht 123.21.1.21 auf meine Website und 123.21.1.21/bugzilla hingewiesen wird/opt/bugzilla

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

Was ist Ihre Frage? –

+0

@Pekka: Was ist die Änderung, die ich machen muss, um in 123.21.1.21/bugzilla – Rajeev

Antwort

2

Ich setze Bugzilla gerade neu, ähnliches Szenario. Hier ist meine 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> 

gefolgt von

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

Verwenden Sie Alias.

<VirtualHost *:80> 
DocumentRoot /var/www/html/web 
ServerName Domainspace 
Alias /bugzilla /opt/bugzilla 
</VirtualHost> 
+0

Zugriff zu bekommen Danke, ich konnte das nicht funktionieren. Sie können mich bitte irgendwelche Links oder Dokumente zu diesem .. – Rajeev

+0

mein Bugzilla-Verzeichnis ist /opt/bugzilla-3.6 Ich spezifiziere genau wie erzählt .. und Apache neu gestartet – Rajeev

+0

@Rajeev docs sind hier: http://httpd.apache.org/docs/2.0/mod/mod_alias.html –

0

Ich weiß, das beantwortet wird, aber das war für mich auf macosx

Alias /otherwork "/Volumes/anothervolume/otherwork" 
<Directory "/Volumes/anothervolume/otherwork"> 
    Options Indexes FollowSymLinks ExecCGI Includes 
    AllowOverride All 
    Require all granted 
    #more options here 
</Directory>