2010-11-24 28 views
0

Dans le fichier suivant http-conf comment ajouter à plus d'entrée pour ajouter bugzillaracine multiple de documents pour le fichier httpd conf

-à-dire, 123.21.1.21 va sur mon site et 123.21.1.21/bugzilla est pointée/opt/bugzilla

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

Quelle est votre question? –

+0

@Pekka: quel est le changement que je dois faire pour accéder à 123.21.1.21/bugzilla – Rajeev

Répondre

2

Je viens de mettre en place bugzilla l'autre jour, scénario similaire. Voici mon 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> 

suivie

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

Utilisez Alias.

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

Merci, je ne pouvais pas obtenir ce working.can u s'il vous plaît laissez-moi savoir tous les liens ou docs à cela .. – Rajeev

+0

mon répertoire bugzilla est /opt/bugzilla-3.6 J'ai spécifié exactement comme dit..et redémarré apache – Rajeev

+0

Les docs @Rajeev sont ici: http://httpd.apache.org/docs/2.0/mod/mod_alias.html –

0

Je sais que cela a répondu, mais cela a fonctionné pour moi sur MacOSX

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