I have a big problem with setting my virtual hosts up. The problem is that one of virtual hosts is working good while the other is getting redirected to /xampp/. XAMPP version is the latest one(with PHP 5.5). My httpd-vhosts.conf looks like this:
- Code: Select all
<Directory C:/vhosts>
Require all granted
</Directory>
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
</VirtualHost>
<Directory "c:/vhosts">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot "C:/vhosts/roww-laravel/public/"
ServerName row.dev
<Directory "C:/vhosts/roww-laravel/">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride all
Require all granted
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/vhosts/test/public"
ServerName test.dev
<Directory "C:/vhosts/test/public">
Options Indexes FollowSymLinks ExecCGI Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/angular"
ServerName angular.dev
<Directory "C:/xampp/htdocs/angular">
Options Indexes FollowSymLinks ExecCGI Includes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Test.dev is working good, but row.dev is not working at all and somehow I get redirected to https://row.dev/xampp/ . Honestly I have no idea why is that so, because both of sites are running with Laravel 4 and both have almost the same configuration. The difference is that test.dev is running on Laravel 4.1 and row.dev on Laravel 4.0 but it should not make any difference. I tried to run my other sites build with Laravel 4.0 and they also does not seem to work. I am not sure if .htaccess is even processed because in row.dev there is index_l.php file which acts like gateway for Laravel and if I remove index.php from directory then I can see directory content when I go to row.dev and it should not happen considering this .htaccess:
- Code: Select all
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
<IfModule>
Any idea why I get redirected to XAMPP panel ? When running like row.dev/test I get 500 error. Any help would be appreciated.