I use:
What I have done:
%systemroot%\System32\drivers\etc\hosts
file by adding 127.0.0.1 juke.dev
in the end of the linehttpd.conf
by
LoadModule vhost_alias_module modules/mod_vhost_alias.so
Include conf/extra/httpd-vhosts.conf
Edit my httpd-vhosts.conf
into this:
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot "C:/WAMP/apache2/htdocs/claim/public"
ServerName juke.dev
<Directory "C:/WAMP/apache2/htdocs/claim/public">
Require all granted
</Directory>
</VirtualHost>
Install composer
and laravel5
Edit my laravel5
routes.php
into this:
Route::get('/', 'WelcomeController@index');
Route::get('contact', 'WelcomeController@contact');
WelcomeController
is like this:Now into the problem
juke.dev
, it success.juke.dev/contact
, it fails.localhost/claim/public/contact
, it success.What did I do wrong?
I'm still new in web programming, so any explanation would be help
strange problem:
This is an example of my vhost:
<VirtualHost *:80>
DocumentRoot "G:\Google Drive\Data\Proj\public"
ServerName rethinkdb.i
ServerAlias www.rethinkdb.i
<Directory "G:\Google Drive\Data\Proj\public">
AllowOverride All
Require all Granted
</Directory>
</VirtualHost>
The other thing I can think is maybe your .htaccess file.
How does that look?
Edited: Just tried with your vhost, and have the same problem. So try to use the virtualhost here above.