virtuelle hosts und .htaccess

Seite 1 von 1 - Forum: Coding Stuff auf overclockers.at

URL: https://www.overclockers.at/coding-stuff/virtuelle_hosts_und_htaccess_100672/page_1 - zur Vollversion wechseln!


master_of_desas schrieb am 07.12.2003 um 02:23

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 schrieb am 07.12.2003 um 10:54

^push^


Rektal schrieb am 07.12.2003 um 11:15

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 schrieb am 07.12.2003 um 12:56

sorry mein fehler. statt serverroot steht natürlich documentroot. die .htaccess sollt in /bla/bla/save/ liegen.


atrox schrieb am 07.12.2003 um 13:30

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