virtuelle hosts und .htaccess
master_of_desas 07.12.2003 - 02:23 635 4
master_of_desas
Big d00d
|
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
|
master_of_desas
Big d00d
|
^push^
|
Rektal
Here to stay
|
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."
|
master_of_desas
Big d00d
|
sorry mein fehler. statt serverroot steht natürlich documentroot. die .htaccess sollt in /bla/bla/save/ liegen.
|
atrox
in fairy dust... I trust!
|
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>
|