WAMP Virtual Host AllowOverrides All Outliers 500 Errors

I have a virtual host perfectly configured on WAMP, so ...

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#


<VirtualHost *:80>
    DocumentRoot "C:/wamp/www"
    ServerName localhost
    ServerAlias localhost

</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "D:\Work\BOT\public"
    ServerAlias bot.dev
    ServerName bot.dev
    <Directory "D:\Work\BOT\public">
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory> 
</VirtualHost> 

      

I'm running a Zend Framework app on bot.dev, so I need AllowOverrides for the urls to work. However, when I change AllowOrverride

to All

, I get a 500 Internal Server Error.

I will send some important good wishes to anyone who can help me.

UPDATE:

I opened the server log and encountered the following error ...

D:/Work/BOT/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

      

So the problem must be in the .htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

      

Not sure what else.

+3


source to share


1 answer


Found the answer here: http://www.phpfreaks.com/forums/index.php?topic=260159.0



include an Apache module called mod_rewrite.

To do this, left click on the WAMP tray icon and select Apache> Modules> overwrite module

+6


source







All Articles