inoma wrote:Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1"
The good news: your Apache is up and answers correctly.
The bad news: you configured it insufficiently
As you can see, a couple of modules (like mod_ssl, mod_autoindex_color etc.) have been loaded. BUT: there is missing "mod_dir".
inoma wrote:The expected result on entering site1.local is to display the index page in site1.local
For that behaviour you need a couple of prerequisites:
a) there must be an index page file in the DocumentRoot of that vhost, either index.php or index.html
b) you must have an entry "DirectoryIndex" in your httpd.conf, which contains at least index.php and/or index.html
c) the above directive works ONLY IF you have loaded mod_dir into to your Apache environment (what is not given actually)
d) if you are omitting the closing slash (http://site1.local
instead of http://site1.local/
), the value of DirectorySlash (in httpd.conf) MUST NOT be "Off". As "On" is the default value, you simply may drop this directive.
Last not least (what does not affect your problem, but is wrong anyway), you must edit your hosts file and specify localhost correctly (you MUST NOT specify any ports there):
- Code: Select all