Forum Moderators: phranque
<VirtualHost 127.0.0.1>
DocumentRoot "C:/wamp/www"
ServerName localhost
</VirtualHost>
<VirtualHost 127.0.0.1>
DocumentRoot "C:/wamp/www/testone.com"
ServerName local.testone.com
ErrorLog logs/testone.com_error.log
</VirtualHost>
...but when I type local.testone.com/phpinfo.php in the address bar, I get an error message "NOT FOUND" The requeested URL /phpinfo.php was not found on this server.
Any help would be appreciated.
If you want to enable it in httpd.conf, the use Options FollowSymLinks FileInfo or Options SymLinksIfOwnerMatch FileInfo.
If you wish to enable mod_rewrite at the .htaccess level (i.e. only in certain (sub)directories within each vHost and not for all (sub)directories of each vHost), then you must set AllowOverride Options (at a minimum) in httpd.conf, and place one of Options +FollowSymLinks or Options +SymLinksIfOwnerMatch in the .htaccess file(s) to enable mod_rewrite.
In this latter case, it is usual to set Options FileInfo (and any others) in httpd.conf, and then set Options +FollowSymLinks in .htaccess along with +/-Indexes, +/-MultiViews, etc. as desired. Take a look at the +/- add/subtract option syntax versus fixed Option declarations -- You'll likely want to establish fixed baseline Options in httpd.conf, and then use the add/subtract syntax at the .htaccess level. For performance and enhanced security, don't enable any Option unless you're sure you need it.
Jim