mehrere Dokumentstamm für httpd conf-Datei
-
27-09-2019 - |
Frage
In der folgenden http-conf-Datei, wie auf mehr Eintrag hinzuzufügen Bugzilla
hinzufügendas heißt, geht 123.21.1.21 auf meiner Website und 123.21.1.21/bugzilla wird darauf zu / opt / Bugzilla
<VirtualHost *:80>
DocumentRoot /var/www/html/web
ServerName Domainspace
</VirtualHost>
<Location "/">
</Location>
Lösung
Ich habe gerade Set Bugzilla up den anderen Tag, ä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>
Andere Tipps
Mit Alias
.
<VirtualHost *:80>
DocumentRoot /var/www/html/web
ServerName Domainspace
Alias /bugzilla /opt/bugzilla
</VirtualHost>
Ich weiß, das beantwortet wird, aber das ist für mich gearbeitet macosx
Alias /otherwork "/Volumes/anothervolume/otherwork"
<Directory "/Volumes/anothervolume/otherwork">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Require all granted
#more options here
</Directory>
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow