Многократный корень документа для файла httpd conf

StackOverflow https://stackoverflow.com/questions/4266257

  •  27-09-2019
  •  | 
  •  

Вопрос

В следующем файле HTTP-CONT Как добавить на дополнительную запись, чтобы добавить Bugzilla

IE 123.21.1.21 идет на мой сайт и 123.21.1.21/bugzilla указана / opt / bugzilla

     <VirtualHost *:80>
     DocumentRoot /var/www/html/web
     ServerName Domainspace
     </VirtualHost>
     <Location "/">
     </Location>
Это было полезно?

Решение

Я просто установил 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>

Другие советы

Использовать 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>
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top