I'm newbie. So I got a problem with a laravel app. I can access any url like www.test.com/something but it browser returns "This webpage is not available ERR_CONNECTION_RESET" any time when I try to open www.test.com/ or www.test.com/index.php
I'm using Wamp server 2.5
httpd-vhosts.conf file
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/test/public"
ServerName test.com
</VirtualHost>
.htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
got this line in the routes.php
Route::get('/', 'PagesController@index');
LoadModule rewrite_module modules/mod_rewrite.so is uncommented. When I insert something like
echo "test"; exit;
in the very beginning of the index.php, it works fine and the message appears. The trick is that another project with the same settings works properly. Any ideas?
EDIT: The problem was in the BLADE comments like {{-- smthg --}}. Solved by replacing on ordinary html comments
您需要告诉计算机test.com域托管在服务器上,您可以通过将其添加到主机文件中来实现。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.