raíz de múltiples documentos para httpd conf
-
27-09-2019 - |
Pregunta
En el siguiente archivo http-conf cómo añadir más en la entrada para agregar Bugzilla
es decir, 123.21.1.21 va a mi sitio web y 123.21.1.21/bugzilla se señaló a / opt / Bugzilla
<VirtualHost *:80>
DocumentRoot /var/www/html/web
ServerName Domainspace
</VirtualHost>
<Location "/">
</Location>
Solución
Me acaba de establecer Bugzilla hasta el otro día, escenario similar. Aquí está mi 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>
seguido por
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>
Otros consejos
Uso Alias
.
<VirtualHost *:80>
DocumentRoot /var/www/html/web
ServerName Domainspace
Alias /bugzilla /opt/bugzilla
</VirtualHost>
Yo sé que esto es contestada, pero esto funcionó para mí en MacOSX
Alias /otherwork "/Volumes/anothervolume/otherwork"
<Directory "/Volumes/anothervolume/otherwork">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Require all granted
#more options here
</Directory>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow