URL: https://www.overclockers.at/coding-stuff/virtuelle_hosts_und_htaccess_100672/page_1 - zur Vollversion wechseln!
ich beschäftige mich zurzeit gerade ein bischen mit dem apche-server, virtuellen hosts und .htaccess. leider bin ich aber noch nicht darauf gekommen wie ich es schaffe einem virtuellen host bei zu bringen, daß er die .htaccess, die in seinem root ordner liegt, zu beachten. was muß ich da genau eintagen?? jetzt steht mal wieder folgendes da:
<VirtualHost *>
ServerRoot /bla/bla/
ServerName http://www.blabla.com
</VirtualHost>
ohne virtuellen host funktioniert das mit der .htacces übrigens wunderbar. gute rat wär supi.
greets
^push^
Und wo befindet sich die .htaccess , die du willst das er liest aber es nicht macht? In /bla/bla?
ServerRoot ist afaik nicht direktive wo man spezifiziert wo sein Datenverzeichnis liegt, sondern DocumentRoot.
Von http://httpd.apache.org/docs/mod/core.html#serverroot:
"The ServerRoot directive sets the directory in which the server lives. Typically it will contain the subdirectories conf/ and logs/. Relative paths for other configuration files are taken as relative to this directory."
Von http://httpd.apache.org/docs/mod/co...l#documentroot:
"This directive sets the directory from which httpd will serve files. Unless matched by a directive like Alias, the server appends the path from the requested URL to the document root to make the path to the document."
sorry mein fehler. statt serverroot steht natürlich documentroot. die .htaccess sollt in /bla/bla/save/ liegen.
AllowOverride < AuthConfig | FileInfo | Indexes | Limit | Options | All > ...
also zb:
<VirtualHost *>
ServerRoot /bla/bla/
ServerName http://www.blabla.com
<Directory /bla/bla>
AllowOverride All
</Directory>
</VirtualHost>
overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025