为什么我的家园总是重定向到xampp主页

时间:2016-03-17 11:14:32

标签: laravel redirect xampp homestead hosts

我有一个问题,我对此很困惑。 我已经为Laravel 5安装了homestead但是当我尝试访问我的域laravel.dev时我遇到了一些问题,这将重定向到xampp主页。 我更改了homestead.yamlhosts文件,但它无法正常工作。

我遵循了这条指令:

https://laravel.com/docs/5.2/homestead http://ambercat.rahmanda.net/collections/2015/02/18/instalasi-homestead.html

但是没有帮助。

这是我的Homestead.yaml

ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: C:/xampp/htdocs
      to: /home/vagrant/Code
      type: "nfs"

sites:
    - map: laravel.dev
      to: /home/vagrant/Code/laravel-crud/public

databases:
    - homestead

这是我的主人

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost
192.168.10.10 laravel.dev

任何人都可以帮我解决这个问题吗?

请指教 三江源..

0 个答案:

没有答案