Hi allen,

Ik krijg een 400 Bad Request error als ik een subdomein op localhost aanroep.
- In de hosts file van m'n besturingssysteem heb ik sub.localhost toegewezen aan 127.0.0.1.
- In het configuratiebestand van Apache (httpd.conf) heb ik het volgende staan

<Directory "/web/sub">
AllowOverride All
ErrorDocument 404 "http.conf foutmelding voor directory /sub/"
</Directory>

- In het mapje 'sub' heb ik een .htaccess-bestand staan:

ErrorDocument 404 ".htaccess foutmelding voor directory /sub/"

en nog wat RewriteRules. Als ik naar http://sub.localhost ga, krijg ik een 400 Bad Request.

Heeft iemand een idee hoe dat komt?
als ik het proef hebben we het iig over nix/nux..
Dit is wat ik doe ( gebasseerd op apache2)

- virtual hosts aanmaken ( site-available ) symbolic linken naar sites-enabled )
- je hostfile is dan dus in de trand van :
<?php
<VirtualHost 127.0.0.1:80>
ServerName mydomain.localtest.nl
...
</VirtualHost>
?>
- record toevoegen aan je /etc/hosts/
127.0.0.1 mydomain.localtest.nl
ports.conf ff checken of NameVirtualHost 127.0.0.1:80
erin staat..

And thats about it

Reageren